title: VB Application to control a PLC
body: <p>I am trying to control a Allen Bradley ControlLogix PLC from a Vb application using the vHMIABE driver from Allen Bradley and i keep getting this error :</p>
  
  <p><a href="http://imageshack.com/a/img842/4560/lqy2.png" rel="nofollow">http://imageshack.com/a/img842/4560/lqy2.png</a></p>
  
  <p>This error appear when i click on my Connection button which use this following code : </p>
  
  <pre><code>    Private Sub PLC_Connect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLC_Connect.Click
  
      'Connection to PLC
      Display.Items.Clear()
  
      With Read_Bit
          .Control_PLCType = vHMIABE.enuPLCType.ControlLogix 'PLC of ControlLogix
          .Control_PLCIPAddress = "192.168.1.112"
          .Control_SocketNumber = 44818
          .Control_ResponseTimeOut = 5000 'The communication will timeout after 5 secondes
          .Memory_Function = vHMIABE.enuPLCMemoryFunction.Connect ' Connection
  
          .Control_UseAdvancedErrorReporting = True 'Description of error messages
  
          .Control_Update() ' Make the connection
  
      End With
  
      With Write_Bit
  
          .Control_PLCType = vHMIABE.enuPLCType.ControlLogix 'PLC of ControlLogix
          .Control_PLCIPAddress = "192.168.1.112"
          .Control_SocketNumber = 44818
          .Control_ResponseTimeOut = 5000 'The communication will timeout after 5 secondes
          .Memory_Function = vHMIABE.enuPLCMemoryFunction.Connect ' Connection
  
          .Control_UseAdvancedErrorReporting = True 'Description of error messages
  
          .Control_Update() ' Make the connection
  
      End With
  
  End Sub
  </code></pre>
  
  <p>I tried to put comments as much as i can to make my code more understandable</p>
  
  <p>Somebody have any ideas ? </p>
  
  <p>Thanks so much per advance.</p>