Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
the corresponding error code is stored into SD0.
• The data of
• The data of
Program Example
(1) The following program outputs the present value of C4 from Y20 to Y2F to the BCD display
device.
Output
power
supply
[Ladder Mode]
(2) The following program outputs 32-bit data from D0 to D1 to Y40 to Y67.
Y67-Y64
Y63-Y60
Output
power
supply
[Ladder Mode]
6.3.1 Conversion from BIN data to 4-digit and 8-digit BCD (BCD(P), DBCD(P))
is other than 0 to 9999 at BCD instruction.
or
+1 is other thean 0 to 99999999 at DBCD instruction.
PLC output module
0 1 0 1
0 1 1 0
0 1 1 1
7-segment indicator
PLC output module
Y5F-Y5C
Y5B-Y58
Y57-Y54
7-segment indicator
BCD(P), DBCD(P)
(Error code: 4100)
(Error code: 4100)
1 0 0 0
Y53-Y50
Y4F-Y4C
Y4B-Y48
6.3 Data Conversion Instructions
6
Y47-Y44
Y43-Y40
6-23