D-63
API
Mnemonic
Operands Function
23 DIV P S
1
, S
2
,
D Division
Type
OP
Bit Devices
Word devices
Program Steps
X
Y
M K
H KnX KnY KnM T C D DIV, DIVP: 7 steps
S
1
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
D
*
*
*
*
*
Operands:
S
1
: Dividend S
2
: Divisor D: Quotient and remainder
Explanations:
1.
In 16-bit instruction,
D
occupies 2 consecutive devices.
2.
This instruction divides
S
1
and
S
2
in BIN format and stores the result in
D
. Be careful with
the positive/negative signs of
S
1
,
S
2
and
D
when doing 16-bit and 32-bit operations.
16-bit instruction:
+1
=
/
Quotient
Remainder
Program Example:
When X0 = On, D0 will be divided by D10 and the quotient will be stored in D20 and remainder in
D21. On/Off of the highest bit indicates the positive/negative status of the result value.
X0
DIV
D0
D10
D20
D0
D10
K4Y0
DIV
Содержание VFD-E Series
Страница 271: ...B 6 B 1 4 DIN Rail Installation...
Страница 304: ...B 39 Driver Installation After connecting IFD6500 to PC please install driver by following steps...
Страница 305: ...B 40 LED Display 1 Steady Green LED ON power is ON 2 Blinking orange LED data is transmitting...
Страница 306: ...B 41 B 9 DIN Rail B 9 1 MKE DRA Unit mm inch SCREW M4 2X 20 22 Kgf cm...
Страница 335: ...D 8 In ladder diagram mode you can perform program editing using the buttons on the function icon row Basic Operation...