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 - DarrellK

Pages: [1]
1
Never mind.   :-[
I figured this out.  It was a simple typo of the address in the PLC.  This is the error you will get if the address in the VB code does not match the address in the PLC.  I found it by changing my code to this...

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

It threw the error on just the wrong address instead of the entire command.
Thought I found some weird limitation.

2
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?


3
Open Discussion / Re: PLC control of which screen is displayed
« on: August 23, 2018, 12:21:50 PM »
OK, this seems to be working like you say.  It's similar to what I was thinking of doing.  Just to be clear, it seems like I need to put a DataSubscriber on each screen to read the PLC address regardless of what screen is currently showing.  No problem there.

Now the other direction.  How would you have the PLC know what screen is currently displayed?

4
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]