- Button Setup -

Button Text
This text will appear on the face
of the button. Default text is Button. The buttons face
text can also contain live data. This is done by using the @TAGNAME command.
E.g.
If the configuration mode buttons
text says: The Setpoint = @SETPOINT °C
Then at run time the buttons text
may say: The Setpoint = 25.7 °C
Where the @SETPOINT tag has been
replace by the tags current value.
To format any @TAGNAME value simply add to the end of the tagname (number of decimal places).
E.g.
If a tag called SETPOINT =
10.05678 then when it is displayed using the @TAGNAME method, the
following behaviours will occur.
|
@SETPOINT |
the value 10.05678 will be displayed |
|
@SETPOINT(0) |
the value 10 will be displayed |
|
@SETPOINT(2) |
the value 10.06 will be displayed |
|
@SETPOINT(5) |
the value 10.05678 will be displayed |
(Not applicable for String tags, but can also be used for the TEXT tool)
A buttons face text can also automatically arrange itself over multiple lines. This is done by changing the size of the button to suit the text it needs to display. This is very useful for long text descriptions.
E.g.
|
Short title |
Long title over two lines |
|
|
|
Function Key
This option allows one of the
function keys to simulate the button being pressed by the left mouse
button. The shift key can also be applied to the function key to
provide more combinations.
Re-press
Delay
Buttons can now have a re-press
delay time applied to them. What this means is, that when a button is
pressed it cannot be pressed again until the set delay period
expires. This is useful for many reasons, one being to avoid double-clicks.
Actions
Do nothing
No action required. Useful if
language only is attached to the buttons up/down action.
Load a drawing
Loads the requested drawing. All
currently open drawings will be closed first.
Load a chart
Loads the requested chart as a
popup window.
Send a value
Sends a value to the specified tag.
You can also use +=(plus),
-=(minus), *=(multiply) and /=(divide) to manipulate 'To Tag' tag
values. As well as @TAGNAME to derive the value from some other tag.
The @ symbol simply means replace the tag name that follows with its
current value.
E.g.
To add 10 (+10) to tag ABOP01 do this.
Value += 10
To Tag ABOP01.CURRENT VALUE
Or to add the current value of
tag ABOP03 to tag ABOP01 do this.
Value +=@ABOP03
To Tag ABOP01.CURRENT VALUE
Hint: You can also replace +=
with -=,*= or /=. You may need to engineer the tag to see decimal places.
Or to make tag ABOP01 =(equal) to
tag ABOP03 do this.
Value @ABOP03
To Tag ABOP01.CURRENT VALUE
You can also give a buttons Send
a Value separate UP and DOWN values. This is achieved by using a
lower case u for UP and a lower case d for
DOWN followed by their required values.
E.g. In the Send a Value
edit box type u12.5 d27.34 to send 27.34 when the button
is depressed and 12.5 when the button is released. You must have at
least one space between the values but there is no predefined order.
If you want a .wav file to play for example set the verb to say play. Otherwise the file will only be opened by using the default setting of open. Any verb method can be type in here. See the Original Windows Explorer / View / Folder Options / File Types. Then edit the selected file type option to see available verbs.
If you want the running file to
be hidden for the duration of its execution use the /hide as one of
the command line parameters.