Converting 16-bit binary data block to BCD 4-digit data block
BKBCD(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions convert the n points of binary data (0 to 9999) starting from the specified device to BCD data.
Ladder
(s)
FBD/LD
EN
ENO
s
d
n
■Execution condition
Instruction
BKBCD
BKBCDP
Setting data
■Description, range, data type
Operand
Description
(s)
Start device where the binary data is stored
(d)
Start device for storing the converted BCD data
(n)
Number of variables
EN
Execution condition
ENO
Execution result
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s)
(d)
(n)
6 BASIC INSTRUCTIONS
434
6.6 Data Conversion Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d)
(n)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
ENO:=BKBCD(EN,s,n,d);
ENO:=BKBCDP(EN,s,n,d);
Range
0 to 65535
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
16-bit signed binary
ANY16
BCD 4-digit
ANY16
16-bit unsigned binary
ANY16
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
*1
*1
Others
$