Conversion From Block Bin 16-Bit Data To Bcd 4-Digit Data (Bkbcd, Bkbcdp) - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
6.3.11 Conversion from block BIN 16-bit data to BCD 4-digit data
(BKBCD, BKBCDP)
Internal Devices
Set
(System, User)
Data
Bit
Word
S
D
n
[Instruction Symbol] [Execution Condition]
BKBCD
BKBCDP
[Set Data]
Set Data
S
D
n
[Functions]
(1) Converts BIN data (0 to 9999) n-points from device designated by
following the device designated by
6 - 74
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
Command
Command
Head number of device storing BIN data
Head number of device which will store BCD data after conversion
Number of data blocks converted
These should be set to 0
BIN 1234
0
S
S
+1
BIN 5678
0
+2
BIN 1545
0
S
+(n-2)
BIN 4321
0
S
0
+(n-1)
BIN 5555
S
D
BCD 1234
0
+1
BCD 5678
0
D
+2
BCD 1545
0
D
0
D
+(n-2)
BCD 4321
+(n-1)
BCD 5555
0
D
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
BKBCD
S
BKBCDP
S
Meaning
.
D
0 0 0 0 1 0 0 1 1 0 1 0 0 1 0
0 0 1 0 1 1 0 0 0 1 0 1 1 1 0
0 0 0 0 1 1 0 0 0 0 0 1 0 0 1
0 0 1 0 0 0 0 1 1 1 0 0 0 0 1
0 0 1 0 1 0 1 1 0 1 1 0 0 1 1
BCD conversions
0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
0 0 1 0 1 0 1 0 1 0 0 0 1 0 1
1 0 0 0 0 1 1 0 0 1 0 0 0 0 1
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
Other
K, H
Zn
n
D
n
D
Data Type
BIN 16 bits
to BCD, and stores result
S
n
n
6 - 74
Q4AR

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents