OMRON
CHAPTER 4
CX-Supervisor Script Language
This chapter describes the CX-Supervisor script language syntax. It provides a detailed definition of
the syntax of CX-Supervisor scripts that drive project, page and object actions, and CX-Supervisor
expressions as used by objects and scripts. In conjunction with the script functions and methods
described in Chapter 6, the CX-Supervisor script language provides a very powerful, compiled, fast
and full featured programming language.
The following table describes the script language syntax at a glance.
Function Name
&, |, ^, <<, >>
(objects)
(points)
+, -, *, /, %, =, ++, --
<, >, <=, >=, ==, !=
AND
CALL
DO LOOP WHILE UNTIL
EXIT DO
FALSE
FOR TO STEP NEXT EXIT
FOR
IFTHEN ELSE\ELSEIF
ENDIF
OR
NOT
REM
RETURN
SELECT CASE/END
SELECT
TRUE
The 'Type' column refers to the types of script and expression the function can be applied to. 'All'
refers to both expressions and scripts. 'Scr' refers to scripts only. 'OP' refers to Object and Page
scripts only.
Revision 2.0
CHAPTER 4 – CX-Supervisor Script Language
Function Type
bitwise operators
statement
statement
arithmetic operators
relational operators
logical operators
statement
statement
Boolean state
statement
statement
logical operators
logical operators
statement
statement
statement
Boolean state
Type
Remarks
All
Applies bitwise expressions
OP
Specifies an object name for
modification or test.
All
Specifies a point name for modification
or test.
All
Applies arithmetic expressions.
All
Applies relational expressions.
All
Applies logical expressions.
All
Call a subroutine
Scr
Script segment to be repeated
Scr
Applies Boolean expression.
Scr
Script segment to be repeated
Scr
Applies a test to a script.
All
Applies logical expressions.
All
Applies logical expressions.
Scr
Remarks on line or lines of script.
Scr
Stops sequential execution of script.
Scr
Applied to complex tests.
Scr
Applies Boolean expression.
Page 9
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?
Questions and answers