Mitsubishi MELSEC Q Series Programming Manual page 239

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(3) The following will result if an underflow is generated by the subtraction operation:
The carry flag in this case does not go ON.
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
• The
,
S2
S1
Program Example
(1) The following program adds the D3 BCD data and the Z1 BCD data when X20 goes ON, and
outputs the result to Y8 to Y17.
[Ladder Mode]
(2) The following program subtracts the BCD data at D20 from the BCD data at D10 when X20
goes ON, and stores the result at R10.
[Ladder Mode]
0
0
0
1
0
0
or BCD data is outside the 0 to 9999 range.
D
0
3
9
9
9
8
[List Mode]
Step
Instruction
[List Mode]
Instruction
Step
B+(P), B-(P)
(Error code: 4100)
Device
Device
6-37
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents