9/13/2005
Programming the SMLC
54
CoDeSys - Creating the machine state variable
•
In the ST code pane of the
Exit action of the Init step
enter the line shown at
right.
•
Note that := is used for an
assignment and the line
ends with a semicolon.
•
We are setting our default
machine state to ESTOP on
powerup.
•
The variable
MachineState is of type
eMACHINE_STATES.