Author Topic: ver 3.84 - EthernetIPforPLCSLCMicroCom1-failed to get processor type  (Read 2169 times)

Darrell

  • Full Member
  • ***
  • Posts: 198
  • Electrician / PLC Technician
    • View Profile
built a new HMI from Scratch with ver 3.84  - getting  -  failed to get processor type -  on my buttons etc. .  could there be a bug in the   EthernetIPforPLCSLCMicroCom1 driver . connected to a MicroLogix 1400 switched back to ver 3.80 and its OK.

Darrell

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: ver 3.84 - EthernetIPforPLCSLCMicroCom1-failed to get processor type
« Reply #1 on: November 27, 2014, 12:42:25 PM »
Go to line 125 in AllenBradleyPCCC.vb  and change the code to this:
Code: [Select]
    Public Sub New()
        MyBase.New()

        ObjectIDs += 1
        MyObjectID = ObjectIDs

        SubscriptionPollTimer = New System.Timers.Timer
        SubscriptionPollTimer.Enabled = False
        AddHandler SubscriptionPollTimer.Elapsed, AddressOf PollUpdate
        SubscriptionPollTimer.Interval = 500
    End Sub

Darrell

  • Full Member
  • ***
  • Posts: 198
  • Electrician / PLC Technician
    • View Profile
Re: ver 3.84 - EthernetIPforPLCSLCMicroCom1-failed to get processor type
« Reply #2 on: November 27, 2014, 01:29:59 PM »
did the trick ,  Thanks Archie

Darrell

  • Full Member
  • ***
  • Posts: 198
  • Electrician / PLC Technician
    • View Profile
Re: ver 3.84 - EthernetIPforPLCSLCMicroCom1-failed to get processor type
« Reply #3 on: November 29, 2014, 09:53:56 PM »
I seem to have a similar  problem on page 2 , only it doesn't seen to be polling the PLC at all.   tried adding a 2nd PLC driver and that did not work,

Public Class Page2


    '*******************************************************************************
    '* Stop polling when the form is not visible in order to reduce communications
    '*******************************************************************************
    Private Sub Form_VisibleChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.VisibleChanged
        If components IsNot Nothing Then
            Dim drv As AdvancedHMIDrivers.IComComponent
            '*****************************
            '* Search for comm components
            '*****************************
            For i As Integer = 0 To components.Components.Count - 1
                If components.Components(i).GetType.GetInterface("AdvancedHMIDrivers.IComComponent") IsNot Nothing Then
                    drv = components.Components.Item(i)
                    '* Stop/Start polling based on form visibility
                    drv.DisableSubscriptions = Not Me.Visible
                End If
            Next
        End If
    End Sub


    Private Sub ReturnToMainButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        MainForm.Show()
        Me.Hide()
    End Sub

    Private Sub NumericSevenSegment1_Click(sender As System.Object, e As System.EventArgs) Handles NumericSevenSegment1.Click

    End Sub

    Private Sub Page2_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub NumericSevenSegment2_Click(sender As System.Object, e As System.EventArgs) Handles NumericSevenSegment2.Click

    End Sub
End Class

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: ver 3.84 - EthernetIPforPLCSLCMicroCom1-failed to get processor type
« Reply #4 on: November 30, 2014, 09:10:32 AM »
I posted a version 3.85 that should fix this problem.