Calculating The Tangent - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

13.8

Calculating the Tangent

TAN
These functions output the tangent of an input value.
Structured text
d:=TAN(s);
Setting data
■Description, type, data type
Argument
Description
s (IN)
Input
d
Output
Processing details
■Operation processing
• These functions calculate the tangent of the REAL data type value (angle) input to (s), and output the operation result from
(d).
• When the input value is defined as A and the output value is defined as B, the relationship of A and B will be as follows:
B=TAN A
• Note that even if the input value is π/2 radian or (3/2)π radian, no error will be issued because of the truncation error in the
radian value.
• Input a REAL data type value to (s). Input a value (angle) in radians (angle×π/180).
■Operation result
The operation processing is performed. The operation result is output from (d).
Operation error
Error code
Description
3402H
The data specified by (s) is -0.
Type
Data type
Input variable
ANY_REAL
Output variable
ANY_REAL
13 SINGLE VARIABLE FUNCTIONS
13.8 Calculating the Tangent
13
173

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents