Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

InTouch HMI

Example of Connecting Industrial Graphics to InTouch Tags

Example of Connecting Industrial Graphics to InTouch Tags

  • Last UpdatedApr 11, 2022
  • 3 minute read

This example shows you how to connect a tank symbol with a percent vertical fill animation created by the Industrial Graphic Editor to an InTouch tag.

You do this in three main steps:

  • Create a sample Tank as an Industrial Graphic.

  • Create the InTouch application.

  • Derive and view the sample tank in WindowViewer.

To create a sample Tank as Industrial graphic

  1. In the IDE, create a new symbol called "Tank" and open it in the Industrial Graphic Editor.

  2. Paste a rectangle on the canvas. Change its appearance as needed.

  3. Create a colored polygon element that represents a cutout of the tank to show the tank level.

    Colored polygon element

  4. Click on the canvas.

  5. On the Properties menu, in the Graphic group, select Edit.

    Alternatively, double-click the graphic object.

    The Edit Custom Properties dialog box appears.

  6. Add a custom property called Level.

  7. Configure the property details. Do the following:

    • In the Data Type list, click Float.

    • In the Default Value box, type 0.

      Edit Custom Properties dialog to configure property details

  8. Click OK.

  9. Double-click on the polygon element that represents the tank level.

    The Edit Animations dialog box appears.

  10. Add a % Vertical Fill animation.

  11. In the Analog box in the right pane, type the name of the custom property. In this example, it is Level.

    Edit Animations dialog

  12. Click OK to close the Edit Animations dialog box.

  13. Click Close and Save to close the Industrial Graphic Editor.

To create the InTouch application

  1. In the System Platform IDE, create a new managed InTouch application. For more information, see Creating a Managed InTouch Application.

  2. Open the managed InTouch application in WindowMaker.

  3. Create a new window called TankDisplay.

  4. Open the Tagname Dictionary and create a new real InTouch tag named TankLevel.

  5. Click the Embed Industrial Graphic icon.

    The Galaxy Browser dialog box appears.

  6. Select the Tank symbol and click OK.

  7. Click in the window at the new location to embed the symbol.

    The Tank symbol is embedded into the window.

    Tank symbol is embedded into the window

  8. Right-click the embedded Industrial Graphic, point to Industrial Graphic "Tank", and then click Edit Symbol Properties.

    The Edit Symbol Properties dialog box appears.

  9. Select the custom property Level.

  10. In the Default Value box, type TankLevel. You can also click the ellipsis button to browse for TankLevel using the Select Tag dialog box.

  11. Click OK.

  12. Paste a slider on the window and configure it with the local InTouch tag TankLevel.

  13. Save the changes and close WindowMaker.

    The managed InTouch application is automatically checked in.

    To derive and test the sample tank

    1. In the System Platform IDE, derive an instance of the managed InTouch application and deploy it together with a WinPlatform and a ViewEngine instance.

    2. Open the InTouch Application Manager and start the listed application in WindowViewer.

      The tank and the slider appear on the window in WindowViewer.

    3. You can move the slider to change the tank level.

      Test sample tank by changing the tank level with the help of slider

      TitleResults for “How to create a CRG?”Also Available in