Mitsubishi MELSEC Q Series Programming Manual page 304

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

Advertisement

BKBIN(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 n-bit range from the
• The data n points at the
• The
Program Example
(1) The following program converts, when X20 is turned ON, the BCD data stored at D100 to
D102 to BIN and stores the operation result into the area starting from D200.
[Ladder Mode]
[Operation]
D100 BCD 8080
D101 BCD 7654
D102 BCD 9999
D200 BIN 8080
D201 BIN 7654
D202 BIN 9999
6-102
,
S
D
device is outside the 0 to 9999 range.
S
and
devices overlap.
S
D
1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 0 1 1 1 0 1 1 0 0 1 0 1 0 1 0
1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
BIN conversion
(when D0=3)
0 0 0 1 1 1 1 1 1 0 0 1 0 0 0
0 0 0 1 1 1 0 1 1 1 1 0 0 1 1
0 0 1 0 0 1 1 1 0 0 0 0 1 1 1
, or device exceeds the range of that device.
[List Mode]
Instruction
Step
0
0
1
(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