EasyManua.ls Logo

Mitsubishi MELSEC-Q/L

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
251
BKBIN, BKBINP
1
2
3
4
6
7
8
6.3 Data conversion instructions
6.3.15 BKBIN, BKBINP
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.
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] [List Mode]
[Operation]
: Head number of the devices where BCD data is stored (BCD 4 digits)
: Head number of the devices where the converted BIN data will be stored (BIN 16 bits)
n : Number of variable data blocks (BIN 16 bits)
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100
The nth data from the device specified by is outside the 0 to 9999
range.
4101
The points specified in n exceed those of the corresponding device
specified in or .
The same device is specified in and .
6.3.15 BKBIN, BKBINP Conversion from block BCD 4- digit data to block BIN 16-bit
data
6.3.15
BKBIN, BKBINP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
–– –– ––
–– –– ––
n ––
S
S
D
S
D
Step
Instruction
Device
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 00
1
0 0
0 0
1 1
0 0
1
0 0 0 0
1
0
0 0 0
0 0 0
1
0
1
0
1
0 0
1 11
0 0 0
0 0 0
1
0 0 0
1
0
1
0
111
0 0
0 0 0 0 1 1 0 0 1 0 0 010 1 0
3D0
D200 BCD 5432
D202 BCD 3210
D201 BCD 4444
D100 BIN 5432
D102 BIN 3210
D101 BIN 4444
8192
4096
2048
1024
512
256
128
64
32
16
8
4
2
1
2000
1000
800
400
200
100
80
40
20
10
8
4
2
1
4000
8000
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
BKBINP
BKBIN
n
n
S D
S D
BKBINP
BKBIN
S
D
S
D

Table of Contents

Related product manuals