Hi all,
Working on a project in Studio 5000 setting up a UDT to read an Input Instance from an EIP device. I have everything set up and it's transferring data correctly. However, my UDT "Data Type Size" does not make sense.
I have a total of 210 bytes of data assigned in my UDT. These are full bytes so every space is occupied. The Data Type Size is showing 212 bytes however. I understand that UDTs use a base of (4) bytes so that is why it is rounding its size up to 212 bytes. The weird part is if I add any additional element to my UDT (whether it be a bool, sint, int, or dint) the Data Type Size is increasing to 216 bytes. Even though I technically still have 2 bytes of unused data in my UDT.
Any insight? Hopefully the description makes sense.
Thanks!
Working on a project in Studio 5000 setting up a UDT to read an Input Instance from an EIP device. I have everything set up and it's transferring data correctly. However, my UDT "Data Type Size" does not make sense.
I have a total of 210 bytes of data assigned in my UDT. These are full bytes so every space is occupied. The Data Type Size is showing 212 bytes however. I understand that UDTs use a base of (4) bytes so that is why it is rounding its size up to 212 bytes. The weird part is if I add any additional element to my UDT (whether it be a bool, sint, int, or dint) the Data Type Size is increasing to 216 bytes. Even though I technically still have 2 bytes of unused data in my UDT.
Any insight? Hopefully the description makes sense.
Thanks!