I'm new to Structured Text programming and I'm currently working on TwinCat3.
I would like to specify array sizes inside my code without polluting the global namespace with additional constants. I think it would be useful, especially in creating a library.
I can't find a solution to this problem. In case there isn't one, can you tell me the best practice to solve this problem? The only solutions I see are:
- use global variables
- allocate in the heap