Inst ToolsInst ToolsInst Tools
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: PLC Program for Alternate Output Circuit with Latched Function
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > Guest Articles > PLC Program for Alternate Output Circuit with Latched Function

PLC Program for Alternate Output Circuit with Latched Function

Design a PLC program for an alternate output circuit with a latched function and explain the ladder logic with a solution.

Last updated: November 3, 2023 11:38 am
Editorial Staff
Guest Articles PLC Tutorials
No Comments
Share
4 Min Read
SHARE

Design a PLC program for an alternate output circuit with a latched function and explain the ladder logic with a solution.

Contents
Alternate Output CircuitProblem DiagramProblem SolutionList of PLC Inputs & OutputsInputs ListOutput ListM MemoryLadder Diagram for alternate output circuit (with latched function)PLC Program DescriptionNetwork 1:Network 2:Network 3:Network 4:Network 5:Test Cases

Alternate Output Circuit

Problem Description

Setting the light ON by pressing a SWITCH on 1st time, 3rd time, 5th time etc. and setting the same light OFF by pressing the SWITCH by 2nd time , 4th time, 6th time etc.

Restore the output status to “0” when system or cycle power up. Output can be START by pressing a BUTTON in ODD number of times and can be STOP by pressing the same BUTTON by EVEN number of times.

Problem Diagram

PLC Program for an Alternate output circuit

Problem Solution

We can solve this problem by using simple Ladder logic. In this we consider one simple example of alternate LED operation.

Here we consider one LED and one BUTTON. Press the BUTTON alternately and output should be ON/OFF alternately, here during the Button pressed odd number times then output should be ON and during the button pressing even number of times then the output should be OFF.

List of PLC Inputs & Outputs

Inputs List

  • SWITCH : I0.0

Output List

  • LED : Q0.0

M Memory

  • M0.0 for LED reset condition
  • M0.1 for counter reset
  • M11.0 & M11.1 – Positive edge

Ladder Diagram for alternate output circuit (with latched function)

circuit with latched function
PLC latched function
PLC Circuit Latched
PLC Switch Output
PLC Alternate Output

PLC Program Description

In this application, we have used Siemens S7-300 PLC and TIA Portal Software for programming.

Network 1:

In network 1 we have used SET instruction to set the LED (Q0.0). Here we have taken NO contact of BUTTON (I0.0)

so LED (Q0.0) can be activated by pressing BUTTON (I0.0).

Network 2:

Here we used a counter so it will count the switching times of the BUTTON (I0.0).

This counter will tell us about the number of times the button is pressed, its value or the value is a EVEN number or ODD number.

Network 3:

When counter will reach its preset value (2) or say EVEN number of times, NO contact of the counter will set the M0.0 (LED reset condition).

Network 4:

In this network NO contact of the M0.0 will RESET the LED and counter.

Here M0.1 (counter reset memory) will RESET the counter.

Network 5:

If M0.0 is ON and negative transition (from 1 to 0) of button (I0.0) will be triggered then RESET condition of LED will be OFF.

Note : This example is provided to understand the basic concept of alternate output circuit, it is not full application but we can use this concept in any automation application or any system.

Test Cases

alternate output circuit

Author : Bhavesh

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:

  • Setpoints and Alarms
  • PLC Digital Signals Wiring
  • Free SCADA Software 
  • PLC Contacts and coils
  • Control Room Interview Questions
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 !
Electrical Switches Principle & Types
T-Junction Traffic Control System – PLC Programming
Face Mask Making Machine using PLC and HMI
What is an RTU? – Remote Terminal Unit
Communicating Between Siemens PLC and Other PLC Brands
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
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • Kamli on Top Free PLC Software
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals

Related Articles

Ladder Logic Example of Two Motors

Ladder Logic Example of Two Motors Interlinked with another Motor

Does Really a Safety Barrier is Important

Does Really a Safety Barrier is Important? – PLC DCS Systems

PLC Commissioning and Testing

PLC Commissioning and Testing Procedure (Programmable Logic Controller)

Industrial Automation Cold and Hot Standby

Difference between Cold Standby and Hot Standby

How Weigh Feeder Works

How Weigh Feeder Works ?

PLC Program for Burglar Alarm Security System

PLC Program for Alarm Security System

Converter Instruction in Siemens PLC Programming

Converter Instruction in Siemens PLC Programming

Ethernet IP Commissioning Tool software

How to Configure IP Address in Rockwell PLC?

More Articles

Alarms to Annunciator

Basics of Alarms and Trips

Mechanical Strainers

Strainers

Things You Need to Know About DeviceNet

Things You Need to Know About DeviceNet

Optical Torsion Meter Principle

Optical Torsion Meter Principle

PLC Programming for Weight-Based Packaging

PLC Programming for Weight-Based Packaging

Siemens Profibus Interface DP

How to Create New Project Using Simatic Manager

Valve Leakage Tests

Types of Valve Leakage Tests

Zener Diode Limiter Working

Zener Diode Limiter

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?