Inst ToolsInst ToolsInst Tools
  • 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: Mixing Program with Timers and Counters in Omron PLC
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • 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 > Mixing Program with Timers and Counters in Omron PLC

Mixing Program with Timers and Counters in Omron PLC

Example of a PLC Mixing System Program using Timers and Counters in Omron PLC using CX-Programmer and CX-Designer software.

Last updated: June 25, 2024 1:41 pm
Editorial Staff
PLC Tutorials
2 Comments
Share
7 Min Read
SHARE

Example of a PLC Mixing System Program using Timers and Counters in Omron PLC using Cx-Programmer and Cx-Designer software.

Contents
Mixing ProgramUnderstanding How PLC Programs Operate?List of I/OsPLC ProgramProgram Simulation

Mixing Program

This PLC article discusses the Batch Mixing System PLC program using CX-Programmer with simulations using CX-Designer. This system will run automatically, the Input Valve will Open when the Tank is empty.

The Mixer Tank uses sensors (HIGH & LOW) to measure the liquid level in the tank. When the tank is full then the input valve will Close. When the tank is full, then the Mixing process will continue at a defined time which has been Set in the HMI (Human Machine Interface) Timer parameter.

When the Mixing process is complete, then the output valve will open and release liquid until the tank is empty. When the Mixing Process has been carried out, it will be recorded using a Counter.

Understanding How PLC Programs Operate?

Mixing System

This PLC program has 3 main buttons, the START (0.00) button is used to turn ON the system, the STOP (0.01) button is used to turn OFF the system, and the RESET_COUNTER (0.04) is used to Reset the Counter value to zero “0”. The memory word SV_TIME (D10) needs to be set before starting the system, the memory word SV_TIME (D10) functions as the “Set Value” of TIMER_MIX (T0000).

When the tank is empty, the NC (Normally Close) contacts of SENS_LOW (0.02) and SENS_HIGH (0.03) sensors will Open the VALVE_IN (100.00). SENS_LOW (0.02) measures the low level of liquid in the tank and SENS_HIGH (0.03) measures the high level of liquid in the tank. When SENS_LOW (0.02) and SENS_HIGH (0.03) change to TRUE state then VALVE_IN (100.00) will be Closed.

The Mixing process will be carried out when VALVE_IN (100.00) is Closed. The mixing process time is determined by the Memory Word SV_TIME (D10) value. The NO (Normally Open) contact of SENS_HIGH (0.03) which has changed to the TRUE condition will Activate TIMER_MIX (T0000) and Output MIXER (100.01). When TIMER_MIX (T0000) has reached its “Set Value” the MIXER Output (100.01) will be Disabled.

When TIMER_MIX (T0000) has reached its “Set Value” it will open the VALVE_OUT (100.02). VALVE_OUT (100.02) will remain in the open state even though the NO (Normally Open) contact of TIMER_MIX (T0000) has been Deactivated because it uses the Interlock function.

VALVE_OUT (100.02) will be Closed when the NO (Normally Open) contact of SENS_LOW (0.02) changes to a LOW state. The value in Memory Word COUNTER (D0) will increase by (+1) when VALVE_OUT (100.02) is Active.

List of I/Os

Addressing Input, Output, TIM, Bit Memory, and Word Memory

CommentInput (I)Output(Q)Memory WordMemory BitsTimer
START0.00    
STOP0.01    
SENS_LOW0.02    
SENS_HIGH0.03    
RESET_COUNTER0.04    
VALVE_IN 100.00   
MIXER 100.01   
VALVE_OUT 100.02   
SYSTEM_ON   W0.00 
TIMER_MIX    T0000
COUNTER  D0  
SV_TIME  D10  

PLC Program

Mixing Program with Timers and Counters in Omron PLC

RUNG 0

When the START (0.00) button is pressed then the SYSTEM_ON (W0.00) Bit Memory will be Active. Because it uses the latching function, the SYSTEM_ON (W0.00) Bit Memory will remain active even though the START (0.00) button is released. Memory Bit SYSTEM_ON (W0.00) will be Disabled if the STOP (0.01) button is pressed.

RUNG 1

The VALVE_INPUT (100.00) output will be Open when the NO (Normally Open) SYSTEM_ON (W0.00) contact will be ON and it will be OFF when the NC (Normally Close) contacts of SENS_LOW (0.02), SENS_HIGH (0.03), and VALVE_OUT (100.02) are Active.

RUNG 2

When the NO (Normally Open) contacts of SYSTEM_ON (W0.00) and SENS_HIGH (0.03) are Active, TIMER_MIX (T0000) will Start counting and the MIXER (100.01) output will be Active. When TIMER_MIX (T0000) has reached its “Set Value”, the MIXER (100.01) Output will be Disabled.

Design a PLC Mixing System

RUNG 3

When the NO (Normally Open) TIMER_MIX (T0000) contact has reached its “Set Value” and the SENS_LOW (0.02) contact is Active, the VALVE_OUT (100.02) Output will be Active. The VALVE_OUT (100.02) output will remain active even though the NO (Normally Open) TIMER_MIX (T0000) contact has been disabled due to the Interlock Function.

The VALVE_OUT (100.02) output will be Disabled when the NO (Normally Open) SENS_LOW (0.02) and SYSTEM_ON (W0.00) contacts are Disabled.

RUNG 4

COUNTER (D0) will increase by (+1) when the NO (Normally Open) contacts of VALVE_OUT (100.02) and SYSTEM_ON (W0.00) are Active.

RUNG 5

The MOV instruction will move the zero value “0” to the Memory Word COUNTER (D0) when the RESET_COUNTER (0.04) contact is Activated.

Program Simulation

Example PLC Mixing Program

The image above shows the conditions when the system has been Started and the Timer “Set Value” has been Set to “150”. You can see VALVE_INPUT (100.00) is Active.

Omron PLC Mixing System

The image above shows the conditions when the Mixing process is being carried out.

You can see that the MIXER (100.01), SENS_LOW (0.02), and SENS_HIGH (0.03) outputs are Active.  The image also shows the value of the PV Timer Starting to count down.

Example plc mixing program step by step

The image above shows the conditions when the Mixing process has finished and VALVE_OUT (100.02) is Active. It can be seen that the value on COUNTER PV has the value “1”.

PLC Mixing Application

The image above shows the conditions when the RESET_COUNTER button (0.04) is activated. You can see the value on the PV COUNTER has changed to zero “0”.

Download PLC Program: Click Here

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:

  • Parking Garage Indicator PLC Automation
  • Pump and Mixer Operations PLC Timer Control
  • Glass Cutting and Polishing Machine Automation
  • Exhaust Fan Control Example PLC Programming
  • Motion Detection based Street Light PLC Logic
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

How to Use Encode and Decode Instructions in PLC ?
Surface Grinding Process using PLC Program
How to Choose the Right Industrial Automation Solution?
Glass Cutting and Polishing Machine: PLC Automation Solution
PLC Program for Automatic Bottle Rejection System
Communication between Wincc and Tia Portal
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
2 Comments
  • HADI says:
    March 26, 2025 at 10:21 am

    THE CX DESGINER HAS BEEN DELETED. CAN I HOW CAN I TEST IT??

    Reply
  • HADI says:
    March 26, 2025 at 10:26 am

    THE CX DESGINER HAS BEEN DELETED.
    CAN I HOW CAN I TEST IT??

    Reply

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

Explore More

Types of Instructions in PLC Programming
PLC Program Examples
Why Use Normally-Closed Contact for Stop Buttons?
PLC Crane Movement Control with Limit Switches
Scaling with Parameters (SCP) Instruction in PLC
AENT Module in Rockwell PLC – Remote IO Adapter
Muting Functions of Safety Control Circuits – PLC Example
DC Injection Braking in VFD

Keep Learning

Wiring in PLC System

Wiring in a PLC Control Panel

Advanced Ladder Logic PLC Example

Automatic Sanitizer – Complex Ladder Logic PLC Examples

Open Loop and Closed Loop System Questions

Open Loop and Closed Loop System Questions Answers

How to Select the Right Encoder for Your Machine

How to Select the Right Encoder for Your Machine?

Micro 870 Rockwell PLC

Rockwell Automation Allen Bradley PLC for Smaller and Medium Projects

Siemens Communication between PLCs using I-Device

Tutorial: Siemens Communication between PLCs using I-Device

PLC Sequential Operation Example Program

PLC Sequential Operation Example Program

PLC Program using Bitwise Instructions

Allen Bradley Bitwise Logical Operations

Learn More

Field Transmitter Installation

Cables and Cable Glands Questions and Answers

Process Override Switch

What is Process Override Switch (POS)?

Substation Safety Clearances

Substation Safety Clearances

What is an Automated Guided Vehicle

What is an Automated Guided Vehicle?

What is a Spool valve

What is a Spool Valve? – Types, Configurations, Applications

What is a Router

What is a Router? How Does a Router Work?

PLC Program for Blinking Lamp on 5 Seconds Interval

PLC Program for Blinking Lamp on 5 Seconds Interval

Mechanical Engineering Design and Fabrication Projects

300+ Mechanical Engineering Design and Fabrication Projects

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?