Delta Electronics AC Motor Drive VFD-E User Manual
Page 338

Appendix D How to Use PLC Function|
Revision June 2008, 04EE, SW--PW V1.11/CTL V2.11
D-55
API
Mnemonic
Operands
Function
23
DIV P S
1
, S
2
,
D Division
Bit Devices
Word devices
Program Steps
Type
OP
X Y M K H
KnX KnY KnM T
C
D
S
1
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
D
*
*
*
*
*
DIV, DIVP: 7 steps
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
API Mnemonic
Operands
Function
24
INC P
D
Increment
Bit Devices
Word devices
Program Steps
Type
OP
X Y M K H
KnX KnY KnM T
C
D
D
*
*
*
*
*
INC, INCP: 3 steps
- AC Motor Drive VFD-G (183 pages)
- SMT Power Inductor SIL104R (1 page)
- Q48SB (2 pages)
- Planar DC/DC Transformer ER/ER(Plate) 22 (1 page)
- SMT Power Inductor HCB1190B (1 page)
- Series E48SR (15 pages)
- E48SR12007 (15 pages)
- SMT Power Inductor SIWC1360 (1 page)
- PFC Chokes PFC2815V Series (1 page)
- SMT Power Inductor SIB86 (1 page)
- PMC-24V050W1AA (2 pages)
- SMT Power Inductor HCB1050 (1 page)
- SMT Power Inductor HAH1330 (1 page)
- PFC Chokes PFC4120V Series (1 page)
- PFC Choke PFC3520V Series (1 page)
- SMT Power Inductor HCB1047B (1 page)
- SMT Power Inductor HAH1365 (1 page)
- SMT Power Inductor HMS1355 (1 page)
- Series S48SA (13 pages)
- E48SC (2 pages)
- SMT Power Inductor SILM106 (1 page)
- Delphi Series L48DB (2 pages)
- S48SA (13 pages)
- E36SR (2 pages)
- 3KVA (31 pages)
- SMT Power Inductor HMU1056L (1 page)
- Through Hole Power Inductors THCBR1090 (1 page)
- SMT Power Inductor SIL625 (1 page)
- SMT Power Inductor 1378(S) (1 page)
- Through Hole Power Inductors 1411 (1 page)
- Current Sense Transformers TCE1310H (1 page)
- H48SR (13 pages)
- Series E48SH (15 pages)
- AC Motor Drive VFD-EL (209 pages)
- Through Hole Power Inductors THAH1095 (1 page)
- Suppression Inductors LFU09V (1 page)
- SMT Power Inductor HCB0740A (1 page)
- Power Output Module DVPPS01 (2 pages)
- SMT Power Inductor SIR74 (1 page)
- L36SA (2 pages)
- 4.5V~ 5.5V (3 pages)
- Delphi Series V48SB (2 pages)
- Series S48SP (14 pages)
- Series 240W (11 pages)
- Delphi Series E24SR (15 pages)