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.


Topics - DarrellK

Pages: [1]
1
I am trying to read about 30 addresses from a Micro 820 to build a string to write out to a .csv file.

This works perfectly...

ops = EthernetIPforMicro800Com1.Read("Addrerss01") & "," & _
                EthernetIPforMicro800Com1.Read("Address02") & ", " & _
                EthernetIPforMicro800Com1.Read("Address03") & ", " & _
                EthernetIPforMicro800Com1.Read("Address04") & ", " & _
                EthernetIPforMicro800Com1.Read("Address05") & ", " & _
                EthernetIPforMicro800Com1.Read("Address06") & ", " & _
                EthernetIPforMicro800Com1.Read("Address07") & ", " & _
                EthernetIPforMicro800Com1.Read("Address08") & ", " & _
                EthernetIPforMicro800Com1.Read("Address09") & ", " & _
                EthernetIPforMicro800Com1.Read("Address10") & ", " & _
                EthernetIPforMicro800Com1.Read("Address11") & ", " & _
                EthernetIPforMicro800Com1.Read("Address12") & " ," & _
                EthernetIPforMicro800Com1.Read("Address13")

This does not work at all...

ops = EthernetIPforMicro800Com1.Read("Addrerss01") & "," & _
                EthernetIPforMicro800Com1.Read("Address02") & ", " & _
                EthernetIPforMicro800Com1.Read("Address03") & ", " & _
                EthernetIPforMicro800Com1.Read("Address04") & ", " & _
                EthernetIPforMicro800Com1.Read("Address05") & ", " & _
                EthernetIPforMicro800Com1.Read("Address06") & ", " & _
                EthernetIPforMicro800Com1.Read("Address07") & ", " & _
                EthernetIPforMicro800Com1.Read("Address08") & ", " & _
                EthernetIPforMicro800Com1.Read("Address09") & ", " & _
                EthernetIPforMicro800Com1.Read("Address10") & ", " & _
                EthernetIPforMicro800Com1.Read("Address11") & ", " & _
                EthernetIPforMicro800Com1.Read("Address12") & " ," & _
                EthernetIPforMicro800Com1.Read("Address13") & ", " & _
                EthernetIPforMicro800Com1.Read("Address14")

As soon as I add in the 14th call, the entire line of code faults with an unhandled exception.
MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException: 'Read Failed. Path Destination Unknown,  Status Code=5'

Is there a better way to do this?


2
Open Discussion / PLC control of which screen is displayed
« on: August 23, 2018, 08:57:03 AM »
My project will have 5 screens.  Is there a simple way to have the PLC change which screen is displayed?  I'm sure I could do this with a little VB code but I'm wondering if you already have a "no code" way to do this.

Pages: [1]