MoraleC2
Member
Hello,
I will try to be as succinct as possible, and hopefully this will make some sense. Say, in Logix Designer, I have a generic Ethernet module with a 220-SINT array, and want to copy a UDT with discretely-defined REAL values to a section of the array. The UDT is the same size as the Ethernet module's output page, but obviously it is not the same type, so using COP is out of the question. Also, I try to make my code as modular as possible, so I would like to be able to dynamically select both the starting address and the number of bytes to copy.
I figure I could do this by using a generic array instead of a UDT and then alias the elements to give them the symbols I want (or alias the Ethernet interface directly), but that kind of defeats the purpose of my modular approach. Is there a better way to go about this? I am used to programming with Step7, where you can indirectly address complex data structures and copy the individual bytes or words anywhere, regardless of the type. Can something similar be done in Studio 5000 V21 with an AB1756 processor?
Thank you for your time.
I will try to be as succinct as possible, and hopefully this will make some sense. Say, in Logix Designer, I have a generic Ethernet module with a 220-SINT array, and want to copy a UDT with discretely-defined REAL values to a section of the array. The UDT is the same size as the Ethernet module's output page, but obviously it is not the same type, so using COP is out of the question. Also, I try to make my code as modular as possible, so I would like to be able to dynamically select both the starting address and the number of bytes to copy.
I figure I could do this by using a generic array instead of a UDT and then alias the elements to give them the symbols I want (or alias the Ethernet interface directly), but that kind of defeats the purpose of my modular approach. Is there a better way to go about this? I am used to programming with Step7, where you can indirectly address complex data structures and copy the individual bytes or words anywhere, regardless of the type. Can something similar be done in Studio 5000 V21 with an AB1756 processor?
Thank you for your time.