Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 778

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

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).
• If the operation result is -0 or an underflow occurs, the operation result turns out to 0.
• When an input value is set using the engineering tool, a rounding error may occur. Refer to the following for the precautions
on setting input values using the engineering tool.
Page 49 Precautions
Precautions
If the angle specified by (s) is /2 radian or (3/2) radian, no operation error will be issued because of the truncation error in
the radian value.
Operation error
Error code
Description
(SD0)
The value input to (s) is -0, a subnormal number, NaN (not a number), or .
3402H
For the angleradian conversion, refer to the RAD(P) and DEG(P) instructions.
Page 807 RAD(P)
Page 809 DEG(P)
7 APPLICATION INSTRUCTIONS
776
7.9 Real Number Instructions
(d)+1
)
Single-precision real number
(d)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents