Author Topic: Handling "missing tag name" error  (Read 2951 times)

abouhaa

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Handling "missing tag name" error
« Reply #30 on: November 13, 2018, 04:14:21 PM »
nvm the previous post, I think I got you I will try it now...

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Handling "missing tag name" error
« Reply #31 on: November 13, 2018, 04:14:53 PM »
Code: [Select]
   Private Sub EthernetIPforCLXCom1_ComError(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles EthernetIPforCLXCom1.ComError
        If e.ErrorId = 4 Then
            Me.Text = "Invalid or Missing Tag Error : " & e.ErrorMessage & "," & e.PlcAddress
            Timer1.Stop()
            Timer1.Start()
        End If
    End Sub

    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
        Me.Text = "No Error"
        Timer1.Stop()
    End Sub

So what software are you comparing this to that can report missing tags then clear the error when they are put back?

Phrog30

  • Guest
Re: Handling "missing tag name" error
« Reply #32 on: November 13, 2018, 07:52:19 PM »
somebody can mistakenly delete the routine

Seriously? How do you mistakenly delete something like that?  If they are that dumb you should show them the door!

abouhaa

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Handling "missing tag name" error
« Reply #33 on: November 14, 2018, 12:03:45 PM »
Lol you are right!
But new people tend to do mistakes all the time and you always going to have someone new on the job...