Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
6-74
BCD(P), DBCD(P)
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 of is other than 0 to 9999 at BCD instruction. (Error code: 4100)
The data of or +1 is other than 0 to 99999999 at DBCD instruction.
(Error code: 4100)
Program Example
(1) The following program outputs the present value of C4 from Y20 to Y2F to the BCD display
device.
[Ladder Mode] [List Mode]
(2) The following program outputs 32-bit data from D0 to D1 to Y40 to Y67.
[Ladder Mode] [List Mode]
S
S S
Programmable Controller Output Module
010
1 01100111 1000
Output
power supply
7-segment display unit
8000
4000
2000
1000
800
400
200
100
80
40
20
10
8
4
2
1
Y27
Y26
Y25
Y24
Y23
Y22
Y21
Y20
Y2B
Y2A
Y29
Y28
Y2F
Y2E
Y2D
Y2C
COM
Step
Instruction
Device
Programmable Controller Output Module
Output
power supply
7-segment display unit
Y67 to Y64Y63 to Y60 Y5F to Y5C Y5B to Y58 Y57 to Y54Y53 to Y50 Y4F to Y4C Y4B to Y48 Y47 to Y44 Y43 to Y40
Step
Instruction
Device