By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
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: Timer-Based Sequential PLC Program with One Button
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Ask
  • Courses
  • Videos
  • Q & A
  • EE
  • Measure
  • Control
  • More
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 > PLC Tutorials > Timer-Based Sequential PLC Program with One Button

Timer-Based Sequential PLC Program with One Button

Design a timer-based sequential PLC program using a single button to activate three outputs and understand the logic behind the concept.

Last updated: October 22, 2024 7:24 am
Editorial Staff
PLC Tutorials
No Comments
Share
8 Min Read
SHARE

Design a timer-based sequential PLC program using a single button to activate three outputs and understand the logic behind the concept using the XG-5000 software. This system uses 1 button as a Trigger to activate 3 Outputs, each Output has an Active time limit which is controlled by a Timer and the time parameters of the Timer can be Set. The Trigger button is used to switch program Sequences. When the button is Pressed once, Output-1 will be Active, when the button is Pressed a second time the Output-2 will be Active, and when the button is Pressed a third time the Output-3 will be Active. The system will Stop (not turn off) if the Trigger button is Pressed a fourth time or if the Reset button is Pressed.

Contents
Timer-Based Sequential PLC ProgramInput & Output AddressingPLC Programming

Timer-Based Sequential PLC Program

Buttons used:

  1. The START (P00000) button is used to turn ON the system (standby state).
  2. The STOP (P00001) button is used to turn OFF the system.
  3. The TRIGGER_SEQUENCE (P00002) button is used to Start running the system.
  4. The RESET_SEQUENCE (P00003) button is used to Reset the sequence counter.

System ON/OFF

When the START (P00000) button is Pressed, the memory bit SYSTEM_ON (M00000) in the HIGH state so that the system is in the ON state (Standby).

When the STOP (P00001) button is Pressed, the memory bit SYSTEM_ON (M00000) returns to the LOW state so that the system becomes OFF.

System Run

Before the system is started, the time parameters of the Timer TIMER_MACHINE1 (T0000), TIMER_MACHINE2 (T0001), TIMER_MACHINE3 (T0002) must be Set in the memory word SV_TIMER_MACHINE1 (D00010), SV_TIMER_MACHINE2 (D00011), SV_TIMER_MACHINE3 (D00012).

This program has 3 Sequences which are stored in memory word SEQUENCE (D0).

Sequence-1

When the TRIGGER_SEQUENCE (P00002) button is Pressed once, the value in memory word SEQUENCE (D0) becomes “1” and Output MACHINE_1 (P00040) will be ON. The Output MACHINE_1 (P00040) will be ON and will be OFF when the Timer TIMER_MACHINE1 (T0000) has finished counting.

Sequence-2

When the TRIGGER_SEQUENCE (P00002) button is Pressed a second time, the value in memory word SEQUENCE (D0) increases (+1) to “2” and Output MACHINE_2 (P00041) will be ON. The MACHINE_2 (P00041) Output will be ON and will be OFF when the Timer TIMER_MACHINE2 (T0001) has finished counting.

Sequence-3

When the TRIGGER_SEQUENCE (P00002) button is Pressed a third time, the value in memory word SEQUENCE (D0) increases (+1) to “3” and Output MACHINE_3 (P00043) will be ON. The output MACHINE_3 (P00043) will be ON and will be OFF when the TIMER_MACHINE3 (T0002) Timer has finished counting.

When the RESET_SEQUENCE (P00003) button is Pressed or if the TRIGGER_SEQUENCE (P00002) button is Pressed a fourth time, the memory word SEQUENCE (D0) is Reset to “0” and the system returns to Standby state.

PLC Sequential Program Example

Input & Output Addressing

CommentInput (I)Output (Q)Memory BitsMemory WordTimers
STARTP00000    
STOPP00001    
TRIGGER_SEQUENCEP00002    
RESET_SEQUENCEP00003    
MACHINE_1 P00040   
MACHINE_2 P00041   
MACHINE_3 P00043   
TIMER_MACHINE1    T0000
TIMER_MACHINE2    T0001
TIMER_MACHINE3    T0002
SYSTEM_ON  M00000  
SEQUENCE   D00000 
SV_TIMER_MACHINE1   D00010 
SV_TIMER_MACHINE2   D00011 
SV_TIMER_MACHINE3   D00012 

PLC Programming

RUNG 1

In this Rung, the memory bit SYSTEM_ON (M00000) changes to the HIGH state if the START (P00000) button is Pressed. Because it uses the SET Coil Instruction, the memory bit SYSTEM_ON (M00000) will remain in the HIGH state even though the START (P00000) button has been Released.

Timer-Based Sequential PLC Program with One Button

RUNG 3

In this Rung, the memory bit SYSTEM_ON (M00000) will be in LOW state if the STOP (P00001) button is Pressed because it uses the RESET Coil Instruction.

