Conversion From Bcd 4-Digit And 8-Digit To Decimal Ascii Data Bcdda(P),Dbcdda(P)) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

BCDDA(P),DBCDDA(P)
7.11.3
Conversion from BCD 4-digit and 8-digit to decimal ASCII data
(BCDDA(P),DBCDDA(P))
BCDDA(P),DBCDDA(P)
BCDDA,DBCDDA
BCDDAP,DBCDDAP
Setting
Data
S
D
Function
BCDDA
(1) Converts the individual digit numbers of hexadecimal notation of the BCD 4-digit data
designated by
device designated by
b15
S
Thousands
place
For example, when "9105" is designated for
the area starting from
b15
S
(2) The BCD data designated by
(3) The results of calculation stored in the device
significant digits" are zero-suppressed.
7-188
Command
Command
: BCD data to be converted to ASCII (BCD 4 digits/8 digits)
S
: Head number of the devices where the conversion result will be stored (character string)
D
Internal Devices
R, ZR
Bit
Word
––
into ASCII codes, and stores the results into the area starting from the
S
.
D
b12
b11
b8
b7
b4
b3
Hundreds
Tens
Units
place
place
place
in the following manner:
D
b12
b11
b8
b7
b4
b3
5
9
1
0
S
0 0 5 0
Number of significant digits
20
H
High
Basic
performance
indicates an instruction symbol of BCDDA/DBCDDA.
J
\
U
\G
Bit
Word
––
b15
D
b0
ASCII code for hundreds place
D
+1
ASCII code for units place
D
+2
, the results of the operation are stored into
S
b15
D
31
(1)
b0
H
D
+1
35
(5)
H
D
+2
can be in the range of from 0 to 9999.
. All zeros on the left side of the "Number of
D
Process
Redundant Universal
S
D
P
S
D
Constants
Zn
Other
K, H
––
––
b8 b7
b0
ASCII code for thousands place
ASCII code for tens place
0
Only when SM701 is OFF
b8b7
b0
39
(9)
H
30
(0)
H
00
H
LCPU

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents