Script Code - Omron CX-SUPERVISOR - V2.0 User Manual

Table of Contents

Advertisement

OMRON
Following the user clicking once on the left mouse button.
On a condition, based on a regular expression.
To specify a trigger for the script, select an option from the Trigger Event: field.
Note:
Note:

Script Code

Script code is entered in the script code text field. To start a new line, press <Return>.
Refer to the Script Language Manual for explicit details regarding the construction and syntax of
script code.
Expressions consist of operators and operands:
Operators are relational, arithmetic, logical and include many functions.
Operands are constants or point variables.
The script language can also contain Java and Visual Basic script. Refer to the Script Language
Manual for details.
Release 2.0
If On condition is specified, a valid relational expression is required in the
Expression: field. The script is executed every time a variable included in the
expression changes value and the result of the expression is 'TRUE'. For example,
the expression $Second executes every second except when $Second is zero;
whereas $Second >= 0 executes every second. If an invalid expression is entered,
an error message is displayed when the OK pushbutton is clicked.
If On Regular Interval is specified, a valid interval is required in the Interval Time:
field in units of milliseconds. The script is started at the interval specified by this
period. If an invalid time is entered, an error message is displayed when the OK
pushbutton is clicked.
CHAPTER 9 – Animation
Page 137

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents