# Productivity 1000 Series PLC Program Control

The program control method and instructions will allow us to specify what parts of the logic get solved and when this happens. This will control how the PLC will scan and solve your logic in your program using a synchronous PLC Scan. Understanding the PLC program scan will explain the synchronous and asynchronous program scanning.
Individual ladder logic programs get solved left to right, top to bottom. The result of the rung before is available for the next rung. The Task Management provides a method to clearly see the overall flow of your PLC program. Looking into the folders of the task management we can see blocks of code. These blocks of contain the ladder logic that will solve our logic. Instructions within the ladder logic code can also determine how the PLC will solve the logic.

We will be looking at using program control in the Productivity 1000 Series 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!