9/13/2005
Programming the SMLC
57
CoDeSys - Controlling the machine state transitions (continued)
•
Repeat this for the Homing,
Manual and Auto states
•
For each state you should
check for MachineState to
be equal to the state above
the step and not equal to
the state below the step.
MachineState = STATE_MANUAL
MachineState <> STATE_HOMING
MachineState <> STATE_MANUAL
MachineState = STATE_HOMING