Mitsubishi Electric MELSEC Q Series Programming Manual page 174

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU
[Error]
(2) BIN 32-bit subtraction operation (D-)
• Subtracts 32-bit BIN data designated by (S1) from 32-bit BIN data designated
by (S2) and stores the result of the subtraction at the device designated by (D).
• Values for (S1), (S2) and (D) can be designated between -2147483648 and
2147483647 (BIN 32 bits).
• The judgment of whether data is positive or negative is made by the most
significant bit (b31).
0: Positive
1: Negative
• The following will happen when an underflow or overflow is generated in an
operation result: The carry flag in this case does not go ON.
K-2147483648 - K2
(80000000H)
K2147483647 - K-2
(80000000H)
When the same device is specified in (S1) and (d) or (S2) and (d), a sequence
program error occurs, the safety observation errors (SM57) are turned ON and error
code (SD32): 10, detail code (SD33): 2700H are stored.
→ K2147483646 .......Since bit 31 value is "0",
(00000002H)
(7FFFFFFEH)
→ K-2147483647 ......Since bit 31 value is "1",
(FFFFFFFEH)
(80000001H)
5 - 33
result of operation takes a
positive value.
result of operation takes a
negative value.

Advertisement

Table of Contents
loading

Table of Contents