Bcdda, Bcddap; Dbcdda, Dbcddap; Conversion From Bcd 4-Digit Data To Decimal Ascii Data; Conversion From Bcd 8-Digit Data To Decimal Ascii Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

BCDDA, BCDDAP, DBCDDA, DBCDDAP
7.11.3

BCDDA, BCDDAP

Conversion from BCD 4-digit data to decimal ASCII data

7.11.3

DBCDDA, DBCDDAP

Conversion from BCD 8-digit data to decimal ASCII data

BCDDA, BCDDAP, DBCDDA,
DBCDDAP
BCDDA, DBCDDA
BCDDAP, DBCDDAP
: 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
Setting
Internal Devices
Data
Bit
S
––
D
Function
BCDDA
(1) Converts the individual digit numbers of hexadecimal notation of the BCD 4-digit data designated by
and stores the results into the area starting from the device designated by
b15
b12
b11
b8
b7
S
Thousands
Hundreds
place
place
For example, when "9105" is designated for
following manner:
b15
b12
b11
b8
b7
S
9
1
(2) The BCD data designated by
(3) The results of calculation stored in the device
suppressed.
0 0 5 0
Number of significant digits
20
H
(4) The data to be stored at the device designated by
characters to output select signal).
When SM701 is OFF.....Stores "0"
When SM701 is ON......Does not change
452
Command
Command
R, ZR
Word
Bit
b15
D
b4
b3
b0
D
+1
D
+2
Tens
Units
place
place
, the results of the operation are stored into the area starting from
S
D
b4
b3
b0
D
0
5
+1
D
+2
can be in the range of from 0 to 9999.
S
. All zeros on the left side of the "Number of significant digits" are zero-
D
D
High
Basic
performance
indicates an instruction symbol of BCDDA/DBCDDA.
J
\
U
\G
Word
––
.
D
b8 b7
ASCII code for hundreds place
ASCII code for thousands place
ASCII code for units place
ASCII code for tens place
0
Only when SM701 is OFF
b15
b8b7
31
(1)
39
(9)
H
H
35
(5)
30
(0)
H
H
00
H
+2 differs depending on the ON/OFF status of SM701 (number of
Process
Redundant Universal
LCPU
S
D
P
S
D
Constants
Zn
Other
K, H
into ASCII codes,
S
b0
D
b0
––
––
in the

Advertisement

Table of Contents
loading

Table of Contents