Script (3)
Script objects can contain either 1 or 2 ACNET Command Language (ACL) scripts.
There can be a display script and/or an action script. The
action script (if specified) is executed if the user clicks on the
script object. All actions supported by ACL are available. For display
scripts, the symbol '$lexobject_current_value' is used for the current
reading. You can also have the script specify the display object's color
using the symbol '$lexobject_color'.
Spript objects can be displayed as a text string with or without units,
graphically using a Lex Object, or as a button (for action scripts).
For text string displays, if the display object 'TEXTUNIT' is specified,
the symbol '$lexobject_units_text' is read to provide units text. The
size of the text can be set by using the symbol $lexobject_text_size.
This overrides the text size specified when creating the object in the
editor.
For graphical displays, you can have the display script explicitly fill
all six of the arguments which define the Lex Object's display. The
symbols to do this are named '$lexobject_param_n' where 'n' is the argument
number (1-6). Otherwise, the display of a script object is handled in the
same way as an analog object. In this case the Lex Object arguments are
handled as follows:
1) scaled value in common units (size)
2) primary value / full scale x pixel length (size)
3) 30 + (1 - primary value / full scale) x 120 (angle)
4) pixel length (size)
5) color (alarm color if above alarm limit)
6) scaled value / max scaled value x pixel length (size)
There are additional script symbols to support minimum and maximum
display values ($lexobject_min_value and $lexobject_max_value).
There is a symbol for setting the display length ($lexobject_display_length).
These symbols all override the values specified in the editor.
If the script is being displayed as a button, the button text can be
specified by the symbol $lexobject_text. This allows you to change the
text of the button based on the state of one or more devices.
There are also symbols to support setting the alarm limit value and
color ($lexobject_alarm_limit and $lexobject_alarm_color). These symbols
all override the values specified in the editor.
Level 3 Topics:
Security, Privacy, Legal