You are on page 1of 2

Basic Timers Counters

1. For the following questions take X as I0.0, Y as I0.1 and L1 as Q0.0 and L2 as Q0.1
I. When X is push and hold L1 light must on after 5s. When X is released L1 must off.
II. If X is pushed once L1 must on after 5s.
III. If X is pushed once L1 must off after 5s.
IV. If X is pushed once L1 must on after 5s. And it must off after another 5s.
V. If X is pushed once L1 must start to blink. (1s on and 1s off)
VI. Write a PLC program that will flash a light for 15s after PLC has power up. The light should
be flash with 500ms on and 500ms off.
VII. L1 light must on only if we press X first and then Y. Y must press within 3s after X has
pressed. Otherwise system will reset.
VIII. Write a program to blink L1, and L2 as follow. L1 on and L2 off for the first second and then
L1 Off and L2 on for the next 2 second. This must repeat.
IX. When X pressed 3 times L1 must on. After 3 seconds it should off.
X. When X pressed 3 times L1 must on after 3seconds.
XI. When X pressed 3 times L1 must on after 3 seconds. L1 can be reset by pressing X another 3
times.
XII. When X pressed 3 times L1 must on after 3 seconds. L1 can be reset by pressing Y 3 times.
XIII. Write a program to increment the current value of a counter every 1 second. (self-reset
timer)
XIV. Write a PLC program to measure the time of 50 days.
XV. Write a program to make retentive on delay timer to behave as a normal TON timer.
XVI. When X is pushed once L1 must on. L1 can be reset by pressing Y 3 times within 5 seconds.
XVII. If X or Y press and hold more than 5 seconds L1 must on. L1 can reset by press and hold X or
Y less than 1 second.
XVIII. Develop a program that will latch on the output L1 20 seconds after input X has been turned
on. The timer will continue to cycle up to 20 seconds and reset it – self, until input X has
been turned off. After the third time the timer has timed to 20 seconds, the output will be
unlatched.
XIX. A motor will be connected to a PLC and control by two switches. The GO switch will start the
motor, and the STOP switch will stop the motor. If motor is going and the GO switch is
thrown, this will also stop the motor. If the STOP is used to stop the motor, the GO switch
must throw twice to start the motor. When motor is running a light must turned on.
XX. In dangerous processes it is common to use two palm buttons that require a operator to use
both hands to start a process. To develop this there are two inputs that must be turned on
within 0.25s of each other before a machine cycle may begin.
XXI. Write a plc program to blink L1 continuously. 1 second on and 1 second off. You can use only
1 timer.
XXII. Write a program that uses only one timer. When an input A is turned on a light will be on for
10 seconds. After that it will be off for two seconds. And then again on for 5 seconds. After
that light will not turned on again until input A is turned off.
XXIII. Write a plc program to blink L1 continuously. 1 second on and 2 seconds off. You can use
only 1 timer.
Basic Timers Counters
XXIV. Solve the following traffic light system

XXV. Solve the following traffic light system

You might also like