I have a udt made up of a few dint and stings. I built an array using this udt and I'm looking to figure out how to set all the dints in the array to zero and empty all the stings.
The absolute easiest way, is just create a new instance of the UDT (which will then be blank/zeroed) and CPY it over any other instance you want to be zeroed out.
The only way I could get it to work was to copy my zero/blank udt to one udt in the array and then index my array and jmp to the label at the beginning of my rung. I do this for each array element.
Its looking for the source to be an element in the udt and not the udt as a whole. Once I select an element the error goes away but I want to take the souce udt and fill every element in the array with it. The source and destination udts are the same type. The only difference is the destination is an array of 100 and the source isn't in an array.