This document has only the specific information about the device connection settings and its address syntax.

Refer to the User Guide for more information on the Device Module.

On this page:


Summary

TwinCAT supports Solution Import Tags to setup automatically the mapping.

→ For more information go to Importing Tags from TwinCAT.

Communication Driver Information

Driver name

TwinCAT

Assembly Name

T.ProtocolDriver.TwinCAT

Assembly Version

2.5.0.1

Available for Linux

False

Devices supported 

Beckhoff TwinCAT PLC/IO and compatibles

Manufacturer

Beckhoff

Protocol

ADS

Interface

TCP/IP

PC Requirements

Ethernet port

The TwinCAT communication driver is supported only in Windows Solutions.


Nodes Configuration

Station Configuration

Stations syntax: <AmsNetID> ; <AmsSrvPort>

 Where :

  • <AmsNetID> = AmsNet ID of the PLC
  • <AmsSrvPort> = Port number used for communication.

E.g.: 192.168.1.1.1.1; 801



Points Configuration

Address

The syntax for the TwinCAT communication points is:

  • <DeviceTagName>

<DeviceTagName>:  Tag Name in PLC.

E.g.: .TAGNAME

Arrays

If an array is not zero-indexed, the Address field in the DevicePoints table must include the array's starting index in brackets.

Example 1:
If the TwinCAT array is defined as intArray : ARRAY[2..5] OF INT,
then the value in the Address column should be:
intArray[2]

Example 2:
If the TwinCAT array is defined as intMatrix : ARRAY[2..5, 0..3, 4..7] OF INT,
then the value in the Address column should be:
intMatrix[2][0][4]

For zero-indexed arrays (e.g., ARRAY[0..N]), it is not necessary to specify the initial index in the address. In those cases, you can simply use the array name (e.g., intArray) in the Address column.

Arrays with Non-Zero-Based Indexing inside Structs

When defining a DataTemplate for a TwinCAT struct that includes an array with a non-zero starting index, the initial index must be specified in the RelativeAddress column of the corresponding DataTemplate member, following the same approach demonstrated in the examples above. The TwinCAT Tag Importer handles this automatically.


Driver Revision History

TwinCAT Revision History

Version 

Notes

2.5.0.1

Initial release on new documentation standards.


In this section...

  • No labels