Instruction 24- subtraction – Maple Systems MAPware-7000 User Manual
Page 50

MAPware-7000 Ladder Logic Guide
42
1010-1041 rev. 00
Instruction 24-
Subtraction
Expression:
Space Requirement: 1 line x 6 column Location Requirement: Middle, Right rail
Function:
When the input is ON, the data of B is subtracted from the data of A, and the result is stored in
C. If the result is greater than 32767, the upper limit value 32767 is stored in C, and the output is
turned ON. If the result is smaller than -32768, the lower limit value -32768 is stored in C, and
the output is turned ON.
Execution Condition:
Input
Operation
Output
OFF
No execution
OFF
ON
Execution (normal)
OFF
Execution (overflow or underflow condition)
ON
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
Minuend
√
√
√
√
√ √
√
√
√
√
√
√
B
Subtrahend
√
√
√
√
√ √
√
√
√
√
√
√
C
Difference
√
√
√
√ √
√
√
√
√
√
Example:
When B005 is ON, the constant data 2500 is subtracted from the data of D0200, and the result is
stored in BW50.
If the data of D0200 is 15000, the result 12500 is stored in BW50, and B010 is turned OFF.