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: PLC Packing Machine Control System Program in XG5000
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
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 > 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 !
Laws of Boolean Algebra using Ladder Logic
PLC Ladder Logic for Start-up Control of Boilers
All About Fieldbus Protocols
How to Use ModScan Software for Testing Modbus Communication?
Factory I/O PLC Automation Training Course (Free)
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

Categories

Recent Comments

  • Kamli on Top Free PLC Software
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • MIHARITSOA Aina Sitraka on Top Non-PLC Certification Courses for Automation Professionals

Related Articles

Introduction to PLC

Introduction to PLC – Advantages of PLC

A typical wiring diagram from Field Transmitter to Control Room

How to Wire a Field instrument to Control Room with Example

Ethernet IP Commissioning Tool software

How to Configure IP Address in Rockwell PLC?

PLC Best Practices

#1 PLC Best Practices – Split PLC Code into Modules

PC-Based Motion Controller

Various Types of Delta PLC used in Industrial Automation

Yokogawa DCS Tutorials - Configuration of Analog Input (Transmitter)

Yokogawa DCS Tutorials – Configuration of Analog Input (Transmitter)

SCADA and PLC Configuration

Examples of SCADA and PLC Configuration Systems

Learn SCL programming from scratch

How to Start Writing SCL Language in Siemens Tia Portal?

More Articles

Twisted Pair Cable Noise Supression

Why We use Shielded Cable and Twisted Pair Cables ?

Piezo Electric Transducers Objective Questions

Piezo Electric Transducers Objective Questions

Relation Control

Relation Control System

Liquid Tank Filling and Emptying PLC System

Auto and Manual Liquid Tank System: PLC Program Example

Process Pressure Measurement Objective Questions

Process Pressure Measurement Objective Questions

wash column temperature control

Pneumatic Instrumentation

Dip Tape

What is Dip Tape Level Measurement?

Acceptable Earth Resistance Values

Acceptable Earth Resistance Values

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?