6. BASIC INSTRUCTIONS
6
−
26
MELSEC-A
(3) At (S), (S1), (S2) and D, 0 to 99999999 (BCD 8 digits) can be specified.
(4) Even if the addition result exceeds 99999999, the carry flag does not turn on
and the carry digit is ignored.
DB-
(1) Subtracts the BCD data specified at (S) from the BCD data specified at (D), and
stores the subtraction result into the device specified at (D).
(2) Performs subtraction of the BCD data specified at (S1) and the BCD data
speci-fied at (S2), and stores the subtraction result into the device specified at
(D1).
Digits higher than the specified digit are regarded as 0.
(3) At (S), (S1), (S2) and (D), 0 to 99999999 (BCD 8 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
Digits higher than the specified digit are 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: ......