When I do more than about 10 nested function calls (or programs, or function blocks, or function block actions) in CoDeSys, I get the error 3132: System-Stack too small: NNN 'WORD' needed, 128 'WORD' available. The number NNN increases if I use the error check functions like Checkbounds, CheckDivByte, CheckRangeUnsigned, etc. (and provided something in the nested functions has something to do with arrays, dividing bytes, etc.)
Is there any obvious way to overcome this situation?
Hello,
When I do more than about 10 nested function calls (or programs, or function blocks, or function block actions) in CoDeSys, I get the error 3132: System-Stack too small: NNN 'WORD' needed, 128 'WORD' available. The number NNN increases if I use the error check functions like Checkbounds, CheckDivByte, CheckRangeUnsigned, etc. (and provided something in the nested functions has something to do with arrays, dividing bytes, etc.)
Is there any obvious way to overcome this situation?
StΓ©phane Georget
SGEORGET20130219
check for illegal exits in the program, increase stack on resources.