AdvancedHMI Software

General Category => Support Questions => Topic started by: Jesse on July 04, 2017, 10:18:20 PM

Title: UDTs?
Post by: Jesse on July 04, 2017, 10:18:20 PM
Will the current AdvancedHMI Controllogix driver read UDT Tag values? For example if I have a Motor AOI Named "P_2201" will it read:

P_2201.Running (Boolean)
P_2201.Status (String)
P_2201.Mode (Dint)
P_2201.FeedbackTime (Real)
Title: Re: UDTs?
Post by: Phrog30 on July 04, 2017, 10:23:56 PM
Sure it will, but you will not be able to read as a block like you could with a DINT or REAL array.
Title: Re: UDTs?
Post by: dmroeder on July 05, 2017, 09:59:57 AM
Basically what he's saying is that you can read each one of those individually.  You could do a multi-read to get the data more efficiently:

http://advancedhmi.com/forum/index.php?topic=1560.0

If you want to just read P_2201 and get all the data in one block, you will have to do work on your end.  I believe the driver will return all the values in that UDT, however it's up to you to know how the data will be packed in the reply, and you will have to write code to parse it.