Palletizing Conveyor Programming – Click PLC

The Machine Simulator (MS) is part of the EasyPLC software suite. It has many built-in machines, like the palletizing conveyor machine, that show different programming techniques. The palletizing conveyor example is one of these machines, and we will use the Click PLC programming software. This will demonstrate a sequencer example. In this case, a box is placed upon a skid. The logic will step through various steps to perform the task. A counter will control these steps. This is one of the easiest fundamental ways all PLCs can be programmed for a sequence.
Palletizing Conveyor Programming - Click PLC
We will use the free Click programming software and a Click PLUS PLC to program this EasyPLC palletizing machine simulator palletizing conveyor. Communication will be done using Modbus TCP (Ethernet). The program sequencer allows for quick and easy control of the automation system. Using the five steps for program development, we will show how this sequencer is programmed. Let’s get started.

Learn PLC programming the easy way. See below how to receive a 10% discount on this cost-effective learning tool. Invest in yourself today.
Previously we have done the following:
Easy PLC Installing the SoftwareVideo
EasyPLC Software Suite – Quick StartVideo
Click PLC – Easy Transfer Line ProgrammingVideo
Productivity PLC Simulator – Chain Conveyor MSVideo
Do-More PLC – EasyPLC Box Selection ProgramVideo
Click PLC EasyPLC Gantry SimulatorVideo
Click PLC Simple Conveyor EasyPLCVideo
EasyPLC Paint Line Bit Shift – BRX Do-More PLCVideo
Click PLC – EasyPLC PLC Mixer ProgrammingVideo
Click PLC EasyPLC Warehouse Stacker ExampleVideo
–  Operation Video
EasyPLC Machine Simulator Productivity PLC Robotic CellVideo
EasyPLC Simulator Robotic Cell Click PLCVideo
Palletizing Conveyor Programming Do-More PLCVideo

Define the task: (Step 1 – Click Easyplc Palletizing Conveyor)

The first step of a Click or any PLC program development is determining what must be done. Start the EasyPLC Machine Simulator (MS). Select the start button on the main page or select machines from the main menu at the machines simulator window.
Palletizing Conveyor Programming - Do-More PLC
All the available machines will now be displayed. Click on the “04 Palletizer System 1”. This is the example we will be programming. To the left of the screen, information will be displayed on how the palletizing machine needs to function. Use the charge elevator to move each large wooden box onto a pallet. Utilize the tuning table to direct the boxes and pallets to the elevator palletizing machine. The photocells will detect the arrival of boxes and pallets. Once the box is in the elevator, raise it to the loading position for pallet placement. After positioning the pallet, lower the box to unload it safely.
Palletizing Conveyor Programming - Do-More PLC
The palletizing machine simulator has a demo mode for this built-in machine. This will allow you to watch the operation of the palletizing conveyor. Select the demo mode for the palletizer system 1.
Palletizing Conveyor Programming - Do-More PLC
The demo mode will show you the basics of the palletizing conveyor operation.
Palletizing Conveyor Programming - Do-More PLC
Move around the 3D virtual environment. The icons on the top of the window allow you to move around this 3D environment. The first icon is the default selection. This will enable you to move around without bumping into the components. The last icon will automatically show you around this virtual environment. The first-person mode will mimic a person in your 3D learning world. The third person will show you an operator and their relationship to the palletizing machine. Once we understand what must be done, we can move on to the next step in developing the Click PLC program.

Define the Inputs and Outputs: (Step 2 – Click Easyplc Palletizing Conveyor)

