Professional Documents
Culture Documents
The intent of this document is to provide the AOI then teach how to use the Add-On instruction that
detects the firmware of any device in your program’s I/O tree.
This is designed to give a clear way to install this AOI then be able to program the logic require to get up
& running by the time you finish it.
Contents
Importing the Add-On Instruction ............................................................................................................... 2
Programming In Studio 5000 Using The Add-On Instruction...................................................................... 4
Installing the AOI in a rung ...................................................................................................................... 5
About the Tags of the AOI ........................................................................................................................ 6
Naming The Tags ...................................................................................................................................... 7
Adding The Message Data Tag ................................................................................................................. 8
Adding The Message Tag.......................................................................................................................... 9
Adding The Data Collection Bit .............................................................................................................. 11
Testing The AOI Instruction ................................................................................................................... 13
Resources.................................................................................................................................................... 16
Importing the Add-On Instruction
Open the PLC program that you would like to use the I/O module Add-On instruction in then highlight
the Add-On Instruction folder in the controller organizer tab on the left hand side of the screen.
Importing an Add-On Instruction can be done while online with the PLC processor in RSLogix 5000 &
Studio 5000, however, it is in the best practice that you do this while offline then download after the
edits have been made.
In this example, we will be doing the work offline then downloading after for testing.
Right click the Add-On Instruction folder then select “Import Add-On Instruction”
This will open up a folder that you can point to the place that you have the Add-On instruction that you
want to import. In the case of what we are doing in this document, the name of the instruction is
“AOI_ModuleWho_V01.L5X”.
When you point to the location that you have the instruction then select it & press the “Open” button.
Next the import configuration tab will appear, if there are no edits to be made then all you have to do is
the click the “Ok” button.
Note: At this point there are limited things to be changed even if a change is to be made so it is best to
wait until after import unless changing tag names through Find/Replace.
After you have clicked “Ok” then the process will finish.
Then the new Add-On instruction will be added to your program in the Add-On Instruction folder as
shown below.
The Add-On instruction that we are using here has the ability to detect the firmware of the I/O of any
one model that is used in the program. Which is located in the root I/O tree.
We are now past the import stage of the Add-On instruction, for a recap, we have imported the
“AOI_ModuleWho_V01.L5X” instruction which read the firmware of any module that you have in your
I/O tree of your program after you use.
With that said, let’s start the logic editing.
Starting with adding a new rung in the desired routine that you want to add the new controls to, add a
new rung then navigate to the top of the instruction bar element group Add-On section as shown below.
To quickly go through the tag structure of this instruction we have a list of the data types & structure,
however, I would like to note that these data types auto-format when you make them.
About the Tags of the AOI
AOI_ModuleWho_V01 is the main tag name for that instance of the instruction being used.
IO_ModRef is a drop down to select the module from your I/O tree that you want to use.
Major_Firmware is populated after the instruction is active for the module’s major revision.
Minor_Firmware is populated after the instruction is active for the module’s minor revision.
MSG_Module_Who is a message block data type to read from the I/O Module.
MSG_Module_Who_Dest is the data from the Module which is a data type of SINT[100]
With the existing listing above we can see that the proper data type for the tag being used with this
Add-On instruction will be selected when you create the tag in the actual instruction.
Naming the Tags
Starting off we need to make a tag for the actual AOI & in the instance of this example, we are going to
detect the firmware of a Powerflex 755, so we just named the tag Powerflex_755FW.
The reason is to an easy example tag name, but we could have named it anything we wanted so please
don’t think it has to be one tag name or another. Standard control logix tagging usages.
After we name the AOI then we need to select the device that we want to monitor from the IO tree of
the processor. A drop-down will appear when you press the IO_Module feature of this AOI so all you
have to do is point to the device you want to use.
The next tag we are going to make is for the MSG_Module_Who_Dest so we will skip over the
MSG_Module_Who tag because we are going to use the MSG_Module_Who_Dest inside the message
instruction of the MSG_Module_Who tag.
We have a special setup for that so please do not skip through this or you will create more work for
yourself later.
Make a tag for the MSG_Module_Who section of the AOI but this time we are going to check the box on
the bottom of the making the tag to open the message configuration section.
Two things need to be changed on this first screen, the Service Type & the Destination Element.
The Service Type is to be set to “Device Who” & the Destination Type is to be set to the tag that you
made for the WhoDest_755Data section of this AOI.
Note: we aren’t done just yet so do not close the message setup, we need to navigate to the
communication tab of the message block & point the message to the device it is supposed to read.
As shown below.
After you have pointed the communication path to the device the AOI will be using then press the “Ok”
button then the “Apply” button.
To test the AOI, all you have to do is toggle the XIC bit we added.
Then it will read the data from the device & pull the firmware into the major & minor revisions.
Testing the AOI Instruction
There probably is a question by now of why we are using the .CMD_Module_Who bit from this Add-On
instruction. The reason is because this tag is used directly in the Add-On instruction’s logic to transfer
the data to the firmware tags so they will be displayed in the logic.
This is populate the Major & minor firmware tags on the AOI just as shown below.
We can still continue to add on to this logic by adding a branch then two move instructions to populate
two other tags which can be used anywhere you would like. To give a couple of examples, HMI system &
different routines or even produced & consumed data.
After the two tags are added to the MOV instructions then all we have to do is to test the AOI again
using the .Cmd_Module_Who bit that we have in the XIC instruction.
This will allow the AOI to scan again then it will also load the Major & Minor firmware in the two new
tags which in the example we did, we indicated them for an HMI readout.
This example was done in Studio 5000 version 30 & has been done in Rslogix 5000 version 20 so we
thought we would verify that it works in Studio 5000 version 32 & it does.
Download Here:
AOI_ModuleWho_V01.L5X