Category Archives: PLC

PLC Fiddle Compare Challenge

Just about every program usually has some data comparison instruction. This is the ability to compare information from one area of the controller to another and act on results. The output of this comparison conditions the logical continuity of a rung. PLC Fiddle is a free online browser simulator and 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)
We will be looking at these instructions along with some programming challenges. As a system integrator, this ability can prove very useful to you in the field when commissioning your automation system. We will look at these compare instructions and show the parameters required to program them. Our compare challenges will help you gain a good understanding of how we can use compare in the PLC. Trying these challenges with PLC Fiddle is fun and will help you with PLC programming. Let’s get started. Continue Reading!

Productivity 1000 Series PLC Array Functions Part 3

An array is a storage area for a group of common data type tags. They usually have some relationship to each other and need to be manipulated as a group.

Previously we defined an array and use this in an indirect addressing program. It sequenced bits in an output card indirectly. We then looked at the following instructions: Array Statistics (STA), Copy Array (CPA), Fill Array (FLA) and Shift / Rotate Array (SRA). We will now look at the final four array instructions:
Pack Boolean Array (PBA) – Pack an Array of Boolean tags into a destination Word Array
Pack Word Array (PWA) – Convert one 8 bit or 16 bit array into a 16 or 32 bit Destination Array tag.
UnPack Boolean Array (UPBA) – Unpack an Array of Word tags into a destination Boolean Array.
UnPack Word Array (UPWA) – Convert one 32 or 16 bit array source tag into four 8 or 16 bit array tags.
Let’s get started with our final look at arrays in our Productivity 1000 Series PLC. Continue Reading!

C-More Micro HMI Object List Shapes

The C-More Micro HMI Panel software uses virtual components called Objects. These objects are programmable to simulate the functions that you require on your automation project. Pushbuttons, switches, meters and graphs are just a few of the objects that are available to you.

We can place several of these objects on one panel screen and have multiple panel screens. This helps you produce simple, intuitive looking human machine interfaces.
We will be looking at our program we have so far developed (Simulate Project) and add shapes to our blank page. The navigation of the objects and additional information will also be discussed. Let’s get started. Continue Reading!

PLC Fiddle Math Challenge

PLC programming will often involve math equations that need to be solved. Every manufacturer of programmable logic controllers will include math logic for you to use in your programs. Numbering systems play an important role. You can usually perform math using BCD (Binary Coded Decimal), Binary or Floating Point. Here is a link that will review the numbering systems in the PLC:
What everyone ought to know about PLC numbering systems

PLC Fiddles provides four basic BCD math and a move function for our circuits. Add, Subtract, Multiply Divide and Move. We will look at these math instructions and show you the parameters required to program them. Our math challenges will help you gain a good understanding of how we can use math in the PLC. Trying these challenges with PLC Fiddle is fun and will help you with PLC programming.
Let’s get started. Continue Reading!

Productivity 1000 Series PLC Array Functions Part 2

An array is a storage area for a group of common data type tags. They usually have some relationship to each other and need to be manipulated as a group.
Last time we defined an array and use this in an indirect addressing program. It sequenced bits in an output card indirectly. In this second part we will be looking at the following instructions:
Array Statistics (STA) – This will perform operations such as Summing, Averaging, Minimum Value and Median Value on an Array.
Copy Array (CPA) – Copy a block of 1 or 2 dimensional arrays into a destination array.
Fill Array (FLA) – Copy a value to a block of array elements
Shift / Rotate Array (SRA) – Concurrently Shift or Rotate values in an Array.
Let’s get started with the Productivity 1000 Series PLC arrays part 2. Continue Reading!

PLC Fiddle Counter Challenge

Counters are used in a lot of PLC programs that I have seen. A timing chart is the secret behind understanding of the counter that you need in your application. Making a timing chart before writing the program will ensure that all of the information will be accounted. The secret to using counters is a good review of using these timing charts.

PLC Fiddle has three different counter instructions for us to use in our programs. Count UP, Count Down and Reset. We will discuss the counter parameters and the three different instructions. Our counter challenges will help you gain a good understanding of how counters work in the PLC. Let’s get started. Continue Reading!

Productivity 1000 Series PLC Array Functions Part 1

An array is a storage area for a group of common data type tags. They usually have some relationship to each other and need to be manipulated as a group. We can use arrays for motion control, recipe management, sequencing (indirect addressing), math, etc. The Productivity 1000 Series PLC uses arrays which are programmed using the Productivity Suite Software.

We will be defining an array and use this in an indirect addressing program. This will sequence bits in an output card indirectly.
Let’s get started with the Productivity 1000 Series PLC arrays. Continue Reading!

C-More Micro HMI Common Screen Menu

Allowing operators of your HMI (Human Machine Interface) panel to easily navigate all of the information available is a vital part of programming. We want to present the information to the operator so they will clearly understand the programmed operation of the unit. Common menus on the HMI panel pages will allow the quick navigation, understanding and control that your operators want. When programming operator interfaces I have always heard to use the KISS method. (Keep it stupidly simple.) Your HMI program interface could contain hundreds of pages containing vital information for operator understanding and control, but you must make it easily accessible and intuitive. This is how you design and program a good HMI panel display.

We will be creating a common screen menu for our C-More Micro HMI Panel using the C-More Micro programming software. Using our previous program created we will be making a background screen to act as our menu system. Let’s get started. Continue Reading!

PLC Fiddle Timer Challenge

Timers are present in just about every PLC program that I have seen. A timing chart is the secret behind understanding of the timer that you need in your application. Making a timing chart before writing the program will ensure that all of the information will be accounted. The secret to using timers is a good review of using these timing charts.

PLC Fiddle has three different timing instructions for us to use in our programs. On-Delay, Off-Delay and Retentive Timers. We will discuss the timer parameters and the three different instructions. Our timer challenges will help you gain a good understanding of how timers work in the PLC. Let’s get started. Continue Reading!

Productivity 1000 Series PLC Data Handling Instructions Part 2

Data handling instructions are used to perform movement and manipulations of the memory in the programmable logic controller. The Productivity 1000 Series PLC has fifteen different data handling instructions that can be used in a wide variety of applications. In this second part we will be looking at the following instructions:
Lookup Table (LKUP) – Find a value within an XY Table by looking at the intercept of a referenced X Axis value and Y Axis value.
Pack Bits (PKB) – Convert up to 32 Boolean Tag Bits or Constant Bits into an Output Integer Tag.
Pack Word (PKW) – Convert up to four 8 bit tags or two 16 bit tags, or four Constants into a 16 or 32 bit Destination Tag.
Shift / Rotate Bits (SFR) – Shift or Rotate Bits of a Tag or Constant value.
Sign Magnitude (SMAG) – Convert Sign Plus Magnitude data type values to 2’s Complement or Convert 2’s Complement data type values to Sign Plus Magnitude.
UnPack Bits (UPKB) – Convert up to a 32 Bit Integer Tag or Constant into Boolean Tags.
UnPack Word (UPKW) – Convert one 32 bit or 16 bit source tag into four 8 bit tags or two 16 bit tags.
A review of data handling instructions part 1 can be found here. Here is a link to the video.
Let’s get started with the Productivity 1000 Series PLC data handling instructions part 2. Continue Reading!