How to create IAGs

Updated March 14, 2023

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

  1. Start a New Project

 

  1. Change Type to IAG Project


     
  2. Name your Project and then click Create
 

Step 2 - Setup IAG Project

  1. Go to IAG Collection Settings and fill out Description and Publisher
    1. Here you can also name your IAG 
    2. You can also update the Version here if you ever update the IAGNote: This information relates to the collection, not individual IAGs

       
  1. Open IAG0 under HMI on the left hand side

     
  2. Go to the right hand side and under Properties fill out the following information
    1. Name for this specific IAG (for this example it will be VSD_Control)
    2. Specify the Category for this IAG (This example will be Inverter)
    3. A short Description of this specific IAG (For this example: "VSD Run and Stop control")

       
  1. As IAGs are similar to Function Blocks, we need to define a few In/Out variables.
  2. Go to the left hand side under HMI and right-click on "VSD_Control".
  3. From the dropdown menu left-click on "View User Variables"

     
  4. Here we will create 3 variables as per the imageS below.
    1. 2 of the variables are Internals

       
    2. 1 of the variables is In/Out
 

Step 3 - Create IAG program

  1. Open VSD_Control Page


     
  2. From the Toolbox, under Buttons, left-click and drag a Momentary Button onto the screen


     
  3. Double click on the Momentary Button on the Page and change the text to RUN

     
  4. On the right hand side under Properties there is a Variable parameter, type into the Variable parameter RUN1.


     
  5. Repeat steps 2-3, but this time set the text to STOP.


     
  6. On the right hand side under Properties there is a Variable parameter, type into the Variable parameter STOP1.


     
  7. Adjust the Page size to fit only the 2 buttons like the image below


     
  8. Now we will create a link between the Internal variables and the In/Out variable through VB Code.
  9. Left-click on the top left icon so that we can View Code for this page.


     
  10. Create the following subroutine that we will then link to our already created buttons.
    1. If RUN1 variable is TRUE when subroutine executes, then set CTRL1 to TRUE
    2. If STOP1 variable is TRUE when subroutine executes, then set CTRL1 to FALSE


       
  1. To link this subroutine to the buttons we have to go back to VSD_Control Page.
  2. Here we will select the RUN button first and then go to Event and Actions.


     
  3. For Event select Press.

     
  4. For Actions select CallSubroutine

     
  5. For SubroutineName type in the name of the subroutine we create "VSD_CTRL"

     
  6. Repeat steps 12-15 for STOP button
 

Step 4 - Publish IAG and Import into Project

  1. Make sure to build the IAG first.


     
  2. Once the build finishes, Publish IAG Collection.


     
  3. Select folder location and then click Publish. You should have no errors and Completed feedback like the image below.


     
  4. The IAG file is now Published, now we can import that file into a new HMI project.
  5. Create a new HMI Project in Sysmac Studio.


     
  6. Once the project is open, go to Project under the tool menu bar and select IAG Collections Manager.


     
  7. Left-click on the + symbol at the bottom left hand side to import the IAG Collection created.


     
  8. Go to the location on your computer where you published the IAG Collection we created and select the .iag file.


     
  9. 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.


     
  10. 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.

 

 

Start a Conversation
This conversation is closed
Uploading...