6. BASIC INSTRUCTIONS
6
−
23
MELSEC-A
B-
(1) Performs the subtraction of BCD data specified at (D) and the BCD data
specifi-ed at (S), and stores the subtraction result into the device specified at
(D).
(2) Performs the subtraction of BCD data specified at (S2) and the BCD data
speci-fied at (S1), and stores the subtraction result into the device specified at
(D1).
(3) At (S), (S1), (S2) and (D), 0 to 9999 (BCD 4 digits) can be specified.
(4) It is required to judge whether the operation result is positive or negative by use
of the program.
Execution Conditions
Operation Errors
In the following cases, operation error occurs and the error flag turns on.
•
A value other than 0 to 9 exists in any digit of (S) (S1), (S2), (D).
Digit higher than the specified digit is regarded as 0.
Digit higher than the specified digit is regarded as 0.
OFF
ON
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
P
Addition/subtraction
commands
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......