12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

676 Structured Text ProgrammingoptionalELSEEND_CASE;;...statements to execute whennumeric_expression ≠ anyselectorSee the table on the next page for valid selector values.The syntax for entering the selector values is:When Selector Isone valuemultiple, distinct valuesEntervalue: statementvalue1, value2, valueN : a range of valuesUse a comma (,) to separate each value.value1..valueN : distinct values plus a rangeof valuesUse two periods (..) to identify the range.valuea, valueb, value1..valueN : The CASE construct is similar to a switch statement in the C or C++programming languages. However, with the CASE construct thecontroller executes only the statements that are associated with thefirst matching selector value. Execution always breaks after thestatements of that selector and goes to the END_CASE statement.Arithmetic Status Flags:Fault Conditions:not affectednonePublication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!