At the bottom of the machine simulator window, the View IO will display the inputs and outputs required for this palletizer conveyor example. While still in demo mode, you can see the operation of the inputs and outputs.
Palletizing Conveyor Programming - Do-More PLC
The EasyPLC Palletizer Sample 1 will require 13 digital outputs and 13 digital inputs. If you are unsure what output or input is doing, start the palletizer conveyor machine in Start mode.
Palletizing Conveyor Programming - Do-More PLC
Select the View IO on the bottom middle of the palletizing machine simulator window. You can manually run the palletizer without any control or Click PLC connection.
Palletizing Conveyor Programming - Do-More PLC
Clicking on the outputs will allow you to turn them on manually. You can then monitor the inputs to see their operation. The restart button on the bottom of the machine simulator window will reset the scene back to the start. The following table will define the inputs and outputs (IO) and Modbus addresses in the Click PLC we will use for this program.

Digital Type Description Do-More PLC Modbus Address Machine Simulator Modbus Address
PLC Output – MS Input Conveyor Roller 3 Advance 16485 – C101 16484
PLC Output – MS Input Work Part Creator 2 Pallet 16486 – C102 16485
PLC Output – MS Input Work Part Creator 1 Box 16487 – C103 16486
PLC Output – MS Input Turn Table Rollers Advance 16488 – C104 16487
PLC Output – MS Input Turn Table Rotate 16489 – C105 16488
PLC Output – MS Input Turn Table Clockwise 16490 – C106 16489
PLC Output – MS Input Charge Elevator Home 16491 – C107 16490
PLC Output – MS Input Charge Elevator Load 16492 – C108 16491
PLC Output – MS Input Charge Elevator Position 1 16493 – C109 16492
PLC Output – MS Input Charge Elevator Position 2 16494 – C110 16493
PLC Output – MS Input Charge Elevator Take Part 16495 – C111 16494
PLC Output – MS Input Conveyor Stop Roller 16496 – C112 16495
PLC Output – MS Input Conveyor Roller 2 Advance 16497 – C113 16496
PLC Input – MS Output Turn Table SW Input 16585 – C201 16584
PLC Input – MS Output Turn Table SW Output 16586 – C202 16585
PLC Input – MS Output Photocell Pallet Signal 16587 – C203  16586
PLC Input – MS Output Charge Elevator Position Home 16588 – C204  16587
PLC Input – MS Output Charge Elevator Position Load 16589 – C205  16588
PLC Input – MS Output Charge Elevator Position 1 16590 – C206  16589
PLC Input – MS Output Charge Elevator Position 2 16591 – C207  16590
PLC Input – MS Output Photocell 2 Signal 16592 – C208  16591
PLC Input – MS Output Photocell 3 Signal 16593 – C209  16592
PLC Input – MS Output Turn Table Moving 16594 – C210  16593
PLC Input – MS Output Turn Table Stopped 16595 – C211  16594
PLC Input – MS Output Photocell Stop Signal 16596 – C212  16595
PLC Input – MS Output Photocell Box Signal 16597 – C213  16596

Note: The machine simulator will be offset by one on the Modbus Addresses.
See the video below for the demo mode and determining inputs and outputs.

Develop a logical sequence of operation: (Step 3 – Click Easyplc Palletizing Conveyor)

A flow chart or sequence table is used to understand the process that must be controlled thoroughly. It must also answer questions like this:

What happens when electrical power and/or pneumatic air is lost? What happens when the input/output devices fail? Do we need redundancy?

This step is where you will spend most of your time. Understanding everything about the operation will save you time. It will help prevent you from continuously re-writing the PLC program logic. Knowing all these answers upfront is vital in developing the PLC program.


Our Click PLC palletizing conveyor example will break down into three parts: the conveyors controlling the box and skid, the turntable, and the elevator. The box and skid creation will happen if the end sensor does not see the item. This will ensure that a box and skid are always at the end of the conveyor, ready for the turn table.
Palletizing Conveyor Programming - Click PLC
Our sequence table for the turn table will show the input signals on the left side and the output signals on the right. The value of the counter is shown with each step. We can move to the next step by looking at the counter value of 0 and if we have timer 1 done and the turn table stopped signal. The output that activates at a counter value of 0 is timer one, and the turn table rotates. Repeat the process for all the other counter values until the last one of 7. This will reset the counter back to 0.
Palletizing Conveyor Programming - Click PLC
Counter 2 controls the sequence for the elevator. Once again, the input signals are on the left side, and the output signals are on the right. The value of the counter is shown with each step. We can move to the next step if the counter value is 0 and we have the box signal. The conveyor roller two advance is the output that activates at a counter value of 0. Repeat the process for all the other counter values until the last one of 7. This will reset the counter back to o.

