Yaskawa Ladder Works Programming Manual User Manual

Page 25

Advertising
background image

2.4 SUBTRACTION Instruction (SUB)

2-8

[Program Example]

Subtraction of integer type values

Subtraction of real number type values

Notes: In the case of double-length integer type values, an operation using addition and

subtraction instructions (+, –, ++, --) will be a 32-bit operation. However, when an
addition or subtraction instruction is used in a remainder correction operation (where a
multiplication instruction (×) is the immediately preceding instruction and a division
instruction (÷) is the immediately subsequent instruction), the operation will be a 64-bit
operation.


Advertising