![Omron SYSMAC CX-Programmer 9 Operation Manual Download Page 179](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-9/sysmac-cx-programmer-9_operation-manual_744241179.webp)
153
Statement Descriptions
Section 5-5
■
Processing Flow Chart
■
Usage
Use the CASE statement to execute different operations depending on speci-
fied integer values.
■
Description
If the
integer_equation
matches
integer_equation_value_n
,
expression_n
is
executed.
if the
integer_equation
does not match any of
integer_equation_value_n
,
expression_m
is executed.
■
Precautions
• CASE must be used together with END_CASE.
• The result of the
integer_equation
must be in integer format (INT, DINT,
LINT, UINT, UDINT, or ULINT).
• Statements that can be used in
expression_
@
are assignment state-
ments, IF, CASE, FOR, WHILE, or REPEAT.
• Multiple statements can be executed in
expression_
@
. Be sure to use a
semicolon (;) delimiter between multiple statements in an
expression
.
• Variables in integer format (INT, DINT, LINT, UINT, UDINT, or ULINT), or
equations that return integer values can be specified in the
integer_equation
.
• When OR logic is used for multiple integers in the
integer_equation_value_n
, separate the numerical value using a comma
delimiter. To specify a sequence of integers, use two periods (..) as delim-
iters between the first and last integers.
Yes
Yes
Yes
No
No
No
Expression m
Expression n
Expression 2
Expression 1
Same as
selected
value 1?
Same as
selected
value 2?
Same as
selected
value n?
Summary of Contents for SYSMAC CX-Programmer 9
Page 2: ......
Page 4: ...iv ...
Page 6: ...vi ...
Page 8: ......
Page 16: ...xvi ...
Page 20: ...xx ...
Page 26: ...xxvi Application Precautions 4 ...
Page 27: ...Part 1 Function Blocks ...
Page 28: ......
Page 154: ...128 Procedures Section 3 2 ...
Page 155: ...Part 2 Structured Text ST ...
Page 156: ......
Page 160: ...134 CX Programmer Specifications Section 4 2 ...
Page 206: ...180 Procedures Section 6 1 ...
Page 208: ...182 System defined external variables supported in function blocks Appendix A ...
Page 230: ...204 Revision History ...
Page 231: ......