Hi guys,
I asked this question on the Codesys website and didn't have much success with it.
I'm looking at a way of defining arrays for real numbers.
An example of which is as follows
SampleArray : ARRAY[0..5] OF REAL :=[0.0,0.1,0.2,0.3,0.4,0.5];
That's fine for 6 values but I need to extend an array to over 1000 values is there a quicker method of assigning the values in an array without typing each values manually?
Thanks
I asked this question on the Codesys website and didn't have much success with it.
I'm looking at a way of defining arrays for real numbers.
An example of which is as follows
SampleArray : ARRAY[0..5] OF REAL :=[0.0,0.1,0.2,0.3,0.4,0.5];
That's fine for 6 values but I need to extend an array to over 1000 values is there a quicker method of assigning the values in an array without typing each values manually?
Thanks
Last edited: