Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

TRUE
Equal to
value 1?
FALSE
Equal to
value 2?
FALSE
Equal to
value n?
FALSE
Statement m
Additional Information
• You can use the CASE construct to build a hierarchy. The following example executes statement 12 if
the value of integer expression 1 is 1 and the value of integer expression 11 is 2.
CASE integer expression 1 OF
1 :
CASE integer expression 1 OF
1 :
statement 11;
2 :
statement 12;
ELSE
statement 1m;
END_CASE;
2 :
statement 2;
3 :
statement 3;
ELSE
statement m;
END_CASE;
• You can use more than one value at the same time. Separate values with commas. The following
example executes statement 1 if the value of the integer expression is either 1 or 2.
CASE integer expression 1 OF
1,2 :
statement 1;
3 :
statement 2;
4 :
statement 3;
ELSE
statement m;
END_CASE;

NY-series Instructions Reference Manual (W560)

TRUE
TRUE
Statement n
Statement 2
2 Instruction Descriptions
Statement 1
2
2-31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents