Page 1 of 1

CodeSys Service Exited

Posted: 22 Jan 2019, 15:40
by Cursedmilk
Hello,

I may be doing something wrong during the install but I have followed https://revolution.kunbus.com/tutorials ... einbinden/ to the letter and still cannot get anywhere.

I can install the package onto the RevPi and can start the service, however, in system info from CodeSys I get this info (See first attachment) and on the Pi I can see the service going from running to exited after about 45 seconds after service start

I can make it run again for another 45-60 seconds by running a sudo /etc/init.d/codesyscontrol start but after that it will become exited again and disconnect me from being online with codesys (See second attachment)

Any help would be greatly appreciated.

Kind Regards,

Sam

Re: CodeSys Service Exited

Posted: 29 Jan 2019, 16:44
by Cursedmilk
Any input on this issue? Disappointingly, it makes the RevPi useless to me.

Re: CodeSys Service Exited

Posted: 30 Jan 2019, 10:17
by dirk
Dear Cursedmilk, please excuse the long response delay. The Codesys runtime is a 3rd party software so we here have no deep knowledge what could be the root cause of the error.
First please make a backup of your system so that your license and other data is safe.
Then flash the RevPi Stretch Image
The Video tutorial Revolution Pi : Tutorial 01 EN - Creation of an image shows how this works.
After you have a fresh system again setup Codesys.

Re: CodeSys Service Exited

Posted: 01 Feb 2019, 11:56
by Cursedmilk
Hi Dirk,

Very interestingly, the Stretch image seems to work correctly with the CodeSys package...

Very strange!

Thanks for your help

Kind Regards,

Sam Goldsmith

Re: CodeSys Service Exited

Posted: 27 Mar 2019, 02:24
by nirvana_xun
On the Codesys official site, it says that codesys combining raspberry PI can only achieve 50~400us task jitter, that is not tolerable for an industry application. How is your application with PI, can it achieve realtime task? could you let me know the result, thanks.

Re: CodeSys Service Exited

Posted: 03 May 2019, 10:10
by dirk
Dear nirvana_xun, have a look at this post which explains how to set RT priority for Codesys.