IO switches at startup/shutdown

Topics about the Hardware of Revolution Pi
Post Reply
S_wauters
Posts: 7
Joined: 02 Aug 2022, 17:37

IO switches at startup/shutdown

Post 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
u.biakoup
Posts: 212
Joined: 14 Apr 2022, 13:04

Re: IO switches at startup/shutdown

Post 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).
Post Reply