Bkbcd, Bkbcdp - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

BKBCD, BKBCDP

6.3.14
BKBCD, BKBCDP
Conversion from block BIN 16-bit data to BCD 4-digit data
6.3.14
BKBCD, BKBCDP
BKBCD
BKBCDP
: Head number of the devices where BIN data is stored (BIN 16 bits)
S
: Head number of the devices where the converted BCD data will be stored (BCD 4 digits)
D
n
: Number of variable data blocks (BIN 16 bits)
Setting
Internal Devices
Data
Bit
Word
––
S
––
D
n
Function
(1) Converts BIN data (0 to 9999) n points from device designated by
designated by
.
D
Must always be "0".
BIN 1234
0
0 0 0 0 1 0 0 1 1 0 1 0 0 1 0
S
S
+1
BIN 5678
0
0 0 1 0 1 1 0 0 0 1 0 1 1 1 0
S
+2
BIN 1545
0
0 0 0 0 1 1 0 0 0 0 0 1 0 0 1
S
+(n 2)
BIN 4321
0
0 0 1 0 0 0 0 1 1 1 0 0 0 0 1
S
+(n 1)
BIN 5555
0
0 0 1 0 1 0 1 1 0 1 1 0 0 1 1
D
BCD 1234
0
0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
D
0
1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
+1
BCD 5678
D
0
0 0 1 0 1 0 1 0 1 0 0 0 1 0 1
+2
BCD 1545
D
+(n 2)
BCD 4321
0
1 0 0 0 0 1 1 0 0 1 0 0 0 0 1
D
0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
+(n 1)
BCD 5555
250
Command
Command
J
\
R, ZR
Bit
Word
n
BCD conversion
n
High
Basic
Process
performance
BKBCD
S
D
BKBCDP
S
D
Zn
U
\G
––
––
to BCD, and stores result following the device
S
Redundant Universal
LCPU
n
n
Constants
Other
K, H
––
––
––

Advertisement

Table of Contents
loading

Table of Contents