Mitsubishi MELSEC-A Series Programming Manual page 135

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

6. BASIC INSTRUCTIONS
Execution Conditions
Operation Errors
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.
Addition/subtraction
commands
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.
ON
OFF
Executed
per scan
P
6 − 23
MELSEC-A
Executed
per scan
Executed
Executed
only once
only once

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents