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: PLC Packing Machine Control System Program in XG5000
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 > PLC Packing Machine Control System Program in XG5000

PLC Packing Machine Control System Program in XG5000

Learn how to create a PLC program for a packing machine control system in XG5000 with practical steps and programming tips.

Last updated: October 28, 2024 3:23 pm
Editorial Staff
PLC Tutorials
No Comments
Share
7 Min Read
SHARE

This article discusses the Packing Machine Control System for selecting products using the XG-5000 PLC Software. The product will be carried by a Conveyor, the system will select products that have a standard weight. Products with non-standard weight will be eliminated by being Dropped into the Collector Tank by a Piston. All products carried by the Conveyor will be counted in the “OK Products” and “Not OK Products” categories.

Contents
PLC Packing Machine Control SystemProgram AddressingXG5000 PLC Programming

PLC Packing Machine Control System

The following are the I/Os in the program.

  1. The PB_START (0.00) button is used to turn ON the system.
  2. The PB_STOP (0.01) button is used to turn OFF the system.
  3. The RESET_COUNTER (0.02) button is used to Reset the Counter data.
  4. The SENS_PRODUCT (P00002) sensor is used to detect products carried by the Conveyor.
  5. Limit Switch LS_PISTON (P00003) is used to provide feedback if the Piston in the Forward state.
PLC Programming Basics for a Packing Machine Control System

Before this system is Run, the “Set Value” parameter for the Standard Weight of the product must be set in the memory word SV_WEIGH (D00001).

When this system is turned ON, the Conveyor CONVEYOR (P00040) will Run to carry the product.

Conveyor (P00040) will Stop for 2 seconds when the SENS_PRODUCT (P00002) Sensor detects that the product has arrived at the Weighing Area.

If the product has a weight that matches the Standard Weight “Set Value” parameter, then the Conveyor CONVEYOR (P00040) will Run again to carry the product to the destination area.

If the product weight does not match the Standard Weight “Set Value” parameter, the Piston PISTON (P00041) will Drop the product into the Collector Tank, and then, the Conveyor CONVEYOR (P00040) will Run again.

The quantity of products that have a Standard Weight will be counted in the memory word COUNTER_OK (D00010).

The quantity of products with non-standard weight will be counted in the memory of the word COUNTER_NOT_OK (D00011).

PLC Packing Machine Control System Program in XG5000

Program Addressing

CommentInput (I)Output (Q)Memory WordMemory BitsTimer
PB_STARTP00000    
PB_STOPP00001    
SENS_PRODUCTP00002    
LS_PISTONP00003    
RESET_COUNTERP00004    
CONVEYOR P00040   
PISTON P00041   
TIMER1    T0000
PV_WEIGH  D00000  
SV_WEIGH  D00001  
COUNTER_OK  D00010  
COUNTER_NOT_OK  D00011  
SYSTEM_ON   M00000 
IR_CUTOFF1   M00001 

XG5000 PLC Programming

RUNG 1

In this Rung, when the PB_START (P00000) button is Pressed, the memory bit SYSTEM_ON (M00000) changes to HIGH state. The memory bit SYSTEM_ON (M00000) remains in the HIGH state even though the PB_START (P00000) button has been Released because it uses the SET Coil instruction.

Packing Machine Automation

RUNG 4

In this Rung, the memory bit SYSTEM_ON (M00000) will change to LOW state if the PB_STOP (P00001) button is Pressed. Because it uses the RESET Coil instruction.

PLC Programming for Packing Machines

RUNG 7

In this rung, when the RESET_COUNTER (0.02) button is Pressed, the values ​​in memory word COUNTER_OK (D00010) and COUNTER_NOT_OK (D00011) will be reset to zero “0”.

RUNG 13

When the NO contact of memory bit SYSTEM_ON (M00000) in the HIGH state, the Output CONVEYOR (P00040) will be ON.

If the NO contact of memory bit SYSTEM_ON (M00000) in the LOW state or the NC contact of memory bit IR_CUTOFF1 (M00001) in the HIGH state, then the CONVEYOR (P00040) Output will be OFF.

