Rockwell-automation Logix5000 Controllers Structured Text Programming Bedienungsanleitung Seite 26

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 40
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 25
26 Publication 1756-PM007D-EN-P - November 2012
Chapter 1 Program Structured Text
The syntax for entering the selector values is:
The CASE construct is similar to a switch statement in the C or C++
programming languages. However, with the CASE construct the controller
executes only the statements that are associated with the first matching
selector value. Execution always breaks after the statements of that selector
and goes to the END_CASE statement.
Arithmetic Status Flags: Not affected
Fault Conditions: None
Example
optional
ELSE
<statement>;
.
.
.
Statements to execute when
numeric_expression ¼ any
selector
END_CASE;
When selector is Enter
One value value: statement
Multiple, distinct values value1, value2, valueN : <statement>
Use a comma (,) to separate each value.
A range of values value1...valueN : <statement>
Use two periods (..) to identify the range.
Distinct values plus a range
of values
valuea, valueb, value1...valueN : <statement>
Seitenansicht 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 39 40

Kommentare zu diesen Handbüchern

Keine Kommentare