
6-98
BKBCD(P)
6.3.14 Conversion from block BIN 16-bit data to BCD 4-digit data
(BKBCD(P))
BKBCD(P)
Function
(1) Converts BIN data (0 to 9999) n points from device designated by to BCD, and stores
result following the device designated by .
: Head number of the devices where BIN data is stored (BIN 16 bits)
: Head number of the devices where the converted BCD data will be stored (BCD 4 digits)
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
BKBCDP
BKBCD
n
n
S D
S D
BKBCDP
BKBCD
S
D
S
D
S
D
BCD conversion
0
BIN 1234 0 0 0 0 1 0 0 1 1 0 100 1 0
0
BIN 5678 0 0 1 0 1 10 0 0 1 011 1 0
0
BIN 1545 0 0 0 0 1 1 0 0 0 0 0100 1
+1
n
Must always be "0".
0
BIN 4321 00 1 0 0 0 0 1 1 1 000 0 1
0
BIN 5555 0 0 10 1 0 1 1 0 1 100 1 1
+(n1)
+2
+(n2)
0
BCD 1234 0 0 10 0 10 0 0 1 1010 0
0
BCD 5678 10101 1 0 0 1 1 110 0 0
0
BCD 1545 0 0 1010101000101
0
BCD 4321 10 0 0 0 1 1 0 0 1000 0 1
0
BCD 5555 101010101010101
S
S
S
S
S
+1
+(n1)
+2
+(n2)
D
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