Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 528

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Processing details
• These instructions calculate the angle from the tangent of the angle specified by (s), and store the operation result in the
device specified by (d).
(s)+1
(s)
-1
TAN
(
Single-precision real number
• The angle (operation result) stored in (d) is expressed in radians (from -/2 to /2).
• The table below shows the related devices.
Device
Name
SM700
Carry
SM8020
Zero
SM8021
Borrow
SM8022
Carry
Operation error
Error code
Description
(SD0/SD8067)
The specified device value is -0, denormalized number, NaN (not a number), or .
3402H
For the radianangle conversion, refer to the DRAD(P) and DDEG(P) instructions.
(Page 527 Converting single-precision real number angle to radian, Page 529 Converting single-precision
real number radian to angle)
8 APPLICATION INSTRUCTION
526
8.9 Real Number Instruction
(d)+1
)
Single-precision real number
Description
Condition
The absolute value of the operation result  2
The operation result is true "0".
(The mantissa part is "0").
The absolute value of the operation result < 2
The absolute value of the operation result  2
(d)
Operation
128
The value of (d) is the maximum value (2
numbers and the carry flag SM700 turns on.
The zero flag SM8020 turns on.
-126
The value of (d) is the minimum value (2
numbers and the borrow flag SM8021 turns on.
128
The value of (d) is the maximum value (2
numbers and the carry flag SM8022 turns on.
128
) of 32-bit real
-126
) of 32-bit real
128
) of 32-bit real

Hide quick links:

Advertisement

loading