0% found this document useful (0 votes)
237 views

PLC Programming For Industrial Automation Part3

When the start button is pressed, there is a 5 second delay before the cylinder extends and returns. During this delay, an alarm sounds. The timer is used to create the 5 second delay between pressing the start button and the cylinder moving. When the timer elapsed time is reached, the alarm turns off and the cylinder solenoid is energized.

Uploaded by

Luka Nikitovic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
237 views

PLC Programming For Industrial Automation Part3

When the start button is pressed, there is a 5 second delay before the cylinder extends and returns. During this delay, an alarm sounds. The timer is used to create the 5 second delay between pressing the start button and the cylinder moving. When the timer elapsed time is reached, the alarm turns off and the cylinder solenoid is energized.

Uploaded by

Luka Nikitovic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

When the start push button is pressed and released there is a 5 s delay before the

cylinder extends and returns. An alarm sounds during the 5 s delay.

Fig 2.21
When the start button is pressed the start_latch relay is energised. The
Start_latch relay switches on the timer input and the alarm. When the timer set value
has elapsed the alarm switches off and the solenoid Y1 is energised. When the
cylinder is fully extended the limit switch a+ de-energises the start_latch relay which
de-energises the solenoid and resets the timer.

The input to the delay-on timer must remain on for the duration of the timer set
value otherwise the timer will not operate. If the signal to start the timer is only
momentary then a latch is used to sustain it. When the input to the timer switches off,
the timer contacts revert immediately to their normal states.

In some PLC models a timer function block can be is located in the centre of a
rung as shown in Fig 2.22. When the timer set value has elapsed the timer output
switches on allowing a software signal to energise an internal relay coil or an output.
In this book all timer function blocks are located at the right hand side of the ladder
diagram and their contacts, normally-open or normally closed, have the same label as
the timer.

Timer 1
5 sec
in out

Fig 2.22

The delay-off timer causes a delay between its input switching off and its contacts
reverting to their normal states. The delay-on timer is used throughout this book.
2.7 The Pulse Generator

Two counters can be combined to make a pulse generator. This is best


illustrated by an example.

Y1
Fig 2.23

Start Stop

X1 X2

Y1

Fig 2.24
When the Start button in Fig 2.24 is pressed the cylinder in Fig 2.23 oscillates,
extending for 2 s and returning for 1 s until the Stop button is pressed.
Fig 2.25 Pulse Generator

It can take a while to figure out how the pulse generator works but it is time very
well spent. The flow chart in Fig 2.26 should help.

Start pressed

N
Stop
pressed?

Y End

Timer 1 input on

Timer 1 delay

Output on
Timer 2 input on

Timer 2 delay

Timer 1 input off


Output off
Timer 2 input off

Fig 2.26 Pulse Generator Flowchart


2.7 Counters
A counter allows a number of occurrences of input signals to be counted. The
counter is set to a preset number value and when this value of input pulses has been
received, it will operate its contacts. A second input or software coil is provided to
reset the current value of the counter to zero.

Consider the cam shaft in Fig 2.27.

Fig 2.27

When a start button has been pressed the shaft is to make 10 revolutions and then
stop. Pressing the start button also resets the counter. The PLC wiring diagram is
shown in Fig 2.28.

Start d

X1 X2

Y1

Motor
contactor

Fig 2.28
Fig 2.29

The pulse generator and counter can be combined as shown in this final
example.

When a start push button is pressed and held down, an alarm sounds six times
before a conveyor starts. Pressing the conveyor stop button also resets the counter.
Fig 2.30 and Fig 2.31 show a solution to the problem.

Start Stop

X1 X2

Y1

Conveyor

Fig 2.30
Fig 2.31
Questions and Exercises

1. Pick the correct statement below about the plc ladder

Fig 2.32

Answer: a. Y1 switches on if X1 is off OR either X2 is on AND X3 is off


b. Y1 switches on if X1 is on AND either X2 is off OR X3 is on
c. Y1 switches on if X1 is on OR either X2 is off AND X3 is on
d. Y1 switches on if X1 is off AND either X2 is on OR X3 is off

2. Pick the incorrect statement below about the ladder diagram shown

Fig 2.33

Answer: a. Y2 switches on if X1 is on AND X2 AND X4 are on.


b. Y2 switches on if X1 is on AND X3 AND X4 are on
c. Y2 switches on if X1 is off AND X2 AND X3 are off AND X4 is on.
d. Y2 switches on if Y1 AND X4 are both on

3. Which form of logic gate system is given by a ladder diagram with a rung having two
normally open sets in parallel as shown?

Fig 2.34

Answer: a. OR
b. NOR
c. AND
d. NAND
4. Which form of logic gate system is given by a ladder diagram with a rung having two
normally open sets of contacts in series as shown?

Fig 2.35

Answer: a. NOR
b. NAND
c. OR
d. AND

The PLC diagram Fig 2.36 applies to questions 5-10.

Fig 2.36
5.

Fig 2.37

Pick the one correct statement below regarding the ladder diagram Fig 2.37

Answer: a. Closing switch S1 switches off the light


b. When the alarm is on, so is the light.
c. Closing S1 and S2 switches on the alarm.
d. Closing switch S2 switches on the alarm
6.

Fig 2.38

Pick the one incorrect statement below regarding the ladder diagram Fig 2.38.

Answer: a. When the alarm is switched on it keeps going until S3 switches on.
b. S1 and S2 form an exclusive or (XOR) function
c. The alarm is switched on when S1 or S2 or S3 is on.
d. The alarm is started when S1 or S2 is switched on but not both
together

7.

Fig 2.39

Pick the one correct statement below regarding the ladder diagram Fig 2.39

Answer: a. If switch S3 is closed the light will be on


b. When the light is on it stays on until S1 or S2 is pressed.
c. S1 and S2 form an exclusive or (XOR) function
d. The light is switched on by pressing S1 or S2

8.

Fig 2.40
Pick the one incorrect statement below regarding the ladder diagram Fig 2.40
Answer: a. S2 can be used to switch off the light before the timer delay is
complete.
b. The light output is latched on.
c. When the timer delay is finished the light comes on.
d. The light remains on for a time equal to the timer delay setting.

9.

Fig 2.41

Pick the one correct statement below regarding the ladder diagram Fig 2.41

Answer: a. When switch S1is pressed and released there is a delay equal to the
timer setting before the alarm sounds.
b. If S1 is to latch on immediately it has been pressed, a normally-open
timer contact should be connected in parallel with it.
c. When switch S1is pressed and released the alarm sounds for a time
equal to the timer setting.
d. The normally-closed timer contact prevents the alarm sounding or the
timer being energised.

10.

Fig 2.42

In the ladder diagram Fig 2.42 the counter preset = 5. Choose the one incorrect
statement below

Answer: a. When S1 is momentarily pressed the light comes on and stays on.
b. When the light goes out the counter is reset.
c. When switch S1 is pressed the light will come on until S2 is pressed.
d. When switch S1 is pressed the light will come on until S2 is pressed 5
times

You might also like