EasyManua.ls Logo

Vigor VS Series - Page 279

Vigor VS Series
484 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
273
D S N
I
P
S
D
1
2
M
3
FNC
130
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
D
DSIN D0 D10
X0
DEDIV
DEMUL
DSIN
M9000
K314159
K45
D2
K18000000
D2
D0
D0
(π/180) (D1,D0)
D10
S
D
S
D
D
S
Operand
Devices
Calculate Sine
S : the source device for input the angle in radians
D : the calculated result
This instruction performs the mathematical sine operation on the designated BIN oating point radians of
angle, and the result is stored in the designated device.
When X0 = “ON”, the instruction is activated, it uses the BIN oating point radians at (D1, D0) to calculate the sine
value, and the result will be stored at the specied destination devices (D11, D10).
Radian = Degree × π / 180
This instruction is a 32-bit instruction. Therefore, be sure to input DSIN or DSINP in the program.
The source operand must assign to a BIN oating point number for the calculation, and the calculated result
is by the BIN oating point format, too.
The format for storing a oating point number will occupy two Registers in the PLC system. Please refer to the
section 2-13 “Numerical System” for the reference of the oating point number.
The example below is to calculate the 45 degree angle become a radian value of oating point, then use the
radians to get the result value of SIN.
The angel of 45 degree×( π / 180 ) (D3, D2) [Unit: radian]
The result value of SIN is stored in (D11, D10).

Table of Contents