Case Select - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

OMRON
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
expression
statementblock1
statementblock2
statementblock3
Revision 2.0
CHAPTER 4 – CX-Supervisor Script Language
The expression may be a point, or a calculation of constants and/or points that
produces a result.
One or more statements that are only performed if the preceding CASE
expression is met.
One or more statements that are only performed if the preceding CASE
expression is met.
One or more statements that are only performed if the preceding CASE
expression is met.
Description
Page 19

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents