Specifications
7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-63
The function of this command is opposite to API 49 (FLT).
If the result after converting is 0, zero flag M1020=On.
If there is any decimal discarded, M1021= On.
If the result exceeds the following range, M1022=On.
16-bit command: -32,768~32,767
32-bit command: -2,147,483,648~2,147,483,647
Program Example
INT
X0
D0 D10
DINT
X1
D20 D30
Ϩʳ When X0=On, the decimal of binary system (D1, D0) will convert to
BIN integer and save the result in (D10). The decimal of BIN integer
will be discarded.
Ϩʳ When X1=On, the decimal of binary system (D21, D20) will convert to
BIN integer and save the result in (D31, D30). The decimal of BIN
integer will be discarded.
Please refer to page 7-4 Handling of Decimal for detail.
D
130
SIN S D
SIN operation of decimal of
binary system
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
Ϩ
D
Ϩ
S
: designated RAD value.
D
: the result after converting to SIN.
RAD value that
S
designates = angle ͪӸ/180. Save the result of
converting to SIN value in the register that
D
designates.
Program Example
DSIN
X0
D0 D10
D1 D0
D11 D10
RAD 180)YDOXHDQJOH
SIN value
decimal of binary system
decimal of binary system
Ϩʳ When X0=On, save the result after converting the RAD value of
decimal of binary system of (D1, D0) to SIN value in (D11, D10). The
content is decimal of binary system.
Selecting angle from input terminal X0 and X1 and convert it to RAD
value. Then convert to SIN value.
D10FLT
M1000
D1120
K31415926
K1800000000
D20
D14 D40
K30MOVP
X0
K6
K60
X1
K6
D50D40
DEDIV
DSIN
D20
MOVP
DEMUL
(K30 D10)
(K60 D10)
(D10 D15 D14)$
decimal of binary system
( /180) (D21, D20)
(D15 D14)angle * /180$
(D41 D40) RAD decimal of
binary system
$
(D41 D40) RAD (D51 D50) SIN$$
decimal of
binary system
decimal of
binary system
decimal of binary system
Please refer to page 7-4 Handling of Decimal for detail.