RUNG 6

In this Rung, when the NO contact of memory bit SYSTEM_ON (M00000) in the HIGH state and the TRIGGER_SEQUENCE (P00002) button is Pressed, the value in the memory word SEQUENCE (D00000) will increase (+1). Because the ADD instruction adds a value (+1) to the memory word SEQUENCE (D00000).

How to Program Sequential Outputs in PLC

RUNG 14

In this Rung, if the value in memory word SEQUENCE (D00000) is equal to “1”, then the Output MACHINE_1 (P00040) will be ON and the Timer instruction TIMER_MACHINE1 (T0000) will start counting. The timer TIMER_MACHINE1 (T0000) will count according to the “Set value” that has been Set in the memory word SV_TIMER_MACHINE1 (D00010).

When the Timer instruction TIMER_MACHINE1 (T0000) has finished counting, the Output MACHINE_1 (P00040) becomes OFF because of the “Interlock” from TIMER_MACHINE1 (T0000).

RUNG 24

When the value in memory word SEQUENCE (D00000) is equal to “2”, then Output MACHINE_2 (P00041) will be ON and the Timer instruction TIMER_MACHINE2 (T0001) will start counting. The timer TIMER_MACHINE2 (T0001) will count according to the “Set value” that has been Set in the memory word SV_TIMER_MACHINE2 (D00011).

When the Timer instruction TIMER_MACHINE2 (T0001) has finished counting, the Output MACHINE_2 (P00041) becomes OFF because of the “Interlock” from TIMER_MACHINE2 (T0001).

PLC One Button to Activate Three Outputs

RUNG 34

When the value in the memory word SEQUENCE (D00000) is equal to “3”, the Output MACHINE_3 (P00043) will be ON and the Timer instruction TIMER_MACHINE1 (T0002) will start counting. The TIMER_MACHINE1 (T0002) timer will count according to the “Set value” that has been Set in the memory word SV_TIMER_MACHINE3 (D00012).

When the Timer instruction TIMER_MACHINE3 (T0002) has finished counting, the Output MACHINE_3 (P00043) becomes OFF because of the “Interlock” from TIMER_MACHINE3 (T0002).

RUNG 44

In this Rung, if the NO contact of memory bit SYSTEM_ON (M00000) in the HIGH state and the value in memory word SEQUENCE (D00000) is equal to “4”, then the memory word SEQUENCE (D00000) becomes the value “0”.

Or, when the RESET_SEQUENCE (P00003) button is Pressed, the memory word SEQUENCE (D00000) will  becomes the value “0”.

The MOV instruction moves the value “0” to memory word SEQUENCE (D00000).

Read Next:

  • What is NOR Flash Memory in PLC?
  • Network Switch Port Allocation Details
  • PLC Programming for Automatic Gate Control
  • Why Baud Rate is Important in Modbus Network?
  • PLC Structured Text Program for Marking Machine

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 !
Shift Bit Register in PLC
Why is RTO used in the Place of TON Timer?
PLC Conveyor Motor Ladder Logic
Feedback Monitoring in Safety PLC
What is Thin Client in SCADA? – Purpose, Advantages
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

Recent Comments

  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals
  • Vaishnavi on Free Instrumentation Course for Trainee Engineers
  • anuj kapoor on DCS Program to Maintain Draft in Furnace
  • anuj kapoor on IoT based Smart Boiler Control System with Cloud PLC and SCADA

Related Articles

Leave Operational Logic in the PLC

#3 PLC Best Practices – Leave Operational Logic in the PLC wherever feasible

Perfume filling system PLC program

CX Programmer Example: Perfume Mixing and Filling System

Types of Digital Outputs in PLC

Types of Digital Outputs in PLC

Unspecified CPU in Tia Portal

How to Add Unspecified CPU in Tia Portal?

PLC Program for Conveyor System

PLC Conveyor Ladder Logic Program

PLC XOR LOGIC with Ladder Diagram

PLC Logic Functions

PLC Lamp Control using Logic Condition

Lamp Control using PLC Logic Condition

Complementary Split Range Control

What is Complementary Split Range Control (CSRC)?

More Articles

What is a Lightning Arrester? How does it work?

Squirrel Cage Induction Motor vs Slip Ring Induction Motor

Capacitors Connected in Parallel

Series and Parallel Capacitors

corroded tank

Cathodic Protection – Sacrificial Anodic and Impressed Current

Transistor as Amplifier

Transistor as Amplifier

Baffle Nozzle Assembly Sensitive Mechanism

Baffle Nozzle Assembly Sensitive Mechanism

Temperature and Humidity Objective Questions

Temperature and Humidity Objective Questions

liquid level Measurement

Hydrostatic Level Measurement – Temperature related Density Change Effects

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?