Professional Documents
Culture Documents
Page 143-145
Page 143-145
Internal
Inputs Start Stop relay Output
L1 I:3/0 I:3/1 B3:1/0 L2
Jog
I:3/2 B3:1/0
Start OL
O:2/2 M
I:3/0 Jog Stop M
I:3/2 I:3/1 O:2/2
Stop
I:3/1
B3:1/0
Figure 6-69 PLC program equivalent of the hardwired relay jog circuit.
6.12 Writing a Ladder Logic Program • List the sequence of operational steps in as much
detail as possible.
Directly from a Narrative Description
• Write the ladder logic program to be used as a basis
In most cases, it is possible to prepare a ladder logic program for the PLC program.
directly from the narrative description of a control process. • Consider different scenarios where the process se-
Some of the steps in planning a program are as follows: quence may go astray and make adjustments as needed.
• Define the process to be controlled. • Consider the safety of operating personnel and
• Draw a sketch of the process, including all sensors make adjustments as needed.
and manual controls needed to carry out the control The following are examples of ladder logic programs
sequence. derived from narrative descriptions of control processes.
EXAMPLE 6-1
Figure 6-70 shows the sketch of a drilling process that PB1 PB2
requires the drill press to turn on only if there is a part Drill
motor
present and the operator has one hand on each of the
start switches. This precaution will ensure that the opera- Switches
tor’s hands are not in the way of the drill.
The sequence of operation requires that switches
1 and 2 and the part sensor all be activated to make the
drill motor operate. Figure 6-71 shows the ladder logic
program required for the process implemented using an
SLC 500 controller.
Part sensor
I:3/5
Sensor
I:3/6
124 Chapter 6 Developing Fundamental PLC Wiring Diagrams and Ladder Logic Programs
plc4me.com
EXAMPLE 6-2
A motorized overhead garage door is to be operated au- • Green door open light to signal when the door is fully
tomatically to preset open and closed positions. The field open.
devices include one of each of the following: • Yellow door closed light to signal when the door is fully
closed.
• Reversing motor contactor for the up and down
directions. The sequence of operation requires that:
• Normally open down limit switch to sense when the • When the up button is pushed, the up motor contac-
door is fully closed. tor energizes and the door travels upward until the up
• Normally open-held closed up limit switch to sense limit switch is actuated.
when the door is fully opened. • When the down button is pushed, the down motor
• Normally open door up button for the up direction. contactor energizes and the door travels down until
• Normally open door down button for the down the down limit switch is actuated.
direction. • When the stop button is pushed, the motor stops.
• Normally closed door stop button for stopping the The motor must be stopped before it can change
door. direction.
• Red door ajar light to signal when the door is partially Figure 6-72 shows the ladder logic program required for
open. the operation implemented using an SLC 500 controller.
Motor up
Down limit O:4/3
I:3/1
Up
Door open
Stop Down Up intrlock Down limit Motor down
I:3/7 I:3/5 I:3/4 O:4/3 I:3/1 O:4/4 O:4/1 G
Door up
I:3/4
Motor down Door
O:4/4
closed
Motor
contactor
Stop door
I:3/7 Up limit O:4/3 UP
Door open
I:3/0 O:4/1
Developing Fundamental PLC Wiring Diagrams and Ladder Logic Programs Chapter 6 125
plc4me.com
EXAMPLE 6-3
Full Standby
Level
Photo Run Motor
Full
Full
126 Chapter 6 Developing Fundamental PLC Wiring Diagrams and Ladder Logic Programs
plc4me.com