Hi,
I have a small issue in a project where I am amending a dynamic list within OA but attempting to write the new / delete the old values and write that to an Array in TIA.
I have it where the values can be amended and this can be viewed in both the DB in TIA and the dB in OA but when trying to add a new row or remove a row, the functionality I have currently doesn't appear to support this.
The set up at present is that I have 2 fixed length Arrays in TIA set as XValue = Array[1, 1..200] and YValue = Array[1, 1..200] of type Real.
In OA , the datapoint for X is pointed at XValue and the datapoint for Y is pointed at YValue.
There are 2 buttons set up for a panel to add above and add below and also a delete row button.
Can anyone help ? I would ideally like to just have 1 array in TIA as a 2D array also
A
Dynamic Floats and Arrays
- amichon
- Posts:93
- Joined: Sat May 17, 2014 3:49 pm
Re: Dynamic Floats and Arrays
Hi Adam,
There is also a parameter named "Item length" in the S7+ periphery address. This parameter defines the length of the array in the PLC. You can't change dynamically the size of the array. Maybe it's possible but it's a quite complex.
In my opinion, set both arrays X and Y, and set another parameter to define the count of values to take in account in the PLC. In WinCC OA set to zero the values you want to remove but work with a dyn_array with a constant size.
There is also a parameter named "Item length" in the S7+ periphery address. This parameter defines the length of the array in the PLC. You can't change dynamically the size of the array. Maybe it's possible but it's a quite complex.
In my opinion, set both arrays X and Y, and set another parameter to define the count of values to take in account in the PLC. In WinCC OA set to zero the values you want to remove but work with a dyn_array with a constant size.