User manual
Instruction Set
Compute 3-21
compute instructions continued...
Instruction Description
Tangent
TAN
(Enhanced, Ethernet and
ControlNet PLC-5 processors
only)
When the input conditions are true, take the tangent of the Source (F8:15) and store the result in the
Destination (F8:16). The Source must be greater than or equal to –102943.7 and less than or equal to
102943.7. The Source is interpreted as radians.
TANGENT
Source F8:15
0.7853982
Destination F8:16
1.0000000
TAN
Status Bit Description
Calways resets
V sets if overflow is generated; otherwise resets
Z sets if the result is zero; otherwise resets
S sets if the result is negative; otherwise resets