Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: PLC Program Examples
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > PLC Program Examples

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.

Last updated: November 2, 2023 2:28 pm
Editorial Staff
PLC Tutorials
2 Comments
Share
3 Min Read
SHARE

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

Contents
PLC Program Example 1PLC Program Example 2PLC Program Example 3

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 for Valves Output

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:

  • What is Emergency Shutdown System (ESD) ?
  • ESDV : How it Works ?
  • Programmable Logic Controller (PLC) Questions
  • Explain Operation of the Lamp Circuit ?
  • Binary Addition
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

How Weigh Feeder Works ?
Schneider PLC Example: Control Lamps Sequences
Establishing a Modbus Driver for SCADA Indusoft Web Studio
What is Thin Client in SCADA? – Purpose, Advantages
Siemens PLC Interview Questions and Answers
How to Add Unspecified CPU in Tia Portal?
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
2 Comments
  • Engr. Shshadat Hossain says:
    February 17, 2016 at 5:59 pm

    Very helpful example.

    Reply
  • Tayo Arogundade says:
    March 30, 2017 at 9:56 am

    Great,this resolved my interview fever/stress…Thank you guys..

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Overview of SIEMENS PLC – S7-1500, S7-1200, S7-400, S7-300
How to use Simulator in Siemens PLC?
Cloud-Based SCADA Projects – Try Free Demo Account
Draw a Ladder Logic to switch ON-OFF a Bulb using a Toggle Switch ?
Ladder Logic for Stair-Case wiring using Toggle Switches
Automated Test Bench – Complex PLC Programming Examples
Failsafe Wiring Practices
How to do Scaling for Analog Input in RSLogix 500?

Keep Learning

IP Address Change in Simatic

PLC Configuration of Profinet I/O System

Annunciator Panel

What is a Annunciator Panel?

Programmable Logic Controller Quiz

Programmable Logic Controller Quiz

Single Line Diagram of UPS System

UPS Selection Factors for a Control System

Augmented Reality and Virtual Reality in Industrial Automation

Augmented Reality and Virtual Reality in Industrial Automation

PLC Program for Water filling and Discharging Process

PLC Program for Water filling and Discharging Process

ICS System Design

ICS System Design Considerations

How-to do Security of SCADA Systems

How-to do Security of SCADA Systems?

Learn More

Simulation in Machine Expert HVAC

How to do Simulation in Schneider PLC?

Difference Between Adhesion and Cohesion

Difference Between Adhesion and Cohesion

How to Control VFD with PLC using Ladder Logic

Basics of Ground Loops

Basics of Ground Loops

How to Remove Control Valve Stem Packing Procedure

The Replacement Procedure for Control Valve Stem Packing

Simatic S7 PLC Backup Steps

How to take Backup from Siemens S7-300 PLC?

DCS Commissioning Steps

DCS Commissioning Steps

Temperature Control System Example

Chemical Reactor Temperature Control System

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?