Instruction 30- division – double word – Maple Systems MAPware-7000 User Manual
Page 63

55
MAPware-7000 Ladder Logic Guide
1010-1041 rev. 00
Instruction 30- Division – Double Word
Expression:
Space Requirement: 1 line x 6 column Location Requirement: Middle, Right rail
Function:
When the input is ON, the double-word data of A+1× A is divided by the data of B, and the
quotient is stored in C and the remainder in C+1. The data range of A+1× A is 0 to 4294967295,
and the data range of B and C is 0 to 65535.
If the quotient is greater than 65535 (overflow), the limit value 65535 is stored in C, 0 is stored
in C+1, and the instruction error flag (ERF = S051) is set to ON.
Execution Condition:
Input
Operation
Output
ERF
OFF
No execution
OFF
---
Normal Execution (B ≠ 0)
ON
---
ON
Overflow (B ≠ 0)
ON
Set
No execution ( B = 0)
OFF
Set
Operand:
Coil or Bit
Register
Constant
Index
Name
X
Y B
S
T.
C.
M
X
W
Y
W
B
W
S
W
T C
D
I
J
K
M
W
A
Dividend
√
√
√
√
√ √
√
√
B
Divisor
√
√
√
√
√ √
√
√
C
Quotient
√
√
√
√ √
√
Example:
When B010 is ON, the double-word data of D0201×D0200 is divided by the constant data 4000,
and the quotient is stored in D1000 and the remainder is stored in D1001.