Is there a way to increase the stack size in Twincat 3 -
i getting stack overflow problems , can see happens introductions of new arrays. cannot find option increase stack size on soft plc (twincat) running on machine.
any appreciated
i realise little late, instead of trying increase stack size, can take steps reduce size of stack need. when calling method or function, try passing in reference existing array , using calculation. if intermediate processing isn't returned directly response, dramatically improve stack management. there 2 way manage in twincat.
the easy way create var_in_out variable pass in. works well, should not using if block calls variables other methods. other way pass in reference array , using that.
this approach work both returned , intermediate processing type issues.
Comments
Post a Comment