PLC Packing Machine Control Program

RUNG 17

In this Rung, if the NO contacts of memory bit SYSTEM_ON (M00000) and The Sensor SENS_PRODUCT (P00002) are in the HIGH state, then the memory bit IR_CUTOFF1 (M00001) will be in the HIGH state.

Because it uses the SET Coil Instruction, the memory bit IR_CUTOFF1 (M00001) will remain in the HIGH state even though the SENS_PRODUCT (P00002) Sensor in the LOW state.

RUNG 21

When the NO contact of memory bit IR_CUTOFF1 (M00001) in the HIGH state, the Timer TIMER1 (T0000) will Start counting up to 2 seconds.

RUNG 24

When the NO contact of TIMER1 (T0000) in the HIGH state and the value in memory word PV_WEIGH (D00000) is Equal to SV_WEIGH (D00001), then the memory bit IR_CUTOFF1 (M00001) will be in the LOW state and the value in memory word COUNTER_OK (D00010) will increase (+1).

PLC-Based Packing Machine

RUNG 33

When the NO contact of TIMER1 (T0000) in the HIGH state and the value in memory word PV_WEIGH (D00000) is Not Equal to SV_WEIGH (D00001), then the Output PISTON (P00041) will be ON.

Because it uses the SET Coil Instruction, the PISTON (P00041) Output will remain ON even though the NO contact of TIMER1 (T0000) in the LOW state.

RUNG 38

In this Rung, if the Limit Switch LS_PISTON (P00003) in the HIGH state, then the Output PISTON (P00041) will be OFF, the memory bit IR_CUTOFF1 (M00001) will be in the LOW state, and the value in memory word COUNTER_NOT_OK (D00011) will increase (+1).

Read Next:

  • FactoryTalk View Studio Import and Export
  • Structured Text vs. Instruction List for PLC
  • Create a User-Defined Function Block in Codesys
  • Structured Text PLC Example for Motor Interlock
  • Allen Bradley PLC to PLC Communication Tutorial
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 Classic Control Circuits using Single Push button
Single Push button to ON and OFF a Bulb using Ladder Logic
PLC Program for Motor Starter
PLC Ladder Logic for Start-up Control of Boilers
PLC Digital Signals Wiring Techniques
PLC Sinking and Sourcing Explanation
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

Light ON OFF Control using PLC
Waste-Burning System OMRON PLC Program Example
What is a Dry Contact? – Basics of PLC Wiring
Ladder Logic for Control of Double-acting Pneumatic Cylinder
T Flip Flop PLC Ladder Diagram
The Concept of Shift Register in Omron PLC with Example
CW and CCW Operation of Motor from Same Push button
How to Download EcoStruxure Machine Expert? Schneider PLC Software

Keep Learning

CPU Communication Ports in Siemens PLC

Types of CPU Communication Ports in Siemens PLC

Jog button in Motor Start Stop Logic using PLC

What is Motor Jogging ?

Scaling in PLC

How to do Scaling for Analog Input in RSLogix 500?

Omron PLC for Product Painting with Integrated Weighing System

Omron PLC for Product Painting with Integrated Weighing System

DDE Protocol

What is the DDE Protocol?

Types of Cables used in Industrial Automation

Types of Cables used in Industrial Automation

Organization block Siemens

Tia Portal – OB30 Cyclic Interrupt Organization Block

Loop Diagram

Documentation and Change Control of PLC or DCS Systems

Learn More

Digital Electronics Multiple Choice Questions

Demultiplexers Objective Questions

On-Off Valve Problems

How to Solve On-Off Valve Problems?

Float level gauge Principle

Float Type Level Indicator Principle

Calculate voltage across RTD

Resistance Temperature Detector (RTD) Questions – 2

Allen-Bradley VFD

AC Motor Speed Control

How Does an Infrared Thermometer Work

How Does an Infrared Thermometer Work?

Rotary Equipment

Modern Engineering Solutions for Rotary Equipment

C-Bourdon Tube

C-Bourdon Tube Pressure Gauge Theory

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?