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: Latching and Unlatching in PLC Programming Example
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 > Latching and Unlatching in PLC Programming Example

Latching and Unlatching in PLC Programming Example

Learn how to use latching and unlatching in PLC programming through example problems in this educational blog.

Last updated: March 22, 2024 2:39 pm
Editorial Staff
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

Learn how to use latching and unlatching in PLC programming through example problems in this educational blog.

Contents
Latching and Unlatching in PLCLadder Logic VideoInputsOutputsLatch and Unlatch Example PLC LogicProgram ExplanationProgram Simulation

Note: This beginner-friendly PLC problem statement introduces ladder logic to students and helps them understand the latch and unlatch.

Latching and Unlatching in PLC

Problem Statement

Design a PLC ladder logic for the following application.

We are using two toggle switches to control four motors.

If Switch 1 is ON, then Motor I and Motor II will be ON.

If Switch 1 is OFF, then Motor I will be OFF and Motor II will be ON.

If Switch 2 is ON, then Motor II will be OFF and Motor III will be ON.

If Switch 2 is OFF, then Motor III will be OFF and Motor IV will be ON.

Ladder Logic Video

PLC Exercises for Novices: Learn by Doing the Programs

Inputs

The PLC program inputs are listed below.

Switch 1: I0.0

Switch 2: I0.1

Outputs

The PLC program outputs are listed below.

Motor 1: Q0.0

Motor 2: Q0.1

Motor 3: Q0.2

Motor 4: Q0.3

Latch and Unlatch Example PLC Logic

Latching and Unlatching in PLC Programming for Beginners

Program Explanation

In this example, we used EcoStruxure Machine Expert Basic v1.2 software for programming.

In the above program, we have used Normally Open Contacts as well as Normally Closed Contacts and Memory Bits.

Normally Closed Contact is used for Switch 2 in Rung0 and Rung4.

Motor 1 and Memory bit M0 are latched in Rung0 and Rung3 respectively.

For Motor 1 and Motor 2 to be ON, switch 1 should be ON.

Turning OFF switch 1 will turn OFF Motor 1 but Motor 2 remains ON.

When Switch 2 is turned ON, Motor 2 will turn OFF but Motor 4 will turn ON.

Program Simulation

Here we will show you the PLC program simulation results with different input statuses.

When Switch 1 is ON

Latch unlatch plc output

In Rung 0, the signal flows through switch 1, when in true state and Motor 2 will turn ON.

Motor 2 will also turn ON as switch 1 is directly connected with the output in Rung1.

When Switch 1 is OFF

latch and unlatch logic in PLC ladders

When Switch 1 is turned OFF, Motor 1 will TURN OFF. The switch 1 is only Normally Open Contact connected with output Motor 1. But Motor II will remain ON.

The output Motor 2 is latched in Rung 0 and as a result, turning OFF the switch 1 will not turn OFF the motor 2.

When Switch 2 is ON

Latch instruction in PLC

Turning ON Switch 2 will TURN OFF Motor 2. In Rung0, switch 2 is used as Normally Closed Contact which does not allow signal to pass. As a result, Motor 2 will turn OFF.

Also, in Rung 2 and Rung 3, turning ON Switch 2 will turn ON Motor 3 and memory bit M0 become true respectively.

When Switch 2 is OFF

What is latching relay in PLC

In Rung2, turning OFF switch 2 will turn OFF Motor 3. As Memory Bit M0 is latched in Rung3, when Switch 2 is turned OFF, the Memory Bit M0 will remain true.

In Rung 4, memory bit M0 is already true, and switch 2 as Normally Closed contact, in a false state, will allow the signal to pass through it. As a result, Motor 4 will turn ON.

If you liked this article, 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:

  • Schneider PLC Programming Example
  • PLC Ladder Diagram for Latching Concept
  • PLC Example on Multiple LEDs using Set Coil
  • Solenoid Operated Valves and Latching Valves
  • Password Protect HMI in Siemens TIA Portal?
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

Industrial Automation and Control Systems (IACS)
Free SCADA Software Download
Types of Limit Switches – Principle, Advantages, Disadvantages
Omron PLC Timer Example Explained
Moving Data between PLCs – Siemens Basics – TSEND TRCV
Electric Motor Forward Reverse with Repeat Cycle PLC Logic
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

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

InTouch SCADA Login Password Security
PLC Program for Artificial Fishpond Water Level Monitoring System
OFF Delay Timer using PLC
PLC Analog Input Card Resolution Effects on Accuracy
What is a Tower Lamp? – Light Tower in Industrial Automation
Interconnection between PLC, MCC, LCP & Pumps – Video
How to Code a FIFO Queue in STL Language in Siemens PLC?
Best Way to Build Troubleshooting Mindset for Automation Engineer

Keep Learning

Siemens PLC Write Protection

How to Protect Siemens PLC using Password?

Parking Garage Indicator PLC Automation

Parking Garage Indicator: PLC Automation System

Switch NO or NC Contact

Normally-open and Normally-closed Switch Contacts

Convert an Electrical Diagram into PLC Program

How to Convert an Electrical Diagram into PLC Program?

Automatic exhaust fan control

XG5000 PLC Programming for Automatic Exhaust Fan

Control of Double-acting Pneumatic Cylinder

Ladder Logic for Control of Double-acting Pneumatic Cylinder

Distributed IO for Siemens PLC

How to Configure Distributed IO in a PLC Project?

100 PLC Quiz Questions

100 PLC Quiz Questions : True or False

Learn More

Difference between Rotary Shaft and Sliding Stem Control Valves

Difference between Rotary Shaft Valves and Sliding Stem Control Valves

To check the characteristic of vibration probe

Bently Nevada Vibration Probes Functional Testing

Configuration of Siemens Scada and PLC

Configuration of Input and Output Tags in Siemens Scada and PLC

What is a Feedback Control System

What is a Feedback Control System? Types & Advantages

Radar Level Transmitter in Briddle level Measurement

Radar Level Transmitter in Briddle level Measurement

Tips to Maintain & Extend the Life of CNC Tools

Tips for Maintaining and Extending the Life of Your CNC Tools

Kiln

Kiln Inlet Gas Analyzer

Free Download PLC Book

#10 PLC Best Practices – Assign Register Blocks by Function

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?