Bkbin, Bkbinp; Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

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.
Error
code
The nth data from the device specified by
4100
range.
The points specified in n exceed those of the corresponding device
4101
specified in
or
.
S
D
The same device is specified in
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
0 0 0 1 0 1 0 1 0 0 1 1 1 0 0 0
D101 BIN 4444
0 0 0 1 0 0 0 1 0 1 0 1 1 1 0 0
D102 BIN 3210
0 0 0 0 1 1 0 0 1 0 0 0 1 0 1 0
0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0
D200 BCD 5432
D201 BCD 4444
0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0
D202 BCD 3210
0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0
6.3.15

BKBIN, BKBINP

Conversion from block BCD 4-digit data to block BIN 16-bit
6.3.15

data

BKBIN, BKBINP
BKBIN
BKBINP
: Head number of the devices where BCD data is stored (BCD 4 digits)
S
: Head number of the devices where the converted BIN data will be stored (BIN 16 bits)
D
n
: Number of variable data blocks (BIN 16 bits)
Setting
Internal Devices
Data
Bit
Word
––
S
––
D
n
Error details
is outside the 0 to 9999
S
and
.
S
D
[List Mode]
Step
BCD
D0
3
conversion
Command
Command
J
\
R, ZR
Bit
Word
Q00J/
Q00/
QnH
Q01
Device
Instruction
High
Basic
performance
BKBIN
S
D
S
D
BKBINP
Zn
U
\G
––
––
BKBIN, BKBINP
QnPH QnPRH
QnU
LCPU
Process
LCPU
Redundant Universal
n
n
Constants
Other
K, H
––
––
––
251
1
2
3
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents