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: Timer-Based Sequential PLC Program with One Button
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 > 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 !

Continue Reading

Motor Feedback Fail Logic in PLC
PID Simulator Download
Auto Sugar Bag Filling Station
PLC based Automatic Bell System for a School
How to do Simulation in Schneider PLC?
PLC System Site Acceptance Test (SAT)
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

PLC Hoist Crane Programming: Example using Schneider
PLC Logic GATE Program
How to Read the PLC Datasheet? – Important Notes About PLC
How to Export Data from WinCC Runtime Advanced into Excel using VB Script
What is Motor Jogging ?
Ladder Logic for Stair-Case wiring using Toggle Switches
Single Push button to ON and OFF a Bulb using Ladder Logic
Control Loops Objective Questions and Answers

Keep Learning

Coil Type Timers in Siemens PLC Programming

Coil Type Timers in Siemens PLC Programming

PLC Example on Switch Program with Timers

PLC Example on Switch Program with Timers

Tanks Draining Control in PLC using Functional Block Diagram

Tanks Draining Control in PLC using Functional Block Diagram

PLC Water Project

Smart Spray System using Wecon PLC

Types of Failures in Industrial Automation Systems

Types of Failures in Industrial Automation Systems

PLC based drilling machine

Drilling Process using PLC Program

PLC Programming Classroom Bell System

Classroom Bell System – PLC Programming Practice Examples

PID parameters

PID in Siemens TIA Portal

Learn More

AC to DC Conversion with a Commutator

DC Machines Terminology

Basics of Vibration Measurement

Basics of Vibration Measurement

Limit Switches Wiring

Draw Limit Switch Symbol ?

Power Electronics Objective Questions

Power Transistor Quiz

Distributed Control Systems (DCS)

What is DCS? (Distributed Control System)

Difference Between Overcurrent and Overload

Difference Between Overcurrent and Overload

Ultrasonic Doppler Flow Meter Advantages and Disadvantages

Ultrasonic Doppler Flow Meter Advantages and Disadvantages

SinkingOutput

Difference Between the Sinking and Sourcing?

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?