![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212022.webp)
OMRON
CHAPTER 4 – CX-Supervisor Script Language
Revision 2.0
Page 9
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
Function Type
Type
Remarks
&, |, ^, <<, >>
bitwise operators
All
Applies bitwise expressions
(objects) statement
OP
Specifies an object name for
modification or test.
(points) statement
All
Specifies a point name for modification
or test.
+, -, *, /, %, =, ++, --
arithmetic operators
All
Applies arithmetic expressions.
<, >, <=, >=, ==, !=
relational operators
All
Applies relational expressions.
AND
logical operators
All
Applies logical expressions.
CALL statement
All
Call
a
subroutine
DO LOOP WHILE UNTIL
EXIT DO
statement
Scr
Script segment to be repeated
FALSE
Boolean state
Scr
Applies Boolean expression.
FOR TO STEP NEXT EXIT
FOR
statement
Scr
Script segment to be repeated
IFTHEN ELSE\ELSEIF
ENDIF
statement
Scr
Applies a test to a script.
OR
logical operators
All
Applies logical expressions.
NOT
logical operators
All
Applies logical expressions.
REM
statement
Scr
Remarks on line or lines of script.
RETURN
statement
Scr
Stops sequential execution of script.
SELECT CASE/END
SELECT
statement
Scr
Applied to complex tests.
TRUE
Boolean state
Scr
Applies Boolean expression.
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.
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...