g.mccormick
Lifetime Supporting Member
I want to create an AOI to take modbus data and put it together as needed. The data is going to be coming from an RTA gateway and will be 32 16-bit words. Some of the words will need to be combined to form floats and DINTS and some will be holding STRING information. This data is all from some natural gas meters of which i have 5. I could just strong-arm this work and do 5X copies and paste of the same logic, but I thought creating an AOI would be better.
Is there a way that I can pass the the data into/out of the AOI easier than specifing everything line by line? BY that I mean, I would like to only have one in and one output in the calling arguments. The input being the base name of the array or first element , Meter1ArrayData[0] for insance. The output argument would be the basename of a UDT that I want to hold all of the data. Meter1_Info for instance.
Meter1_Info will have elements such as:
.FlowRate
.TotalFlow
.FullScale
.SerialNumber
etc
etc.
Is there a way that I can pass the the data into/out of the AOI easier than specifing everything line by line? BY that I mean, I would like to only have one in and one output in the calling arguments. The input being the base name of the array or first element , Meter1ArrayData[0] for insance. The output argument would be the basename of a UDT that I want to hold all of the data. Meter1_Info for instance.
Meter1_Info will have elements such as:
.FlowRate
.TotalFlow
.FullScale
.SerialNumber
etc
etc.