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: CX-Programmer Tutorial: 1 Button To Activate 4 Different Machines
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 > CX-Programmer Tutorial: 1 Button To Activate 4 Different Machines

CX-Programmer Tutorial: 1 Button To Activate 4 Different Machines

Last updated: September 20, 2024 2:54 pm
Editorial Staff
PLC Tutorials
No Comments
Share
6 Min Read
SHARE

Example of a PLC control system program with 1 button To activate 4 different machines with timer and counter functions in CX-Programmer.

Contents
1 Button To Activate 4 Different MachinesIO DetailsCX-Programmer Logic

Introduction

This article discusses the concept of a sequential system that is operated manually.

1 Button To Activate 4 Different Machines

This system has 4 buttons, the START_SYSTEM (0.00) button is used to Turn On the system (standby state), the STOP_SYSTEM (0.01) button is used to Turn Off the system, the RUN_SYSTEM (0.02) button is used to Run the system, and RESET_SYSTEM (0.03) button is used to Reset the sequence counter.

The system will be ON (standby state) when the START_SYSTEM (0.00) button is pressed and then the memory bit SYSTEM_ON (W0.00) is ON. Because it uses Latching, the memory bit SYSTEM_ON (W0.00) remains ON even though the START_SYSTEM (0.00) button has been Released. The memory bit SYSTEM_ON (W0.00) will be OFF if the STOP_SYSTEM (0.01) button is Pressed.

This program has 3 sequences stored in memory word SEQUENCE (D0). In sequence 1, when the RUN_SYSTEM (0.02) button is pressed, the value in memory word SEQUENCE (D0) becomes “1” and Output MACHINE_1 (100.00) will be ON. The MACHINE_1 (100.00) Output will be ON for 15 seconds then OFF because it uses Timer instruction TIMER_1 (T0000).

In sequence 2, when RUN_SYSTEM (0.02) button is Pressed again, the value in memory word SEQUENCE (D0) increases (+1) to “2” and Output MACHINE_2 (100.01) will be ON. The MACHINE_2 (100.01) Output will be ON for 10 seconds and then OFF because it uses Timer instruction TIMER_2 (T0001).

In sequence 3, when the RUN_SYSTEM (0.02) button is Pressed again, the value in memory word SEQUENCE (D0) increases (+1) to “3” and Output MACHINE_3 (100.02) will be ON. The MACHINE_3 (100.02) Output will be ON and then OFF because it uses Timer instruction TIMER_3 (T0002). After Timer TIMER_3 (T0002) has finished counting for 5 seconds, Output MACHINE_3 (100.02) will be OFF and the sequence will be Reset to “0”.

When the RESET_SYSTEM (0.03) button is pressed, the word SEQUENCE (D0) memory is reset to “0” and the system returns to the standby state.

CX-Programmer Tutorial 1 Button To Activate 4 Different Machines

IO Details

CommentInput (I)Output(Q)Memory BitsMemory WordTimers
START_SYSTEM0.00    
STOP_SYSTEM0.01    
RUN_SYSTEM0.02    
RESET_SYSTEM0.03    
MACHINE_1 100.00   
MACHINE_2 100.01   
MACHINE_3 100.02   
TIMER_1    T0000
TIMER_2    T0001
TIMER_3    T0002
SYSTEM_ON  W0.00  
SEQUENCE   D0 

CX-Programmer Logic

RUNG 0 (START_SYSTEM)

In this Rung, when the START_SYSTEM (0.00) button is Pressed, the memory bit SYSTEM_ON (W0.00) changes to an ON state. Because it uses latching, the memory bit  SYSTEM_ON (W0.00) remains ON even though the START_SYSTEM (0.00) button has been Released. The memory bit SYSTEM_ON (W0.00) will be OFF if the STOP_SYSTEM (0.01) button is Pressed.

RUNG 1 (RUN_SYSTEM)

When the Normally Open contact of memory bit SYSTEM_ON (W0.00) is in a HIGH state and the RUN_SYSTEM (0.02) button is pressed, the Binary Increment Instruction will add (+1) data to the memory word SEQUENCE (D0).

PLC control 4 machines with 1 button

RUNG 2 (MACHINE_1)

