Mitsubishi MELSEC Q Series Programming Manual page 563

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

Advertisement

(4) The data to be stored at the device designated by
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
device designated by
S
+1
b31 b28
b27
b24
b23 b20
Ten
Millions
Hundred
millions
place
thou-
place
sands
place
For example, if the value 01234056 is designated by
stored following
b31 b28
b27
b24
b23 b20
0
1
2
S
+1
(2) The BCD data designated by
(3) The results of calculation stored in the device
significant digits" are zero-suppressed.
(4) The data to be stored at the device designated by
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
0 to 9999.
• The data at
99999999.
• The device specified by
(For the Universal model QCPU, LCPU.)
into ASCII codes, and stores the results into the area starting from the
S
.
D
S
b19
b16
b15 b12
b11
b8
b7 b4
b3
b0
Ten
Thou-
Hundreds
Tens
Units
thou-
sands
place
place
place
sands
place
place
in the following manner:
D
b19
b16
b15 b12
b11
b8
b7 b4
b3
b0
3
4
0
5
6
S
can be in the range of 0 to 99999999.
S
0 0 0 1
2 0 9 8
Number of significant digits
20
H
during the operation of the BCDDA instruction is outside the range of from
S
during the operation of the DBCDDA instruction is outside the range of 0 to
S
exceeds the range of the corresponding device.
D D
BCDDA(P),DBCDDA(P)
+2 differs depending on the ON/OFF
D
b15
b8b7
D
ASCII code for millions place
ASCII code for ten-millions place
D
+1
ASCII code for ten-thousands place
ASCII code for hundred-thousands place
D
+2
ASCII code for hundreds place
ASCII code for thousands place
D
+3
ASCII code for unit place
ASCII code for tens place
0
, the operation result would be
S
b15
b8b7
D
31
(1)
H
D
+1
33
(3)
H
D
+2
30
(0)
H
D
+3
36
(6)
H
D
+4
00
H
. All zeros on the left side of the "Number of
D
+4 differs depending on the ON/OFF
D
b0
(Only when
SM701 is OFF)
b0
20
H
32
(2)
H
34
(4)
H
35
(5)
H
(Error code: 4100)
(Error code: 4100)
(Error code: 4101)
7-189
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents