Part 4 Commands
1.3 Function Operation
SIN (Sine operation)
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Output
(Output, flag)
Operand 1 Operand 2
Optional Optional SIN
Variable
number
Data ZR
Assign the sine of the data specified in operand 2 to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.
The setting in operand 1 must be a real variable in a range of 100 to 199, 1100 to 1199, 300
to 399 or 1300 to 1399.
The unit of data in operand 2 is radian.
π
÷
Assign the sine of 0.523599 (0.5) to variable 100.
Assign 100 to variable 1.
30 x π ÷ 180 (radian)
(30° will be converted to radian and assigned to
variable 101.)
Assign the sine of the content of variable 101 (0.5) to
the content of variable 1 (variable 100).
Kommentare zu diesen Handbüchern