Step Buttons

Meaning, "a button that will increase (or decrease) a value by 1". VTScada does not include a step button widget, but you can easily create your own. In addition to the widget, you'll need two Multi-Write Tags that you will create as children of the output tag for which you want to add step buttons. Multi-write tags do not count against your license.

 

Preparation:

An I/O tag that writes an analog value, and for which you want to add step buttons.

This example uses the High Level Setpoint tag, found in the V12.1 Training Simulator.

 

Part 1. Create two MultiWrite tags:

  1. Add a MultiWrite tag as a child of your I/O tag.
    In this example, it is named Step Up.
  2. In the Write List tab of the MultiWrite, select the parent tag.

The purpose of the next two steps is to make this tag generic, so that it can be copied to any output tag where it will work without additional configuration.

  1. Select the path button (circled with a dotted line in previous image).
  2. Select the option, Ancestor Relative Path.

    The path should now read [..\*Numeric], followed by the description of the tag you are using as the parent.
  3. Click once in the Value column.
  4. Select the option, Expression.
  5. Open the expression editor.
  6. Enter [..\*Numeric] + 1 then select OK to save your work.

  7. Apply your changes and close the tag configuration dialog.
  8. Copy Step Up
  9. Paste it as a child of the High Setpoint, I/O tag, changing the name to Step Down
  10. Edit the properties of Step Down to change the expression to subtract 1 instead of adding.
    [..\*Numeric] - 1

 

Step Up and Step Down can now be copied as children of any output tag for which want to add Step Buttons. The link to the new parent will be automatic thanks to the use of Ancestor Relative Path.

 

The next set of steps will create the basic output control plus two step buttons and save them as a widget for re-use.

Part 2: Create a Widget:

  1. Draw the output tag as a Numeric Entry widget.
  2. Adjust the appearance of that widget as you see fit but do not select a font for the label and do not provide a title.
  3. Draw Step Up as a MultiWrite Button, placing it beside the Numeric Entry.
  4. Change the label of the button to +
  5. Draw Step Down as a MultiWrite Button, placing it below the button for Step Up.
  6. Change the label of the button to -

  1. Adjust the appearance as you see fit.
  2. Group as a Tag Widget.
    In this example, the widget is named Step Controls.
  1. Ensure that the default tag selection is the original output tag.
    If not, then ensure that both step controls are linked to MultiWrite buttons that are children of that tag and that no widget is configured to use a font or any other identifiable tag.
  2. Select OK to finish.
  3. Open the properties of the new widget.
  4. Select the Disable Trend option.

 

Suggested Enhancement: Add text to the widget as a label. Use Linked Tag Properties so that the text shows the ShortName of the output tag.