Basic instructions
8.8 Program control operations
S7-1200 Programmable controller
318 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 8- 155 Elements of the CASE statement
"ValueList": Statement[; Statement, ...]
"ValueList": Statement[; Statement, ...]
[ELSE
Else-statement[; Else-statement, ...]]
The CASE statement executes one of several
groups of statements, depending on the value
of an expression.
Table 8- 156 Parameters
Required. Any numeric expression of data type Int
"ValueList" Required. A single value or a comma-separated list of values or ranges of values. (Use two
periods to define a range of values: 2..8) The following example illustrates the different vari-
ants of the value list:
1: Statement_A;
2, 4: Statement _B;
Statement Required. One or more statements that are executed when "Test_Value" matches any value
Else-statement Optional. One or more statements that are executed if no match with a value of the "Val-