This catches the transition to the STOP state.
What parameters do I use to catch a CoDeSys 'kill'?
I searched in the CB.EVENT, CB.EVENT_CLASS and CB.EVENT_SOURCE enumerations, but cannot find anything.
Regards,
Edwin.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
All,
I want to do some emergency actions when my application is 'killed' e.g. '> sudo pkill codesys'.
Does CoDeSys provide a way to 'catch' a 'kill' event?
I found the callback library. And I tried:
This catches the transition to the STOP state.
What parameters do I use to catch a CoDeSys 'kill'?
I searched in the CB.EVENT, CB.EVENT_CLASS and CB.EVENT_SOURCE enumerations, but cannot find anything.
Regards,
Edwin.
I found these values:
Regards,
Edwin.