EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC QCPU

Mitsubishi MELSEC QCPU User Manual

Mitsubishi MELSEC QCPU
285 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #208 background imageLoading...
Page #208 background image
6 - 57 6 - 57
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.3 Data Conversion Instructions
6.3.1 Conversion from BIN data to 4-digit and 8-digit BCD
(BCD, BCDP, DBCD, DBCDP)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
S
D
[Instruction Symbol] [Execution Condition]
indicates BCD or DBCD
P
Command
Command
BCD, DBCD
BCDP, DBCDP
S D
S D
[Set Data]
Set Data Meaning Data Type
S
BIN data, or head number of the device where BIN data is stored BIN 16/ 32 bits
D
Head number of the device that will store BCD data BCD 4/8 digits
[Functions]
BCD
Converts BIN data (0 to 9999) at the device designated by
S
to BCD data, and stores it at the
device designated by
D
.
-32768 16384 8192
4096 2048 1024 512 256 128 64 32 16 8 4 2 1
0010011100001111
8000 4000 2000 1000 800 400 200 100 80 40 20 10 8 4 2 1
1001100110011001
BCD conversions
Thousands
digits
Hundreds
digits
Tens
digits
Ones
digits
These should be set to 0
BIN 9999
S
BCD 9999
D
DBCD
Converts BIN data (0 to 99999999) at the device designated by
S
to BCD data, and stores it
at the device designated by
D
.
BCD
conversions
These should be set to 0
(Upper 5 bits)
0 0 000101111101011110000011111111
Ten
millions
digits
0
1 011001100110011001100110011001
Millions
digits
Hundred
thousands
digits
Ten
thousands
digits
Thousands
digits
Hundreds
digits
Tens
digits
Ones
digits
+1 (Upper 16 bits)
1
2
4
8
1
2
4
8
1
2
4
8
1
2
4
8
1
2
4
8
1
2
4
8
1
2
4
8
1
2
4
8
BIN 99999999
S
BCD 99999999
D
10
7
10
6
10
5
10
4
10
3
10
2
10
1
10
0
2
31
2
30
2
29
2
28
2
27
2
26
2
25
2
24
2
23
2
22
2
21
2
20
2
19
2
18
2
17
2
16
2
15
2
14
2
13
2
12
2
11
2
10
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
S
(Lower 16 bits)
S
(Lower 4 digits)
D
+1(Upper 4 digits)
D
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC QCPU and is the answer not in the manual?

Mitsubishi MELSEC QCPU Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC QCPU
CategoryController
LanguageEnglish

Related product manuals