6F3B0253
148 T1-16S User’s Manual
7. Instructions

FUN 032 DDouble-word subtraction

Expression
Input [ A+1A D B+1B C+1C ] Output
Function
When the input is ON, the double-word data of B+1B is subtracted from A+1A, and the result is
stored in C+1C. The data range is -2147483648 to 2147483647.
If the result is greater than 2147483647, the upper limit value 2147483647 is stored in C+1C, and
the output is turned ON. If the result is smaller than -2147483648, the lower limit value
-2147483648 is stored in C+1C, and the output is turned ON.
Execution condition
Input Operation Output
OFF No execution OFF
ON Ex ecution (normal) OFF
Execution (overfl ow or underflow occurred) ON
Operand
Name Device Register Constant Index
X Y R S T. C. XWYWRWSW T C D I J K
AMinuend √√√√√√√ √
BSubtrahend √√√√√√√ √
CDifference √√√√√√
Example
When R005 is ON, the double-word data of RW25RW24 is subtracted from the double-word
data of D0101D0100, and the result is stored in D0103D0102.
If the data of D0101D0100 is 1580000 and the data of RW25RW24 is 80000, the result
1500000 is stored in D0103D0102, and R010 is turned OFF. (No overflow/underflow)
D0101D0100 1580000 D0103D0102 1500000 R010 is OFF
RW25RW24 80000