Category Archives: Counters

PLC Programming Example – Palletizer Drum Instructions

How many ways can you program the PLC for the same function? The answer is allot of different ways. You can have ten different programmers working on the same program and get ten different automatic control PLC programs. Sure they may have similarities but, they are all unique in their code within the PLC. As a system integrator you will see many different ways of programming the PLC. We will now look at reprogramming our palletizer example using drum instructions. (Sequencer)
Last time we applied the five steps to PLC program development to a palletizer example. We will review our steps and then change our programming code to incorporate the drum instructions. Like our original example we will allow the operator to change the layers of boxes you want on each skid. We will also add in this example a manual operation sequence to cycle thought each of the steps for troubleshooting the program.

Developing the PLC program is a process that can be clearly defined. In our series on the five steps to PLC program development we have done some similar practical examples.
PLC Programming Examples – Five Steps to PLC Program Development
– Press
Process Mixer
Shift Register (Conveyor Reject)
Paint Spraying
Delay Starting of 7 Motors
– Pick and Place
– Sorting Station (Shift Register)
Palletizer

Define the task: (1)
Watch the sequence of operation video below. This will demonstrate the pallet layer selection, running and resetting of the machine.
Watch on YouTube : PLC Programming Example – Palletizer Testing
Continue Reading!

PLC Fiddle – Online Editor and Simulator in your Browser

I have recently come across a free virtual plc simulator called PLC Fiddle. It will enable you to create simple PLC ladder logic code within your browser. This is an ideal way in understanding PLC concepts for industrial automation. All of the basic PLC instructions that come with most plc units have been incorporated in this virtual PLC software.
PLC Fiddle is currently in an early stage of development but is functional enough to be helpful to you in learning and understanding PLC concepts. We will be reviewing this software and creating a few common basic circuits. Using the simulator we will test our circuits and monitor our PLC programs (circuits). Let’s get started. Continue Reading!

PLC Programming Example – Palletizer

We will apply the five steps to PLC program development to a palletizer example. Our example will allow you to determine how many layers of boxes you want on each skid.

Developing the PLC program is a process that can be clearly defined. In our series on the five steps to PLC program development we have done some similar practical examples.
PLC Programming Examples – Five Steps to PLC Program Development
– Press
Process Mixer
Shift Register (Conveyor Reject)
Paint Spraying
Delay Starting of 7 Motors
– Pick and Place
– Sorting Station (Shift Register)

Define the task: (1)
Watch the sequence of operation video below. This will demonstrate the pallet layer selection, running and resetting of the machine.
Watch on YouTube : PLC Programming Example – Palletizer Testing
Continue Reading!

BRX PLC Math Instructions

Math instructions are used to perform mathematical calculations. The BRX PLC has math instructions that can be used in a wide variety of applications. We will be looking at the INC increment, DEC decrement, LERP linear Interpolation, RANDSEED Random Number Seed and the MATH Calculated Expression instructions. Your automation system that you implement may involve some or all of these instructions. As a system integrator you will require the use of these instructions in your commissioned programs.
Let’s get started with the BRX PLC Math Instructions. Continue Reading!

BRX PLC Compare Instructions

Compare instruction are often used in PLC programs to test pairs of values. The output of this comparison conditions the logical continuity of a rung. The BRX series of programmable logic controllers has the following compare contact instructions.
= (if Equal contact)
<> (if Not Equal contact)
> (if Greater Than contact)
>= (if Greater Than or Equal contact)
< (if Less Than contact)
<= (if Less Than or Equal contact)
Besides these instruction the BRX PLC will also have compare instructions for the built in real time clock of the system. We will be looking at these instructions along with some programming examples. As a system integrator, this ability can prove very useful to you in the field when commissioning your automation system.
Lets get started with the BRX PLC Compare Instructions. Continue Reading!

PLC Programming Example – Sorting Station (Shift Register)

We will apply the five steps to PLC program development to a sorting station example. The program will use shift registers to track coloured parts down a conveyor and sort depending on colour into one of three locations.

Developing the PLC program is a process that can be clearly defined. In our series on the five steps to PLC program development we have done some similar practical examples.
Five Steps to PLC Program Development
– Press
Process Mixer
Shift Register (Conveyor Reject)
Paint Spraying
Delay Starting of 7 Motors
– Pick and Place

Define the task: (1)
Watch the sequence of operation video below.
Watch on YouTube : PLC Programming Example – Sorting Station Testing
Continue Reading!

BRX PLC High Speed IO

The BRX series of programmable logic controllers has built in high speed inputs and outputs. Every CPU will have either 6 or 10 high speed inputs (HSI) available depending on the model. These inputs can be used for input frequencies from 0 to 250Khz. 250Khz represents 250000 input counts per second that can be coming from devices connected to your PLC like an encoder. Every BRX CPU unit also has 2, 4 or 8 high speed outputs (HSO) available depending on the model. The outputs can send a frequency of pulses out up to 250Khz. Due to the speed of the IO, these functions available on the BRX PLC will operate asynchronous with the PLC scan time.
We will be looking at sending an output of pulses at different frequencies from our BRX PLC and inputting these back into the high speed inputs of the PLC. So our output will be wired back into our input. We will then display the frequency of the input pulses and the count. As a system integrator, this ability to send and receive high speed inputs and outputs can prove very useful to you in the field when commissioning your automation system.
Let’s get started with the BRX PLC High Speed IO. Continue Reading!

BRX PLC Counters

A majority of the programmable logic controller (PLC) programs will include a counter instruction. The BRX series of programmable logic controllers have several different counters available for your program. There are five different basic counter instructions in the PLC. The memory area for counters (CT), include the Counter PVs (Present Values) Counter SVs (Set Values) and the Counter Completion Flags. The default size of the counter area is CT0 – CT255. This size can change to the amount that we need for our program. Please see BRX PLC Numbering Systems and Addressing on how to change the memory configuration of the controller.
We will be looking at the counter instructions in the BRX PLC along with some programming examples. As a system integrator, this ability can prove very useful to you in the field when commissioning your automation system. When dealing with counters, we need to look at timing charts. The Secret of Using Counters is a good refresher on using timing charts.
Let’s get started with the BRX PLC Counters. Continue Reading!

BRX PLC Numbering Systems and Addressing

The BRX PLC like all of the PLCs in the Do-More Series use strong data typing. This means that there are fixed memory structures to work with in your program. Errors will be displayed if you try to put the wrong type of value in the memory location. The data structures will automatically assist you in your automation system.
Memory can now be as flexible as you want and need. You can define and allocate all the data memory the way you want it up to specific maximums. As a system integrator you determine what best fits your automation framework.
We will be looking at the addressing and numbering systems in the BRX Series PLC. Let’s get started. Continue Reading!

Omron CP1H Data Movement

Every program usually has some kind of data movement. This is the ability to transfer information from one area of the controller to another. The Omron CP1H series of programmable logic controllers provide several different ways to manipulate this information. We will be looking at several different ways in which data movement can happen with some programming examples. Data movement in the Omron CP1H does not care what is in the bits that make up the word. It will just send or receive this information. Remember that it is usually the instruction used, that determines how the information in the memory is determined. Continue Reading!