4-2 Creating Ladder Programs
4
4
44
SYSMAC CP1L Getting Started Guide
Cr
eating Prog
rams
4-2 Creating Ladder Programs
A ladder program can now be created for the example introduced in
SECTION 2 System Design
. First,
however, the functions of the ladder program will be described.
4-2-1 Operation
The ladder program to be created will open and close a garage shutter.
For details on the example application, refer to
2-2-1 Operation
.
z
Entering the Garage
The component functions and operations will be defined in detail below.
(1) Push-buttons:
• The shutter can be opened, closed, and stopped with buttons.
• The OPEN and CLOSE buttons will continue operating the shutter even when
they are not held down. A self-maintaining bit is used to achieve this.
(2) Limit switches:
• When the shutter is fully opened or fully closed, it will be stopped by a limit
switch.
• When the shutter is opening, the de-escalation motor will be interlocked to
prevent damage.
(3) Light detection sensor:
• A light detection sensor detects light from headlights pointed at the garage.
When 3 headlight flashes are detected by a counter instruction, the shutter
escalation motor is activated.
• After the first headlight flash, a timer is activated by a timer instruction. After 5
seconds, a reset command is given to the counter instruction.
• The present value of the counter instruction is retained even when CP1L is
powered OFF. To prevent malfunction, a reset command is given to the
counter instruction when CP1L is powered ON.
1
2
2
3
W07E-EN-02+CP1L+GettingStartedGuide.book Seite 44 Montag, 15. September 2008 11:15 11