Rockwell Studio Add-On Instruction Creation Simplified

Rockwell Studio Add-On Instruction Creation Simplified

Add-On Instructions (or AOI for short) allow the programmer to create new specific and unique instruction types or complex functions for a company or OEM requiring commonly used logic.

The AOI will provide a common dialog to the end-user logic and include documentation for the instruction created by the end-user.

In this section, you will learn about how to create an AOI in Studio 5000 and learn some of the programming and OEM benefits of using the AOI.

Rockwell Studio Add-On Instruction Creation Simplified
  • 1. Introduction to an AOI (Add-On Instruction) - Trailer

    Add-On Instructions (or AOI for short) allow the programmer to create new specific and unique instruction types or complex functions for a company or OEM requiring commonly used logic.

    The AOI will provide a common dialog to the end-user logic and include documentation for the instruction creat...

  • 2. AOI’s Benefits

    Some of the benefits of using AOIs are:
    - Reuse of coding to promote consistency between projects by reusing commonly used control algorithms.
    - Maintenance troubleshooting friendly for technicians to understand by providing an easier to understand interface for complicated algorithms inside of a...

  • 3. AOI Temperature Conversion

    Let’s begin to create a simple AOI that will convert Celsius to Fahrenheit and Kelvin temperature.

    We will use all of the steps required in developing an AOI.
    - The equation to convert Celsius to Fahrenheit is: (°C * 1.8) + 32
    - The Equation to convert Celsius to Kelvin is: °C + 273.15
    - The Eq...

  • 4. Creating an AOI Project

    1. Select “Create - New Project”.
    2. Select “Studio 5000 Logix Emulate Controller” for the controller type. Call the program Name: “RealParsAOI”.
    3. We use the “Studio 5000 Logix Emulate” software, a virtual PLC running on the PC, to download and run and test our AOI program. AOI development is...

  • 5. Creating AOI Input-Output Parameter Tags

    We will create the “Input-Output” parameter tags.

    - Let’s define an input tag as “Celsius”. Celsius will be configured as a REAL data type and as a Float style tag. The default value will be 0. The Required and Visibility column checkboxes will be checked because the tags are requiring an argume...

  • 6. Creating AOI Local Constant Tags

    We will create three constants that will be used in our calculations. Let’s create “Constant_1”, “Constant_2”, and “Constant_3” as REAL data types and as Float style tags.

    The default values will be respectively 1.8, 32, and 273.15.

  • 7. AOI Scan Modes

    The “Scan Modes” tab allows the designer to setup pre and post scan logic. We won’t be configuring these useful modes but will be explained.
    - For the Prescan routine, the logic configured in this routine program is examined prior to the execution of the AOI. This allows for the AOI instruction a...

  • 8. AOI Modification Prevention

    - The “Signature” tab allows the designer to prevent the AOI from modifications.
    - The “Change History” tab displays the history of changes with names and dates and times.
    - The “Help” tab will allow the user to create specific help text about the functions and logic used within the AOI.

  • 9. AOI Internal Logic

    Let’s create the internal logic used to perform the conversion.
    In the logic window for ladder logic development, we have three instructions created for the logic to be used for the conversion.
    - The first instruction is a “Compute” instruction allowing us to create the equation for a destinati...

  • 10. AOI Configuration in the MainRoutine

    Let’s use the AOI in ladder logic to see the results of the equations used in our AOI.
    We will now go to the Instruction toolbar and select the Add-On
    tab. We will select the RealPars icon from the toolbar.
    The AOI will now be added to rung 0, but it still requires some configuration.
    - First, l...

  • 11. AOI PLC Program Online Demonstration

    We’ve added a few more instructions to help with the simulation.
    If you would like to follow along, the Studio file, named RealParsAOI
    can be downloaded from this link: https://bit.ly/38pEFdT
    - The TON or Timer On Delay instruction set for 5000 milliseconds or 5 seconds and will increment the C...