When the value in the memory word SEQUENCE (D0) is equal to “1”, then Output MACHINE_1 (100.00) will be ON and the Timer instruction TIMER_1 (T0000) will start counting up to 15 seconds.

When Timer instruction TIMER_1 (T0000) reaches “Set value” then the Output MACHINE_1 (100.00) becomes OFF due to the Interlock from TIMER_1 (T0000).

CX-Programmer timer and counter example

RUNG 3 (MACHINE_2)

When the value in the memory word SEQUENCE (D0) is equal to “2”, then Output MACHINE_2 (100.01) will be ON and the Timer instruction TIMER_2 (T0001) will start counting up to 10 seconds.

When Timer instruction TIMER_2 (T0001) reaches “Set value” then the Output MACHINE_2 (100.01) becomes OFF due to the “Interlock” from TIMER_2 ( T0001).

RUNG 4 (MACHINE_3)

When the value in the memory word SEQUENCE (D0) is equal to “3”, then Output MACHINE_3 (100.02) will be ON and the Timer instruction TIMER_1 (T0002) will start counting up to 5 seconds.

When Timer instruction TIMER_3 (T0002) reaches “Set value”, then the Output MACHINE_3 (100.02) becomes OFF due to the “Interlock”  from TIMER_3 (T0002).

PLC program for 4 machines in CX-Programmer

RUNG 5 (RESET_SEQUENCE)

In this Rung, when the Normally Open contact of memory bit SYSTEM_ON (W0.00) and TIMER_3 (T0002) in the HIGH state, then memory word SEQUENCE (D0) becomes the value “0” because the MOV(021) instruction moves value “0” to memory word SEQUENCE (D0).

 Or, when the RESET_SYSTEM (0.03) button is pressed, then the memory word SEQUENCE (D0) becomes “0”.

Read Next:

  • OMRON PLC Tutorial: Car Parking System
  • PLC Program for Controlling a Water Pump
  • CX-Programmer Products Sorting & Counting
  • Real-Time Clock in Omron CX Programmer
  • PLC Program for Ceramic Burning Oven

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

HMI Handbook
What is Profinet and How to Configure in Siemens PLC?
Factory Acceptance Test (FAT) of a PLC Panel
Programmable Logic Controller Practice Tests
ICS System Design Considerations
User Defined Data Types (UDT) – Purpose, Need, Tutorial
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

Converter Instruction in Siemens PLC Programming
Which Language is Best for PLC Programming?
Traffic Lights Ladder Diagram using Timers
Timers in PLC Programming – Siemens Tia Portal Tutorials
Using Clock Memory Bits in TIA Portal – Siemens PLC
PLC or DCS Control System Spares
1 to 8 Demultiplexer PLC ladder diagram
Basic Concepts of the Safety Relay

Keep Learning

PLC Structured Text Program for Light Sequences via Timers

PLC Structured Text Program for Light Sequences via Timers

What is Multi-touch Technology

What is Multi-touch Technology? – Industrial Automation

Alarm and Trip Documentation

PLC Alarm and Trip Documentation

Allen-Bradley PLC

#15 PLC Best Practices – Safe State when PLC Restarts

Seven Segment Display Programming with Structured Text

Seven Segment Display Programming with Structured Text

Siemens TIA Portal Free Version Download

Siemens TIA Portal Free Version Download

Siemens PLC

#20 PLC Best Practices – Identify Critical Alerts

FBD Logic

Why different PLC Programming Languages were Developed?

Learn More

Problem on Tachogenerator

Problem on Tachogenerator

Three Wire RTD Wheatstone bridge Circuit

RTD Wheatstone Bridge Circuits

Studio 5000 Programming Three Motors with Fixed Priorities

Studio 5000: Programming Three Motors with Fixed Priorities

Main Functions of a Multimeter

Interesting Multimeter Functions (And What They Really Do)

Power Electronics Objective Questions

Thyristors Quiz

Mitsubishi PLC Counter Tutorial Using GX-Works2

Mitsubishi PLC Counter Tutorial Using GX-Works2

resistor-color-coding-example

IEC labelling for Resistors Color Code

Procedure For reading or searching the tag number in Siemens PLC

Procedure for Reading or Searching the Tag number in Siemens PLC

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?