Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-198
DABCD(P),DDABCD(P)
7.11.6
Conversion from decimal ASCII to BCD 4-digit or 8-digit data
(DABCD(P),DDABCD(P))
DABCD(P), DDABCD(P)
Function
DABCD
(1) Converts decimal ASCII data stored in the area starting from device number designated by
into 4-digit BCD data, and stores at device number designated by .
For example, if the ASCII code of 8765
H is designated for the area starting from , the
operation results would be stored at in the following manner:
(2) The ASCII data designated by to +1 can be in the range of from 0 to 9999.
(3) The ASCII code set at each digit can be in the range of from "30
H" to "39H".
(4) If ASCII code for individual digits is "20
H" or "00H", it is processed as "30H".
: ASCII data to be converted to BCD value or head number of the devices where the ASCII data is stored
(character string)
: Head number of the devices where the conversion result will be stored (BCD 4 digits/8 digits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
$
Other
Bit Word Bit Word
–– –– ––
–– ––
Process
High
performance
Redundant
Universal
Basic
Command
Command
P
DS
D
S
DABCD,DDABCD
DABCDP,DDABCDP
indicates an instruction symbol of DABCD/DDABCD.
S
D
S
D
S
D
Thousands
place
Hundreds
place
Tens
place
Units
place
ASCII code for thousands place
+1
b15 b12 b8b11
b7
b4 b0b3
b15 b8b7 b0
ASCII code for hundreds place
ASCII code for units place
S
S
D
ASCII code for tens place
S
D
876
5
b15 b12 b8b11 b7 b4 b0b3
38
H
(8)37
H
(7)
36
H
(6)35
H
(5)
b8b7 b0
b15
D
+1
S
S
S S