Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 808

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

Advertisement

Processing details
• These instructions calculate the arc tangent of the value specified by (s), and store the operation result (angle) in the device
specified by (d).
(s)
(s)+1
-1
TAN
(
Sign
Integral part
(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 9999.9999 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 90 or 270 to 360 (in
DEG. unit).
• The operation result is a value whose decimal part is rounded off.
Operation error
Error code
Description
(SD0)
3405H
The data in the device specified by (s) is not a BCD value.
7 APPLICATION INSTRUCTIONS
806
7.9 Real Number Instructions
(s)+2
) = (d)
Decimal part
.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents