Conversion From Block Bin 16-Bit Data To Bcd 4-Digit Data (Bkbcd(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents