9/13/2005
Programming the SMLC
76
CoDeSys - Programming the Homing state - the Entry Action
•
There is one little ‘trick’ we’re
going to do with our home brew
function blocks. We’re going to
use the special SFCReset
variable to force the function
block back to its Init step.
•
We’re going to do this in the
Entry action to the Homing
state.
•
We set the Execute input FALSE and the SFCReset input TRUE. This forces the
SFC to its Init step and since Execute is FALSE it will remain in this step.
•
We also reset a boolean flag bExecute. We’ll examine this more closely inside the
state.