6.3.15
Conversion from block BCD 4-digit data to block BIN 16-bit
data (BKBIN(P))
BKBIN(P)
BKBIN
BKBINP
Setting
Data
S
D
n
Function
(1) Converts BCD data (0 to 9999) n points from device designated by
result following the device designated by
D
D
+1
D
+2
D
+(n 2)
D
+(n 1)
S
S
+1
S
+2
S
+(n 2)
S
+(n 1)
Command
Command
: 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)
Internal Devices
R, ZR
Bit
Word
––
––
BCD 1234
0
0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
BCD 5678
0
1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
BCD 1545
0
0 0 1 0 1 0 1 0 1 0 0 0 1 0 1
0
1 0 0 0 0 1 1 0 0 1 0 0 0 0 1
BCD 4321
BCD 5555
0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
BIN conversion
0
0 0 0 0 1 0 0 1 1 0 1 0 0 1 0
BIN 1234
BIN 5678
0
0 0 1 0 1 1 0 0 0 1 0 1 1 1 0
BIN 1545
0
0 0 0 0 1 1 0 0 0 0 0 1 0 0 1
0
0 0 1 0 0 0 0 1 1 1 0 0 0 0 1
BIN 4321
BIN 5555
0
0 0 1 0 1 0 1 1 0 1 1 0 0 1 1
High
Basic
performance
BKBIN
S
BKBINP
S
J
\
U
\G
Bit
Word
––
––
.
D
n
n
BKBIN(P)
Process
Redundant Universal
LCPU
n
D
n
D
Constants
Zn
Other
K, H
––
––
––
to BIN, and stores
S
6-101
1
2
3
4
4
6
7
8