Download Pro-Control Editor Ver.5.0 User Manual - Pro

Transcript
Chapter 4 – Instructions
4.2.60 TAN (tangent function)
A:
Data (In radians)
B:
Variable that stores the result
The TAN instruction computes cos(A) and stores the value in B. Enter A data (values)
in radian units.
Arithmetic Formula : B=tan(A)
This instruction is normally ON. The following table lists the types of A and B data that
can be used for this instruction.
If A is…
Integer or integer constant
Real or real constant
B must be…
Real
Real
When the value used for A is in the vicinity of (2n-1) X π/2, where n is an integer, B
cannot be displayed. Therefore, #Overflow turns ON, and the solution is uncertain.
(π = 3.1415926535897)
see 3.2.17 - “#Overflow”
4.2.61 ASIN (Arc Sine)
A:
Data
B:
Result storing destination (Radian)
If you execute the ASIN instruction, sin-1(A) will be stored in B. The input A is between -1.0 and 1.0, the result B is output in radian and it is the real number between
-π/2 and π/2.
Arithmetic Formula : B=sin-1(A)
This instruction always continues. The combination of A and B that you can execute the
ASIN instruction is as the following.
Type of A
Integer, or Integer Constant
Real, or Real Constant
Type of B
Real
Real
• π = 3.1415926535897
• If A is out of range, #Overflow will be set to ON. The result in this case is
"Undefined".
See 3.2.17 – “#Overflow.”
4–80
Pro-Control Editor Ver. 5.0 User Manual