Set up touch animation for an object

Use the
Touch
tab to set up touch animation for an object. You can use the
Display Settings
option to specify whether or not objects with touch animation are to be highlighted or beep when touched at runtime.
If you attach more than one command to an action, the results may not look exactly as you intended. For example, if you set the touch action to first set a tag when depressed, then play a wave file using the
PlayWave
command, the resulting sequence of actions will be: the tag value is set, the wave file is played, then the button will depress. The reason for this is that as soon as the tag is set, the wave file is played. FactoryTalk View has to wait for this to complete before changing the appearance of the button.
To set up touch animation for an object:
  • In the
    Touch
    tab, in one of the action fields, type a command or macro. You can also click the browse button
    (...)
    , to open the
    Command Wizard
    and build a command string.
    TIP:
    For a repeat action you can specify a repeat rate or leave the default of 0.25 second.
    To set the value of a tag you can type an equation, for example a1 = a3 + a2, which would add the value of tag a3 to a2.
    To achieve the desired effect (the key depressing as soon as it is pressed, then the wave file being played), it is best to depress the key as the press action and give the
    PlayWave
    command as the release action. This gives FactoryTalk View a chance to set the tag and change the appearance of the button before playing the wave file.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal