AdvancedHMI Software

General Category => Support Questions => Topic started by: timryder on November 02, 2017, 02:55:15 PM

Title: DataSubscriber2 Number of Elements
Post by: timryder on November 02, 2017, 02:55:15 PM
So I have a machine which is across the country and I'm trying to do some upgrades to the HMI code so I don't have the machine to test it live and I want to get as much done as I can before going there.

That being said...  it's a Micro850 PLC from AB and I have a DataSubscriber2 component and I'd like to return a REAL array of 32 items.

So I add the Tag to the Members and then under the "Number of Elements" I say 32.
When this returns... how do I parse them individually?  Could you offer me some sample logic to parse a 32 element array vb.net?
Title: Re: DataSubscriber2 Number of Elements
Post by: Phrog30 on November 02, 2017, 03:40:47 PM
Instead of e.values(0), it would be (1), (2), etc. or you could loop through with "i" to the length of the datasubscriber.