9/13/2005
Programming the SMLC
56
CoDeSys - Controlling the machine state transitions
•
Double click on the transition above the
Estop step.
•
Select ST (Structured Text) as the
language for this transition
•
Enter MachineState = STATE_ESTOP
•
Note that this is an equality test and just an =
is used. Also note that there is no semicolon
required at the end of the test.
•
Repeat this for the transition below the Estop
step.
•
Enter MachineState <> STATE_ESTOP
•
We will enter the Estop state whenever
MachineState = STATE_ESTOP and we will
remain in this state until MachineState no
longer equals STATE_ESTOP