
9/13/2005
Programming the SMLC
70
CoDeSys - Programming the Estop step - Entry and Exit actions
•
Add a boolean variable
bKnifeEnabled on the output.
This variable will be TRUE
when the knife is enabled
and FALSE when the knife is
disabled.
•
Close the Entry action window and add an Exit action to the Estop step.
•
Select LD for the language.
•
Insert an EnableAxis function block, this time directly to the power rail.
•
Give it the
same instance name
as we used in the Entry action.
•
This rung will enable the
axis whenever we leave the
Estop state.