
6F3B0250
7. Instructions
FUN 032
D-
Double-word subtraction
Expression
Input
Function
When the input is ON, the
If the result is greater than 2147483647, the upper limit value 2147483647 is stored in C+1×C, and the output is turned ON. If the result is smaller than
Execution condition
Input | Operation | Output |
OFF | No execution | OFF |
ON | Execution (normal) | OFF |
| Execution (overflow or underflow occurred) | ON |
Operand
| Name |
|
| Device |
|
|
|
|
|
| Register |
|
|
|
| Constant | Index | ||
|
| X | Y | R | S | T. | C. | XW | YW | RW | SW | T | C | D | I | J | K |
|
|
A | Minuend |
|
|
|
|
|
| Ö | Ö | Ö | Ö | Ö | Ö | Ö |
|
|
| Ö |
|
B | Subtrahend |
|
|
|
|
|
| Ö | Ö | Ö | Ö | Ö | Ö | Ö |
|
|
| Ö |
|
C | Difference |
|
|
|
|
|
|
| Ö | Ö | Ö | Ö | Ö | Ö |
|
|
|
|
|
Example
When R005 is ON, the
If the data of D0101×D0100 is 1580000 and the data of RW25×RW24 is 80000, the result 1500000 is stored in D0103×D0102, and R010 is turned OFF. (No overflow/underflow)
D0101×D0100
RW25×RW24
1580000
- D0103×D0102
80000
1500000
R010 is OFF
166 T1/T1S User’s Manual
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net