Conversion From Bcd 4-Digit And 8-Digit Data To Bin Data (Bin, Binp, Dbin, Dbinp) - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
6.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data
(BIN, BINP, DBIN, DBINP)
Internal Devices
Set
(System, User)
Data
Bit
Word
S
D
[Instruction Symbol] [Execution Condition]
BIN, DBIN
BINP, DBINP
[Set Data]
Set Data
S
D
[Functions]
BIN
Converts BCD data (0 to 9999) at device designated by
designated by
S
D
DBIN
Converts BCD data (0 to 99999999) at device designated by
device designated by
BCD 99999999
S
BIN 99999999
D
6 - 59
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
Command
Command
BCD data or head number of device storing BCD data
Head number of device that will store BIN data
.
D
8000
4000
2000
1000
800
BCD 9999
0
0
1
1
1
Thousands digits Hundreds digits
32768
16384
8192
4096
2048
0
0
0
0
BIN 9999
1
Always set these to 0
.
D
S
+1
0
0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
1
Ten millions
Millions
Hundred
digits
digits
thousands
digits
+1
D
0
0
0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1
Always set these to 0
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
indicates BIN or DBIN
P
Meaning
to BIN data, and stores at the device
S
400
200
100
80
40
20
10
8
0
0
0
0
1
1
1
1
Tens digits
Ones digits
BIN conversions
1024
512
256
128
64
32
16
8
0
0
0
0
1
1
1
1
S
S
Ten
Thousands
Hundreds
thousands
digits
digits
digits
BIN conversions
D
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
K, H
Zn
S
D
S
D
Data Type
BCD 4/8 digits
BIN 16/32 bits
4
2
1
0
0
1
4
2
1
1
1
1
to BIN data, and stores at the
Ten digits Ones digits
Q4AR
Other
U
6 - 59

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents