PLC Tutorials

PLC Program Examples

Discuss different PLC program examples for Signal lamp task, Valve operation program and make an output switch off when any of the sensors activated.

PLC Program Example 1

A signal lamp is required to be switched on if a pump is running and the pressure is satisfactory, or if the lamp test switch is closed.

For the inputs from the pump and the pressure sensors we have an AND logic situation since both are required if there is to be an output from the lamp. We, however, have an OR logic situation with the test switch in that it is required to give an output of lamp on regardless of whether there is a signal from the AND system.

Also Read: PLC Latching Function Logic

The function block diagram and the ladder diagram are thus of the form shown in Figure 1.37. Note that with the ladder diagram we tell the PLC when it has reached the end of the program by the use of the END or RET instruction,

PLC Program Example for Signal Lamp Task

PLC Program Example 2

As another example, consider a valve which is to be operated to lift a load when a pump is running and either the lift switch is operated or a switch operated indicating that the load has not already been lifted and is at the bottom of its lilt channel.

We have an OR situation for the two switches and an AND situation involving the two switches and the pump. Figure 1.38 shows a possible program.

PLC Program Example 3

As another example, consider a system where there has to be no output when any one of four sensors gives an output, otherwise there is to be an output.

One way we could write a program for this is for each sensor to have contacts that are normally closed so there is an output.

When there is an input to the sensor the contacts open and the output stops. We have an AND logic situation. Figure 1.39 shows the functional block diagram and the ladder diagram of a system that might be used.

Also Read: Introduction to PLC Programming

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

You've successfully subscribed !

View Comments

Share

Recent Articles

  • PLC Tutorials

PLC Timer Application in Security Camera Recording

In the PLC timer application for security camera recording, when motion is detected then camera…

2 weeks ago
  • PLC Tutorials

Batch Mixing with PLC Ladder Logic Program

In this example, we will learn batch mixing with PLC ladder logic program using timer…

1 week ago
  • PLC Tutorials

PLC Example on Manufacturing Line Assembly

This PLC example on manufacturing line assembly is an intermediate-level PLC program prepared for the…

2 weeks ago
  • PLC Tutorials

PLC Programming Example with Pushbutton and Motor

In this article, you will learn the PLC programming example with pushbutton and motor control…

3 weeks ago
  • PLC Tutorials

Boolean Logic to PLC Programming

This article teaches how to convert Boolean logic to PLC programming ladder logic with the…

1 month ago
  • PLC Tutorials

PLC Programming Example on Timers Function Block

In this article, you will learn the PLC programming example on timers function block using…

3 weeks ago