Manglemender
Member
Hello,
I'm looking for the best way to have different data displayed on a pop-up based on an index number. For example: Imagine that I have 10 Valves that all have the same controls and I'd like to use the same pop-up to control all 10 of them based on an index number.
In days gone by I would have defined a UDT in the PLC, made 10 instances of it and used the index number in a script to calculate pointers to the data in the PLC. I could still do this with absolute addressing but not with symbolic.
Can you multiplex a UDT? i.e. If I declared an internal tag UDT for the HMI and used the index tag to multiplex multiple UDTs in the PLC?
Would it be easier to use a faceplate based on a UDT? The same applies how do you dynamically pass it the right UDT in runtime?
Thanks in advance,
Nick
I'm looking for the best way to have different data displayed on a pop-up based on an index number. For example: Imagine that I have 10 Valves that all have the same controls and I'd like to use the same pop-up to control all 10 of them based on an index number.
In days gone by I would have defined a UDT in the PLC, made 10 instances of it and used the index number in a script to calculate pointers to the data in the PLC. I could still do this with absolute addressing but not with symbolic.
Can you multiplex a UDT? i.e. If I declared an internal tag UDT for the HMI and used the index tag to multiplex multiple UDTs in the PLC?
Would it be easier to use a faceplate based on a UDT? The same applies how do you dynamically pass it the right UDT in runtime?
Thanks in advance,
Nick