IAG (Intelligent Application Gadgets) are what I would call a HMI function block as it is an object that can be distributed to others and we define a set of Inputs for a desired visual Output and the operation required is contained within the IAG.
This is unique to NA HMIs and requires Sysmac Studio to create them.
Here we will look at a simple example of how to create an IAG so that you can build your own library of IAGs and I will even share a few IAG Omron libraries that are available for download.
Step 1 - Create new IAG Project
- Start a New Project
- Change Type to IAG Project
- Name your Project and then click Create
Step 2 - Setup IAG Project
- Go to IAG Collection Settings and fill out Description and Publisher
- Here you can also name your IAG
- You can also update the Version here if you ever update the IAGNote: This information relates to the collection, not individual IAGs
- Open IAG0 under HMI on the left hand side
- Go to the right hand side and under Properties fill out the following information
- Name for this specific IAG (for this example it will be VSD_Control)
- Specify the Category for this IAG (This example will be Inverter)
- A short Description of this specific IAG (For this example: "VSD Run and Stop control")
- As IAGs are similar to Function Blocks, we need to define a few In/Out variables.
- Go to the left hand side under HMI and right-click on "VSD_Control".
- From the dropdown menu left-click on "View User Variables"
- Here we will create 3 variables as per the imageS below.
-
2 of the variables are Internals
- 1 of the variables is In/Out
-
2 of the variables are Internals
Step 3 - Create IAG program
- Open VSD_Control Page
- From the Toolbox, under Buttons, left-click and drag a Momentary Button onto the screen
- Double click on the Momentary Button on the Page and change the text to RUN
- On the right hand side under Properties there is a Variable parameter, type into the Variable parameter RUN1.
- Repeat steps 2-3, but this time set the text to STOP.
-
On the right hand side under Properties there is a Variable parameter, type into the Variable parameter STOP1.
- Adjust the Page size to fit only the 2 buttons like the image below
- Now we will create a link between the Internal variables and the In/Out variable through VB Code.
- Left-click on the top left icon so that we can View Code for this page.
- Create the following subroutine that we will then link to our already created buttons.
- If RUN1 variable is TRUE when subroutine executes, then set CTRL1 to TRUE
- If STOP1 variable is TRUE when subroutine executes, then set CTRL1 to FALSE
- To link this subroutine to the buttons we have to go back to VSD_Control Page.
- Here we will select the RUN button first and then go to Event and Actions.
- For Event select Press.
- For Actions select CallSubroutine
- For SubroutineName type in the name of the subroutine we create "VSD_CTRL"
- Repeat steps 12-15 for STOP button
Step 4 - Publish IAG and Import into Project
- Make sure to build the IAG first.
- Once the build finishes, Publish IAG Collection.
- Select folder location and then click Publish. You should have no errors and Completed feedback like the image below.
- The IAG file is now Published, now we can import that file into a new HMI project.
- Create a new HMI Project in Sysmac Studio.
- Once the project is open, go to Project under the tool menu bar and select IAG Collections Manager.
- Left-click on the + symbol at the bottom left hand side to import the IAG Collection created.
- Go to the location on your computer where you published the IAG Collection we created and select the .iag file.
- You should see something similar to the image below. Make sure that the "Show in Toolbox" is ticked. You can close this window as now the IAG Collection has been added to your project.
- Create a simple program based on the images below to test the IAG operation through Sysmac built-in simulator.
Omron IAG Collections
Here are some links to IAG Collections already created by Omron.