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 performed offline and then downloaded to the PLC. AOI development started with RSLogix 5000 version 16, so you’ll need to be running this version or higher.
4. On the left side of the software interface, the “Controller Organizer” contains a folder named “Add-On Instructions”.
5. Right-click over the “Add-on Instruction” folder and select “New Add-On instruction”. The “New Add-On Instruction” window will appear.
6. Name the AOI: “RealPars_Temperature_Converter”,
7. Then provide a “Description” as, “A sample AOI used for training”.
8. We will be programming using a ladder diagram so the type will remain as “Ladder Diagram”. Just so you know the other types of program logic available are “Function Block” and “Structured Text”.
9. We’ll provide a “Revision Note” as, “Temperature Conversion Origin”.
10. RealPars is creating this AOI so let’s name the Vendor: “RealPars”.
11. The “Open Definition” box is already checked and we will leave this default section checked.
- Selecting this box will open the “Add-On Instruction Definition Editor”.
- If the “Open Logic Routine” is selected the routine editor dialog box will open. The routine editor opens to the main logic tab for the “Add-On Instruction”.
- If both the “Open Logic Routine” and “Open Definition” boxes are selected, both editors will open.
Remember the AOI can be as simple or complex as you require within the rules of creating an AOI.
Now the new “RealPars_Temperature_Converter” AOI appears under the “Add-On Instruction” folder in the “Controller Organizer” window.
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...
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.
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...