
Publication LOGIX-AP008B-EN-P - June 2008 105
Conversion of Typical Program Structures Chapter 4
The variable #state contains the state number. The Jump List instruction
causes execution to jump to the label relevant to the value of #state. If a
transition condition from that state is True, the new state value is loaded in the
accumulator and execution jumps to label “next”, where the new state number
is transferred to variable #state.
Logix State Machine in Structured Text
Here is the same state machine in Structured Text, using the CASE statement.
As with the other ST examples, it would be hard to write a clearer description
than the code itself.
Commentaires sur ces manuels