TheWaterboy
Lifetime Supporting Member + Moderator
I need to compare an array[128] of bools over time. I intended to just copy the array to a local array and compare them a bit later.
The problem I seem to be facing is that the source array is part of a UDT and the COP command in ST treats it as a different datatype from the local one, which I guess it is, but the array element itself is identical and I didn't expect that.
the line in ST is:
I prefer to keep this in ST for organizational reasons but other than a loop, how can I copy like this?
The problem I seem to be facing is that the source array is part of a UDT and the COP command in ST treats it as a different datatype from the local one, which I guess it is, but the array element itself is identical and I didn't expect that.
the line in ST is:
Code:
COP (UDT_TagName.BoolArray[0],ComparePrevious[0],127);