Hello, I'm new here and also new to Rockwell words so please be understandable to me!
I'm currently using RSLogix 5000 v. 33.0
I'm trying to move/copy part of an array of 600 INT to and UDT (with other UDT inside) made by myself, so basically it's happening that by using the istruction COP (the only istruction found so far that is giving me some progress) the first part of the UDT fills correctly (INT and DINT) but once the UDT inside my UDT start, it's trasferring one yes and the other not (I know it's because it works 32bits but how to solve?)
Example by using COP istruction:
ARRAY --> UDT
Array.int[0] = 1 --> UDT.int[0] = 1
Array.int[1] = 2 --> UDT.DINT[1] = 2 + 3
Array.int[2] = 3 --> UDT.DINT[1] = 2 + 3
So far I'm fine but how to transfer the INT to DINT of the UDT under UDT?
Array.int[10] = 10 --> UDT.UDT.[10]INT = 10
Array.int[11] = 11 --> Get's lost because UDT.UDT.[10] is 32bit
Array.int[12] = 12 --> UDT.UDT.[11]INT = 12
Can someone help me?
I would not like to write every single COP
I'm currently using RSLogix 5000 v. 33.0
I'm trying to move/copy part of an array of 600 INT to and UDT (with other UDT inside) made by myself, so basically it's happening that by using the istruction COP (the only istruction found so far that is giving me some progress) the first part of the UDT fills correctly (INT and DINT) but once the UDT inside my UDT start, it's trasferring one yes and the other not (I know it's because it works 32bits but how to solve?)
Example by using COP istruction:
ARRAY --> UDT
Array.int[0] = 1 --> UDT.int[0] = 1
Array.int[1] = 2 --> UDT.DINT[1] = 2 + 3
Array.int[2] = 3 --> UDT.DINT[1] = 2 + 3
So far I'm fine but how to transfer the INT to DINT of the UDT under UDT?
Array.int[10] = 10 --> UDT.UDT.[10]INT = 10
Array.int[11] = 11 --> Get's lost because UDT.UDT.[10] is 32bit
Array.int[12] = 12 --> UDT.UDT.[11]INT = 12
Can someone help me?
I would not like to write every single COP