zaro

How to Create an Add-On Instruction in Studio 5000

Published in Studio 5000 AOI Creation 2 mins read

Creating an Add-On Instruction (AOI) in Studio 5000 is a structured process that allows you to define reusable logic blocks for your automation projects.

Follow these steps to create a new Add-On Instruction:

Step-by-Step Guide to Creating an AOI

The process begins within your Studio 5000 project environment.

  1. Open Studio 5000 and Create a Project: Start by launching your Studio 5000 software and either open an existing project or create a new one where you wish to develop the Add-On Instruction.
  2. Navigate to Controller Organization: In the Studio 5000 project tree (often on the left side), locate and expand the section related to your controller. This area is typically referred to as "Controller Organization" or similar depending on the Studio 5000 version and project structure.
  3. Access Add-On Instructions: Within the Controller Organization, find the "Add On Instruction" folder.
  4. Create New Instruction: Right-click on the "Add On Instruction" folder and select the option to create a new instruction. The reference states to "create new instrunction as shown in below image" (image not provided, but the action is clear).
  5. Define Instruction Details: According to the reference, "a new window will appear when you create a new add on instrunction." In this window, you will need to "define following details." These details typically include:
    • Name: A unique identifier for your AOI.
    • Description: A brief explanation of what the AOI does.
    • Parameters: Defining the input, output, and local tags (memory) that the AOI will use.
    • Revision: Version control information.
    • Type/Language: Selecting the programming language for the AOI's logic (e.g., Ladder Logic, Structured Text, Function Block Diagram).

Defining AOI Parameters

Defining the parameters is a crucial part of creating an AOI. These parameters act as the interface for your reusable logic.

  • Input Parameters: Data values passed into the AOI.
  • Output Parameters: Results or status values generated by the AOI.
  • In/Out Parameters: Parameters that can be both read from and written to by the AOI.
  • Local Tags: Internal memory used only within the AOI itself.

Once these details are defined in the new window, you can proceed to write the actual logic for your Add-On Instruction within the editor that opens.

This structured approach ensures that your reusable logic is well-defined and easily integrated into different parts of your project or even across multiple projects.