1
Support Questions / Re: Unknown Code -34
« on: April 26, 2016, 08:19:09 PM »
gotcha - thanks Archie
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.
Unknown Code -34
at MfgControl.AdvancedHMI.Drivers.CIP.ForwardOpen(Int32 sendSequence)
at MfgControl.AdvancedHMI.Drivers.CIP.SendConnectedMessage(Int32 serviceCode, EPath path, Byte[] data, Int32 sequenceNumber, Int64 ownerObjectID)
at MfgControl.AdvancedHMI.Drivers.CIPforCLX.WriteTagValue(CLXAddress tag, String[] value, Int32 numberOfElements, Int32 sequenceNumber, Int64 OwnerObjectID)
at MfgControl.AdvancedHMI.Drivers.EthernetIPforCLX.BeginWrite(String startAddress, Int32 numberOfElements, String[] dataToWrite)
at MfgControl.AdvancedHMI.Drivers.EthernetIPforCLX.Write(String startAddress, Int32 numberOfElements, String[] dataToWrite)
at MfgControl.AdvancedHMI.Drivers.EthernetIPforCLX.Write(String startAddress, Int32 dataToWrite)
The Path Segment Error is usually an invalid tag. Are you using all controller scope tags?
Which version of AdvancedHMI are you using?
I won't have access to 2 ControlLogix PLCs for about a week and half, so I can give you some various things to try so we can try to figure out the problem. The first place to start is using Wireshark. If you run a Wireshark packet capture and send it directly to me at the support at advancedhmi email, I will be able to see much more of what is happening.
'EthernetIPforCLXCom1
'
Me.EthernetIPforCLXCom1.CIPConnectionSize = 508
Me.EthernetIPforCLXCom1.DisableMultiServiceRequest = False
Me.EthernetIPforCLXCom1.DisableSubscriptions = False
Me.EthernetIPforCLXCom1.IPAddress = "192.168.0.81"
Me.EthernetIPforCLXCom1.PollRateOverride = 500
Me.EthernetIPforCLXCom1.Port = 44818
Me.EthernetIPforCLXCom1.ProcessorSlot = 0
'
'PilotLight1
'
Me.PilotLight1.Blink = False
Me.PilotLight1.CommComponent = Me.EthernetIPforCLXCom1
Me.PilotLight1.LegendPlate = MfgControl.AdvancedHMI.Controls.PilotLight.LegendPlates.Large
Me.PilotLight1.LightColor = MfgControl.AdvancedHMI.Controls.PilotLight.LightColors.Green
Me.PilotLight1.LightColorOff = MfgControl.AdvancedHMI.Controls.PilotLight.LightColors.Red
Me.PilotLight1.Location = New System.Drawing.Point(163, 312)
Me.PilotLight1.Name = "PilotLight1"
Me.PilotLight1.OutputType = MfgControl.AdvancedHMI.Controls.OutputType.MomentarySet
Me.PilotLight1.PLCAddressClick = ""
Me.PilotLight1.PLCAddressText = ""
Me.PilotLight1.PLCAddressValue = "Test_Bool"
Me.PilotLight1.PLCAddressVisible = ""
Me.PilotLight1.Size = New System.Drawing.Size(75, 110)
Me.PilotLight1.TabIndex = 45
Me.PilotLight1.Text = "PilotLight1"
Me.PilotLight1.Value = False
'
'PilotLight2
'
Me.PilotLight2.Blink = False
Me.PilotLight2.CommComponent = Me.EthernetIPforCLXCom2
Me.PilotLight2.LegendPlate = MfgControl.AdvancedHMI.Controls.PilotLight.LegendPlates.Large
Me.PilotLight2.LightColor = MfgControl.AdvancedHMI.Controls.PilotLight.LightColors.Green
Me.PilotLight2.LightColorOff = MfgControl.AdvancedHMI.Controls.PilotLight.LightColors.White
Me.PilotLight2.Location = New System.Drawing.Point(459, 312)
Me.PilotLight2.Name = "PilotLight2"
Me.PilotLight2.OutputType = MfgControl.AdvancedHMI.Controls.OutputType.MomentarySet
Me.PilotLight2.PLCAddressClick = ""
Me.PilotLight2.PLCAddressText = ""
Me.PilotLight2.PLCAddressValue = "Sorting_Room_Puffers_Auto_En"
Me.PilotLight2.PLCAddressVisible = ""
Me.PilotLight2.Size = New System.Drawing.Size(75, 110)
Me.PilotLight2.TabIndex = 46
Me.PilotLight2.Text = "PilotLight2"
Me.PilotLight2.Value = False
'
'EthernetIPforCLXCom2
'
Me.EthernetIPforCLXCom2.CIPConnectionSize = 508
Me.EthernetIPforCLXCom2.DisableMultiServiceRequest = False
Me.EthernetIPforCLXCom2.DisableSubscriptions = False
Me.EthernetIPforCLXCom2.IPAddress = "192.168.1.8"
Me.EthernetIPforCLXCom2.PollRateOverride = 500
Me.EthernetIPforCLXCom2.Port = 44818
Me.EthernetIPforCLXCom2.ProcessorSlot = 0
Private Sub EthernetIPforCLXCom1_ComError(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles EthernetIPforCLXCom1.ComError
If (e.ErrorMessage.StartsWith("Could not connect to ")) Then
Diagnostics.Debug.WriteLine("CLXCom1_ComError " & e.ErrorMessage & " but should connect to " & CType(sender, AdvancedHMIDrivers.EthernetIPforCLXCom).IPAddress)
Else
Diagnostics.Debug.WriteLine("CLXCom1_ComError " & e.ErrorMessage)
End If
End Sub
Private Sub EthernetIPforCLXCom2_ComError(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles EthernetIPforCLXCom2.ComError
If (e.ErrorMessage.StartsWith("Could not connect to ")) Then
Diagnostics.Debug.WriteLine("CLXCom2_ComError " & e.ErrorMessage & " but should connect to " & CType(sender, AdvancedHMIDrivers.EthernetIPforCLXCom).IPAddress)
Else
Diagnostics.Debug.WriteLine("CLXCom2_ComError " & e.ErrorMessage)
End If
End Sub
Private Sub EthernetIPforCLXCom1_ConnectionEstablished(sender As Object, e As EventArgs) Handles EthernetIPforCLXCom1.ConnectionEstablished
Diagnostics.Debug.WriteLine("CLXCom1 connected")
End Sub
Private Sub EthernetIPforCLXCom2_ConnectionEstablished(sender As Object, e As EventArgs) Handles EthernetIPforCLXCom2.ConnectionEstablished
Diagnostics.Debug.WriteLine("CLXCom2 connected")
End Sub
CLXCom2_ComError Could not connect to 192.168.0.81, port 44818. Timed out but should connect to 192.168.1.8
CLXCom1_ComError Could not connect to 192.168.0.81, port 44818. Timed out but should connect to 192.168.0.81
CLXCom2_ComError 192.168.0.81 An invalid argument was supplied
CLXCom1_ComError 192.168.0.81 An invalid argument was supplied
CLXCom1_ComError Could not connect to 192.168.1.8, port 44818. Timed out but should connect to 192.168.0.81
CLXCom2_ComError Could not connect to 192.168.1.8, port 44818. Timed out but should connect to 192.168.1.8
CLXCom1 connected
CLXCom2 connected
CLXCom1_ComError Unknown Code 256
CLXCom2_ComError Unknown Code 256
CLXCom1_ComError CIP - Path Segment Error (Invalid Tag Name)
CLXCom1_ComError CIP - Path Segment Error (Invalid Tag Name)
CLXCom1_ComError CIP - Path Segment Error (Invalid Tag Name)
.... continuing
CLXCom2_ComError No Response from PLC(21)
CLXCom1_ComError No Response from PLC(21)
CLXCom2_ComError No Response from PLC(22)
CLXCom1_ComError No Response from PLC(22)
CLXCom2 connected
CLXCom1 connected
CLXCom1_ComError CIP - Path Segment Error (Invalid Tag Name)
CLXCom1_ComError CIP - Path Segment Error (Invalid Tag Name)
CLXCom1_ComError CIP - Path Segment Error (Invalid Tag Name)
CLXCom1_ComError CIP - Path Segment Error (Invalid Tag Name)
...