A PLC programmer must know everything about the sequence and operation of the machine before programming.
Ask questions or view existing documentation to ensure you know the logical steps to the machine’s operation.

Develop the Click PLC program: (Step 4 – Click Easyplc Palletizing Conveyor)

The next step in our program development will be writing the ladder logic code for the Click PLC example. We will use the free Click programming software with the Click PLUS PLC. The Click Series will install the program, communicate the controller instructions, and address the controller.
Palletizing Conveyor Programming - Click PLC
Select the “Com Port…” under the Setup selection on the main menu.

The available ports on the Click PLC are displayed. Using Modbus TCP (Ethernet), we can set up either the WLAN (wireless local-area network) or the Port 1 (Ethernet). Select setup for port 1.
Palletizing Conveyor Programming - Click PLC
Note: If you want to go directly to the Com Port Setup details window, select Com Port 3 Setup under the CPU Configuration on the Function Tab of the navigation window.
A static IP address will be used for our Click PLC. This ensures that the IP address on the network can always be found. Note the IP address we are using. This will later be used for the EasyPLC Machine Simulator connection.
Palletizing Conveyor Programming - Click PLC
Under the Setup menu on the main screen, you will also see Modbus TCP… This will show us the default parameters for our Ethernet port and allow us to enable the Modbus TCP Server. This is enabled by default on the controller. We will leave everything as their default values.
Our Click PLUS PLC is now set to communicate to the EasyPLC Machine Simulator Modbus TCP Client.
Ladder Logic Sequence Program
The first two rungs of ladder logic will control the box and pallet conveyors. The conveyor will activate when the photocell for each component is not seen. This will automatically produce a part. When the turn table needs the part, this is compared to the sequence for the step, and the conveyors will also advance.
Ladder Logic Sequence Program
This is counter 1, which controls the turn table sequence. Returning to the sequence table, you can see the steps and inputs that will advance (increment) the counter.
Ladder Logic Sequence Program
Ladder Logic Sequence Program
Here are the outputs of the sequencer. You will see the counter value and inputs that will activate each output. If the output is to be turned on with more than 1 of the counter values, you can see that the conditions are placed in parallel.
Ladder Logic Sequence Program
This is counter 2, which controls the elevator sequence. Returning to the sequence table, you can see the steps and inputs that will advance (increment) the counter.
Ladder Logic Sequence Program
Ladder Logic Sequence Program
Here are the outputs of the elevator sequencer. You will see the counter value and inputs that will activate each output. If the output is to be turned on with more than 1 of the counter values, you can see that the conditions are placed in parallel.
This is the end of the ladder logic code. Download the Click ladder logic program to the Click PLUS PLC. Ensure that the PLC is in run mode. Watch the video below to see this Click PLC program in action.

Test the program: (Step 5 – Click Easyplc Palletizing Conveyor)

We will use Modbus TCP on our Click PLUS PLC to communicate with the EasyPLC Machine Simulator. Call up the palletizing conveyor machine simulator in start mode.

