OMRON
CHAPTER 4 – CX-Supervisor Script Language
Revision 2.0
Page 19
These two examples are identical. The use of the ELSEIF statement combines the ELSE statement
and the IF/ENDIF statements for brevity. It is acceptable to have more than one ELSEIF statement in
an IF THEN ELSE/ELSEIF ENDIF construct.
References
Refer to chapter 4, Punctuation
for details of the use of indentation.
Case Select
Syntax
SELECT CASE expression
CASE expression
statementblock1
CASE expression
statementblock2
CASE expression
statementblock3
END SELECT
or
SELECT CASE expression
CASE expression
statementblock1
CASE expression
statementblock2
CASE ELSE
statementblock3
END SELECT
Remarks
Argument Description
expression
The
expression
may be a point, or a calculation of constants and/or points that
produces a result.
statementblock1
One or more statements that are only performed if the preceding CASE
expression is met.
statementblock2
One or more statements that are only performed if the preceding CASE
expression is met.
statementblock3
One or more statements that are only performed if the preceding CASE
expression is met.
Содержание 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...