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

InTouch HMI

Enabling Push Buttons

  • Last UpdatedApr 06, 2022
  • 2 minute read

You can create touch sensitive objects that start action scripts by using touch push button links.

Action scripts can set tags to specific values, start and control other applications, execute functions and so on.

To create a discrete value touch link

  1. Select the object you want to apply the animation to.

  2. On the Draw menu, in the Mode group, click Animate.

    Alternatively, right-click the object and then select Animation Links.

    The Animation Links window appears.

  3. In the Touch Pushbutton area, click Discrete Value.

    The Pushbutton -> Discrete Value dialog box appears.

    Pushbutton: Discrete Value

  4. In the Tagname box, type a discrete type tagname.

  5. Click Key to assign a key equivalent to the link.

  6. In the Action area, click one of the following types:

    • Click Direct to set the value equal to 1 as long as the push button is pressed and held down. The value automatically resets to 0 when the button is released.

    • Click Reverse to set the value equal to 0 when the push button is pressed and held down. The value automatically resets to 1 when the button is released.

    • Click Toggle to reverse the state of the discrete tag.

    • Click Reset to set the value equal to 0.

    • Click Set to set the value equal to 1.

  7. Click OK.

To create an action script link

  1. Select the object you want to apply the animation to.

  2. On the Draw menu, in the Mode group, click Animate.

    Alternatively, right-click the object and then select Animation Links.

    The Animation Links window appears.

  3. In the Touch Pushbutton area, click Action.

    The Touch-> Action Script dialog appears.

    Touch: Action Script dialog

  4. In the Condition Type list, select a script type. For more information on the types of action scripts, see Script Triggers.

    Note: If you assign a key equivalent link to an action push button and to the same key is used for a key script, the key equivalent link you assign takes precedence over the key script.

  5. In the Script Editor window, type the script to execute when the object is activated.

  6. Click OK.

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