9/13/2005
Programming the SMLC
73
CoDeSys - A look at the EnableAxis function block
•
Double click on the EnableAxis FB in
the POU window
•
In the variable declaration section at
the top you can see the Inputs and
Outputs of the function block defined.
•
In the body of the function block you
can see that we use instances of
MC_Reset (to clear any drive faults)
and MC_Power (to enable the axis)
•
There is more code below rung 0001
that sets the Error and ErrorID
outputs if either the Reset or the
Power blocks fail.