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