Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 806

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions calculate the arc cosine of the value specified by (s), and store the operation result (angle) in the device
specified by (d).
(s)
(s)+1
-1
COS
(
(s): Sign
(s)+1: Integral part
(s)+2: Decimal part
• Set the sign of the calculation data in the device specified by (s). Store 0 when the calculation data is positive, or store 1
when the calculation data is negative.
• Store a BCD value for the integral part of calculation data in (s)+1 and a BCD value for the decimal part in (s)+2. (A value
from 0 to 1.0000 can be set.)
• The operation result to be stored in the device specified by (d) is a BCD value in the range from 0 to 180(in DEG. unit).
• The operation result is a value whose decimal part is rounded off.
Operation error
Error code
Description
(SD0)
3405H
An out-of-range value is set to (s).
• The specified data is not a BCD value.
• The specified data is out of the range, -1.0000 to 1.0000.
7 APPLICATION INSTRUCTIONS
804
7.9 Real Number Instructions
(s)+2
) = (d)
.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents