Mitsubishi MELSEC Q Series Programming Manual page 302

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

Advertisement

BKBCD(P)
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The range of the device n points from a device designated by
relevant device.
• The data n points from the device designated by
• The
Program Example
(1) The following program converts, when X20 is turned ON, the BIN data stored at D100 to
D102 to BCD and stores the operation result into the area starting from D200.
[Ladder Mode]
[Operation]
D100 BIN 5432
D101 BIN 4444
D102 BIN 3210
D200 BCD 5432
D201 BCD 4444
D202 BCD 3210
6-100
and
devices overlap.
S
D
0 0 0 1 0 1 0 1 0 0 1 1 1 0 0 0
0 0 0 1 0 0 0 1 0 1 0 1 1 1 0 0
0 0 0 0 1 1 0 0 1 0 0 0 1 0 1 0
BCD
conversion
0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0
0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0
0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0
S
is outside the 0 to 9999 range.
S
[List Mode]
Instruction
Step
D0
3
,
or exceeds the
D
(Error code: 4101)
(Error code: 4100)
(Error code: 4101)
Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents