downrangefuture
Member
I saw that you can set an input/output type on a DFB to "ANY_ARRAY_XXX" where x is the data type. So I'm assuming that lets you pass an array of any size. Great. I can also set this to my output. Also great.
But is there any way to dynamically set the array size at run time? Structured Text normally allows:
VAR
someArray: ARRAY[x..y] OF DINT
END_VAR
but VAR seems to only throw a "syntax error" when I use it.
Is this possible on Modicon/Schinder? Allen Bradley?
Can I just program in C++ or Java and compile it on the PLC somehow? (JK. I know you can't).
But is there any way to dynamically set the array size at run time? Structured Text normally allows:
VAR
someArray: ARRAY[x..y] OF DINT
END_VAR
but VAR seems to only throw a "syntax error" when I use it.
Is this possible on Modicon/Schinder? Allen Bradley?
Can I just program in C++ or Java and compile it on the PLC somehow? (JK. I know you can't).