Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - qmd

Pages: [1]
1
Support Questions / Re: BeginReadMultiple
« on: April 27, 2016, 12:19:42 AM »
OK thanks for your very prompt responses.

2
Support Questions / Re: BeginReadMultiple
« on: April 26, 2016, 11:02:33 PM »
Does this work on MicroLogix?

I have used your code:
Code: [Select]
        Dim addresses As New List(Of MfgControl.AdvancedHMI.Drivers.CLXAddressRead)
        Dim adr As New MfgControl.AdvancedHMI.Drivers.CLXAddressRead("DINT1")
        adr.NumberOfElements = 1

        addresses.Add(adr)
        EthernetIPforMicro800Com1.BeginReadMultiple(addresses)

And get this exception: A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll

I can connect to tags with a subscription via the visual toolbox items though.

3
Support Questions / Re: BeginReadMultiple
« on: April 26, 2016, 02:58:45 AM »
I managed to write the code for this to compile, but don't think it's correct as I am not ever getting a DataReceived event. Any idea why?
Code I used to read is:

        Dim result As New Integer

        Dim DintTags As New List(Of Drivers.CLXAddressRead)
        DintTags.Add(New Drivers.CLXAddressRead("DINT1"))
        DintTags.Add(New Drivers.CLXAddressRead("DINT2"))
        DintTags.Add(New Drivers.CLXAddressRead("DINT3"))
        DintTags.Add(New Drivers.CLXAddressRead("DINT4"))
        DintTags.Add(New Drivers.CLXAddressRead("DINT5"))
        result = EthernetIPforMicro800Com1.BeginReadMultiple(DintTags)
        Console.WriteLine("result: " & result)

4
Support Questions / BeginReadMultiple
« on: April 26, 2016, 01:59:57 AM »
Hi,

Just hoping to see a sample of how to use BeginReadMultiple()
Trying to work out how I can build my list of tags to read.

Thanks!

Pages: [1]