SWTB_Banner_Left_LogoOnly

INGEAR.NET.ABLink
Read Tag

clearpixel

SWTB_6Button_BlueLine

.NET Winforms Application
How to Read A Tag

This example was built using Visual Studio 2003, so your .NET environment may
be a little different. But the concept remains the same.

  1. Create a new .NET project.
  2. Add in a reference to the INGEAR.NET.ABLink component.

  3. Create a text box on your form.
  4. Create a button on the form, and go to the code routine that handles the
     "OnClick" event.
  5. Add in the following lines of code (changing the IP address, CPU, Device,
    and and Tag Name as needed):

    Dim m_nResult As Integer

    Dim ignController As New _
      ABLink.Controller "64.132.42.22")
    ignController.CPUType = _
      ABLink.Controller.CPU.MLC
    ignController.DriverType = _
      ABLink.Controller.Driver.NETENI

    Dim ignTag As New ABLink.Tag("N7:0")

    m_nResult = ignController.ReadTag(ignTag)
    TextBox1.Text = _
      String.Format("{0}", ignTag.Value)

    samplecode

  6. Compile and Run
    results

Of course, you will need to check for result codes from the Connect and ReadTag methods, but you get the idea. A few lines of code and you've got data!

Need more examples? How about entire sample projects? Visit our
Software Toolbox CodeCenter for a list of sample code using
the INGEAR.NET.ABLink component.

 

 

 | HOME | PRODUCTS | FREE TRIAL SOFTWARE | SUPPORT & TUTORIALS | PRODUCT NEWS | PURCHASING

P: 1-888-665-3678 (US-Sales) or 704-849-2773 (Support & International), F: 704-849-6388
148A East Charles Street Matthews NC 28105 USA
Copyright Software Toolbox, Inc., 1996-2006, All Rights Reserved Worldwide.

Software Toolbox is a registered trademark of Software Toolbox Inc.
INGEAR, INGEAR.NET, INGEAR.NET.Logix, INGEAR.NET.ABLink, INGEAR.NET.GELink, and INGEAR.NET.MBLink are all trademarks of Cimquest Inc.