PLC Programming Practice Problems
PLC Programming Practice Problems
Note: Construct PLC programs for the following tasks in Ladder Diagram and
Function Block Diagram.
2. The debouncing of signals consists of two input parameters, i.e., one Boolean
input for the signal and one time input for the adjustment of debounce time.
The output parameter S_OFF supplies the debounced output signal.
3. The smart control of the stairwell light that is switched on for 5 seconds, if
one of the two light switches on the apartment door or the front door is
activated.
4. The actuation of the start button S1 extends the cylinder 1A1. Once this has
been extended for 2 seconds, a second cylinder 2A1 moves to its forward end
position. Sensors 1B1 and 1B2 indicate the retracted and the forward end
positions of cylinder 1A1.
7. A cylinder is moved via valve 1Y1. The position of the cylinder is signaled
via the sensors 1B1 (retracted) and 1B2 (extended). The cylinder is to advance
if push button S1 is pressed. When 5 strokes have been executed in this way,
lamp H1 is illuminated and the counter has expired. The counter must be re-
loaded with the preselected value before any cylinder movements can be
executed further. This is affected through actuating push button S2.
8. A stamping machine is activated via a start button S1. To ensure that the
stamping cycle is not triggered accidentally, the stamping cycle is to be
triggered only after 3 seconds have expired. During this time, the start button
must be permanently actuated. The position of the cylinder 1Y1 is established
through the proximity switches 1B1 and 1B2 for extension and retraction
respectively.
The robot will be used to pick up finished parts from a machine and
place it into a storage box and to pick up raw parts from a hopper and place
them onto the machine. There are sensors to indicate the presence of raw parts
to be processed as well as for the space in the storage box to carry the finished
parts. Also, there are sensors on the machine to indicate whether the machine
is loaded with a part and also to signal the completion of part processing. The
cycle time of the process is 3 seconds.
The robot is required to first pick up a processed part from the machine
if present and place it into the storage box, then pick up a new part for
processing from the hopper, and place it onto the machine. The storage box
has a max capacity of 10 parts and when full, has to be transported on the
conveyor belt via a cylinder to be replaced with a new box.