Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 522

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

Advertisement

Processing details
• These instructions calculate the tangent of the angle specified by (s), and store the operation result in the device specified
by (d).
(s)+1
(s)
TAN (
Single-precision real number
• Set the angle data in radians (angle180).
• The table below shows the related devices.
Device
Name
SM700
Carry
SM8020
Zero
SM8021
Borrow
SM8022
Carry
Precautions
When the angle specified by (s) is /2 radian or (3/2) radian, no error occurs because an operation error occurs in a radian
value.
Operation error
Error code
Description
(SD0/SD8067)
The specified device value is -0, denormalized number, NaN (not a number), or .
3402H
For the angleradian 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
520
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