CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

program debug: infinite loop, negative sqrt,...
https://forum.codesys.com/viewtopic.php?f=2&t=8391
Page 1 of 1

Author:  fleaplc [ Tue Dec 12, 2017 10:32 pm ]
Post subject:  program debug: infinite loop, negative sqrt,...

Is there in Codesys something like in Simatic "cpu stacks"? a log that show the cause of CPU stop (like infinite loop, negative square root,...)
I had infinite loop caused by a function in a library, but call stack was empty and not warning message appear..(I'm using WAGO PFC 750-8202)

Author:  Edwin Schwellinger [ Fri Dec 15, 2017 2:12 pm ]
Post subject:  Re: program debug: infinite loop, negative sqrt,...

Hi,
which CODESYS Version?
You are posting in the V2.3 section is it really CODESYS V2.3

BR
Edwin

Author:  fleaplc [ Tue Dec 19, 2017 3:28 pm ]
Post subject:  Re: program debug: infinite loop, negative sqrt,...

yes, 2.3.9.53

Author:  Edwin Schwellinger [ Fri Dec 22, 2017 10:07 am ]
Post subject:  Re: program debug: infinite loop, negative sqrt,...

Hi,
Quote:
I'm using WAGO PFC 750-8202

Quote:
like infinite loop, negative square root


hm.. in CODESYS V2.3 there is only the watchdog (on the task) which you could activate to prevent endless loop detection
sure you could add the implicit check functions to check for 'Division by zero' or check bounds etc... check the help for this.

Sure in CODESYS V3 or eCOCKPIT there are additional mechanism , plcload supervision (for the whole plc not only for one Task a watchdog)
impilcit check functions etc

Anyway I would recommend to use CODESYS V3 no matter if you use CODESYS V3 or eCockbit.
There are so many Features available - which are from my Point of view mandatory to have - plc logger - html5 webvisu and many more
- all Ethernet based fieldbus / ethercat ..

BR
Edwin

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/