9/13/2005
Programming the SMLC
71
CoDeSys - Programming the Estop step - Estop step code
•
When the EstopOK input is true and the operator presses the Reset pushbutton we
will clear the global error flag and set the machine state to STATE_HOMING
•
In the Exit action we will enable the axis and control will pass to the Homing step of
the SFC.
•
Close the Exit action window and double click on the body of the Estop step.
•
Select LD for the language.
•
Edit the rung to appear as below. Note that we are creating a new global boolean
variable gbResetPB and we have inserted an MC_ClearErrorFlag function block as
well as a Box with EN that we have configured as a MOVE.