Hi Folks
I have made a function block that has the EN input enabled. (FBD language)
In want to run some code at the top of the function block as soon as the EN input becomes active, and only this one time, until it becomes active again.
It must happen before the rest of the code in the block runs.
What I would really like to do is generate a pulse each time the EN input comes on which will enable my code, but I cannot get this to work.
Does anybody have any ideas how to do this?
Thanks for looking.
I have made a function block that has the EN input enabled. (FBD language)
In want to run some code at the top of the function block as soon as the EN input becomes active, and only this one time, until it becomes active again.
It must happen before the rest of the code in the block runs.
What I would really like to do is generate a pulse each time the EN input comes on which will enable my code, but I cannot get this to work.
Does anybody have any ideas how to do this?
Thanks for looking.