The status of the machine simulator will be at the bottom of the screen. Currently, we have no PLC connected. Select IO Drivers on the bottom middle of the screen.
Palletizing Conveyor Programming - Do-More PLC
The machine simulator IO number will be displayed. Ensure we select more IO than the number required for our palletizing machine. The EasyPLC driver is selected by default.
Palletizing Conveyor Programming - Do-More PLC
Under the driver pull-down menu, select “ModBusDriver.” This driver will communicate Modbus TCP (Ethernet) and Modbus RTU (Serial). Select the down arrow on the driver’s name.
Palletizing Conveyor Programming - Do-More PLC
Select the configure button.
Palletizing Conveyor Programming - Click PLC
We can now enter the information for our Modbus driver. Select TCP/IP. This means the Ethernet port on the computer will communicate with the Click PLC. The digital inputs from MS to the Click PLC will be C101 to C113. This will start at address 16484 due to the offset of 1. Digital outputs from MS to the Click PLC will be C201 to C213. This will begin at address 16584 due to the offset of 1. Select the OK button.
Palletizing Conveyor Programming - Do-More PLC
You will now see the inputs and outputs specified for the Modbus driver. We can now manually assign the driver outputs to the PLC inputs and driver inputs to the PLC outputs. However, the automatic assignment works well and will save you time.
Palletizing Conveyor Programming - Do-More PLC
Select Automatic Assignment from the driver option in the main menu.
Palletizing Conveyor Programming - Do-More PLC
This will automatically assign the PLC IO to the Machine Simulator IO. Select Start Driver and exit from the main menu.
Palletizing Conveyor Programming - Do-More PLC
On the bottom left side of the window, the driver communicates to the Click PLUS PLC with the green light. Select view IO to know the input and output status of the machine simulator.
Palletizing Conveyor Programming - Do-More PLC
Ensure that the Click PLC is in run mode. We can see the operation of our palletizing machine. The digital inputs and outputs of the MS will correspond to the PLC controller.
Palletizing Conveyor Programming - Click PLC
Using the Data View window of the Click programming software, we can also watch the inputs and output operations.
Palletizing Conveyor Programming - Do-More PLC
Using Machine Simulator (MS) to test the program will ensure that our program works. Troubleshooting is quickly done without damage to any physical hardware.

You can practice your modification and debug by modifying the palletizing operation in the following way:
– Add a control panel with start and stop buttons.
– Add a jog button to the control panel to sequence through the steps.
– Calculate the rate of full pallets coming out of the palletizer machine in pallets per hour. Let me know how you make out in the comments below.

Download the Click PLC sample program and sequence tables here.

Watch the video below to see the five steps of program development applied to the palletizing machine. The machine simulator is one of the best applications to help you learn PLC programming.

EasyPLC Software Suite is a complete PLC, HMI, and Machine Simulator Software package. This PLC learning package includes the following:
Easy PLC – PLC Simulation allows programming in Ladder, Grafcet, Logic Blocks, or Script.
HMI System – Easily create a visual human-machine interface (HMI)
Machine Simulator – A virtual 3D world with real-time graphics and physical properties. PLC programs can be tested using EasyPLC or through other interfaces. (Modbus RTU, TCP, etc.)
Machine Simulator Lite – Designed to run on Android Devices.
Machine Simulator VR – Virtual Reality comes to life so you can test, train or practice your PLC programming.

Purchase your copy of this learning package for less than USD 75 for a single computer install or less than USD 100 to allow different computers.
Receive 10% off the price by typing in ACC in the comment section when you order. http://www.nirtec.com/index.php/purchase-price/
Learn PLC programming the easy way. Invest in yourself today.

Watch on YouTube: Palletizing Conveyor Programming Click PLC

If you have any questions or need further information, don’t hesitate to contact me.
Thank you,
Garry


If you’re like most of my readers, you’re committed to learning about technology. Numbering systems used in PLCs are not challenging to learn and understand. We will walk through the numbering systems used in PLCs. This includes Bits, Decimals, Hexadecimal, ASCII, and Floating Points.

To get this free article, subscribe to my free email newsletter.


Use the information to inform other people how numbering systems work. Sign up now.

The ‘Robust Data Logging for Free’ eBook is also available for free download. The link is included when you subscribe to ACC Automation.

Leave a Comment