A LabVIEW library for easy data exchange with the TwinCAT System (2.x und 3.x) from Beckhoff or with Beckhoff Ethernet IO systems. The data exchange is based on the ADS interface from Beckhoff.
The library can be used to create visualizations for TwinCAT PLC programs or integrate Beckhoff Ethernet IO systems in LabVIEW.
There are two versions of the library. One uses the TwinCAT ADS Dll for data exchange. The other version is based in LabVIEW TCP functions and can therefore also be used on LabVIEW real-time systems.
TwinCAT ADS
LabVIEW library
The library includes the following functionality:
- Read and write about symbol names
- Reading and writing via lists of symbol names
- Reading and writing via addresses
- Event-controlled reading (notifications)
- Reading and writing of device state
- Browse the icon directory
- Conversion functions for data types
A buffered data transfer can also be implemented in order to transfer variable values from the PLC to LabVIEW without loss of data. Sample code for this is available.
The library can be used with LabVIEW 2010 and higher under Windows XP, 7, 8 and 10 in 32 and 64 bit with LabVIEW 32 and 64 bit.