Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-190
BCDDA(P),DBCDDA(P)
(4) The data to be stored at the device designated by +2 differs depending on the ON/OFF
status of SM701 (number of characters to output select signal).
When SM701 is OFF......Stores "0"
When SM701 is ON .......Does not change
DBCDDA
(1) Converts the individual digit numbers of hexadecimal notation of the BCD 8-digit data
designated by into ASCII codes, and stores the results into the area starting from the
device designated by .
For example, if the value 01234056 is designated by , the operation result would be
stored following in the following manner:
(2) The BCD data designated by can be in the range of 0 to 99999999.
(3) The results of calculation stored in the device . All zeros on the left side of the "Number of
significant digits" are zero-suppressed.
(4) The data to be stored at the device designated by +4 differs depending on the ON/OFF
status of SM701 (number of characters to output select signal).
When SM701 is OFF......Stores "0"
When SM701 is ON .......Does not change
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
The data at during the operation of the BCDDA instruction is outside the range of from
0 to 9999. (Error code: 4100)
The data at during the operation of the DBCDDA instruction is outside the range of 0 to
99999999. (Error code: 4100)
The device specified by exceeds the range of the corresponding device.
(For the Universal model QCPU only.) (Error code: 4101)
D
S
D
+1
Ten
millions
place
ASCII code for ten-millions placeASCII code for millions place
ASCII code for ten-thousands place
b15 b8b7 b0
+2
(Only when
SM701 is OFF
)
ASCII code for thousands place
ASCII code for hundreds place
ASCII code for tens placeASCII code for unit place
0
+3
Millions
place
Hundred
thou-
sands
place
Ten
thou-
sands
place
+1
Thou-
sands
place
Hundreds
place
Tens
place
Units
place
b31 b28 b24b27 b16b19b23 b20 b15 b12 b0b3b7 b4b8b11
S S
D
D
D
D
ASCII code for hundred-thousands place
S
D
+1
+2
+3
+1
+4
b31 b28 b2 4b27 b16b19b23 b20 b15 b12 b7 b4
20
H
31
H
(1)
32
H
(2)33
H
(3)
b15
b8b7
b0
34
H
(4)30
H
(0)
35
H
(5)36
H
(6)
00
H
b0b3b8b11
0123 4 056
S
D
S
D
D
D
D
S
D
0001
Number of significant digits
20
H
2098
D
S
S
DD