Delta C2000 series User Manual page 482

Classical field oriented. control ac motor drive
Hide thumbs Also See for C2000 series:
Table of Contents

Advertisement

API
DIV
23
D
P
Bit Devices
X
Y
M
K
S
1
S
2
D
Operands:
In 16-bit instruction, D occupies 2 consecutive devices.
1.
: Dividend S
S
E xplanation
1
2.
This instruction divides S
careful with the positive/negative signs of S
32-bit operations.
If D is the bit device, it allocates K1~K14 to 16-bit and occupies 2 continuous sets
of quotient and remainder.
When X0 = On, D0 will be divided by D10; the quotient will be stored in D20 and
Example
remainder in D21. On/Off of the highest bit indicates the positive/negative value of the
result.
S1
S2
D
Word Devices
H KnX KnY KnM T
: Divisor
2
1
16-bit instruction:
/
X0
Chapter 16 PLC Function |C2000 Series
BIN Division
16-bit command (7 STEPS)
DIV
C
D
32-bit command (13 STEPS)
Flag signal: none`
D: Quotient and remainder
and S
in BIN format and stores the result in D. Be
2
, S
1
2
Quotient
=
DIV
D0
D10
DIV
D0
D10
16-59
DIVP
and D when doing 16-bit and
Remainder
D20
K4Y0
+1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents