Page 1 of 1

IO switches at startup/shutdown

Posted: 03 Aug 2022, 16:19
by S_wauters
I am using codesys on the revpi connect.
Last thing i did was test the shutdown function trough SysProcessExecuteCommand and this works now.
Only problem i have is that the io is switching multiple times during shutdown which makes my cylinders move.
obviously this is unwanted and in some cases even dangerous. The switching from on to off is expected but not on/off/on/off/on/off

What is causing this behavior and what would be the correct way to solve this?

my setup is:
-revpi connect
-revpi DIO ( left side )
-codesys 3.5sp17

Re: IO switches at startup/shutdown

Posted: 08 Aug 2022, 13:09
by u.biakoup
My first idea would be to try a minimal application (e.g. only one valve + shutdown logic) to see if the problem persists. If so, the next thing to check is if another application is writing to the process image (e.g. revpipyload).