2-4 Example Ladder Program
2
2
26 SYSMAC CP1L Getting Started Guide
Designing Systems
2-4 Example Ladder Program
An example ladder program for the shutter control system is shown below. Program creation is explained
in SECTION 4.
W0.00
TIM
0000
#50
Work area
T0000
Timer
0.04
Light detection
sensor
W0.00
Work area
W0.00
Work area
0.04
Light detection sensor
T0000
Timer
C0000
Counter
A200.11
P_First_Cycle First cycle flag
C0000
Counter
0.01
STOP button
0.05
Upper
limit LS
100.01
De-escalation
motor
100.00
Escalation
motor
0.00
OPEN button
100.00
Escalation
motor
0.01
STOP button
0.06
Lower
limit LS
100.00
Escalation
motor
100.01
De-escalation
motor
0.03
Car detection sensor
0.02
CLOSE button
100.01
De-escalation
motor
Timer
Counter
#3
CNT
0000
W07E-EN-02+CP1L+GettingStartedGuide.book Seite 26 Montag, 15. September 2008 11:15 11