Page 194 - Programmable Logic Controllers, Fifth Edition - Mobile version
P. 194
Metal plates Complete stack
M1
Conveyor
Sensor
Light
source
M2
Conveyor
(a)
Ladder logic program
Inputs M2 run time Outputs
L1 M2 TON L2
TIMER ON DELAY EN
Timer T4:1 DN
Stop Time base 1.0 M1
Preset 5
Accumulated 0
Stop Start
Start M2 M1 M2
Photo M1 M2
sensor
T4:1
Photo
sensor DN Number of plates
CTU
COUNT-UP COUNTER CU
Counter C5:1 DN
Preset 15
Accumulated 0
C5:1 M2
DN
T4:1 C5:1
RES
DN
Stop
T4:1 T4:1
RES
DN
Stop
(b)
Figure 8-34 Automatic stacking program. (a) Process. (b) Program.
Programming Counters Chapter 8 175
pet73842_ch08_156-183.indd 175 03/11/15 3:58 PM