TwinCAT ADS library for LabVIEW

TwinCAT ADS library for LabVIEW

A library written to interface LabVIEW applications with Beckhoff PLCs. With this library it is possible to read PLC variables through a Client connected to the PLC network using the TwinCAT Runtime.

This library was written to interface LabVIEW applications with Beckhoff PLCs. With this library it is possible to read PLC variables through a Client connected to the PLC network using the TwinCAT Runtime.
This library is written and maintained with LabVIEW 2016.

GitHub URL
https://github.com/metsrl/twincat-lv-ads-library/

Prerequisites

The Client must run TwinCAT ADS Runtime. This library was tested with TwinCAT ADS Runtime 3.1.4024.10.

The run-time can be found at the following link
https://www.beckhoff.com/english.asp?download/tc3-download-xar.htm.

This library uses the .NET interface therefore it can only be used in a Windows environment.

TwinCAT ADS static route setup

Once installed the TwinCAT ADS Runtime on the Client, a static route must be set.

  1. Right-click on the TwinCAT sys-tray icon and select 'Router > Edit Routes'; the 'Add Route Dialog' panel pops up.
  2. Enter the Server (PLC) Host Name or the IP address and press 'Enter Host Name / IP:' button
  3. Select 'ADS_UDP' as Transport Type
  4. Press 'Add Route' button; the 'Add Remote Route' panel pops up.
  5. Enter the Server access credentials: User Name and Password. Press 'Okay' button.
Step 4
Step 5
  1. The panel 'TwinCAT Static Routes' will shows up. An 'x' in the 'Connected' field indicate a succesful connection Client <> Server.

How to use the library

Usage example is shown below.

Altri contenuti in Risorse

Contatti.

Management Excellence Tools

MET S.r.l.

Email / Telefono.

info@met.it - info@pec.met.it

+39 02 72546 471‬

Sede Legale.

Via Mengoni 4

20121 Milano MI Italy

 

© 2021 MET All Rights Reserved | Made in Milan Italy

MET Logo

P.IVA/C.F. 10209860153 | Trib. Milano Soc. 31210878248 | Iscrizione C.C.I.A.A. 1356319