TwinCAT driver

Observe these guidelines when working with TwinCAT driver.

Supported controllers

The driver supports these controller families:
  • TwinCAT® runtime
  • Beckhoff ® TwinCAT® systems
Important: The driver has been tested with TwinCAT® runtime and CX5130-0155.

Controller tags import

You can import tags in these modes:
Online mode

Use online mode to import tags directly from the controller at design time or runtime.

Offline mode

Use offline mode to import tags from TPY files.

For more information, refer to the product documentation.

Data types

The driver supports these data types:
Controller data type FactoryTalk Optix data type Length Notes

BOOL

BOOL

1 BIT

BYTE

BYTE

1 BYTE

WORD

UINT16

2 BYTES

DWORD

UINT32

4 BYTES

LWORD

UINT64

8 BYTES

SINT

SBYTE

1 BYTES

INT

INT16

2 BYTES

DINT

INT32

4 BYTES

USINT

BYTE

1 BYTE

UINT

UINT16

2 BYTES

UDINT

UINT32

4 BYTES

LINT

INT64

8 BYTES

ULINT

UINT64

8 BYTES

REAL

FLOAT

4 BYTES

LREAL

DOUBLE

8 BYTES

TIME

DURATION

4 BYTES

LTIME

DURATION

8 BYTES

DATE

DATE TIME

2 BYTES

TIME_OF_DAY(TOD)

UTC TIME

4 BYTES

Rockwell Automation recommends using the Date and time object, which allows you to set and view date and time data.

DATE_AND_TIME(DT)

DATE TIME

4 BYTES

STRING

STRING[Length]

WSTRING

STRING[Length]

ARRAY 1 dimensional

Type [dimension]

ARRAY 2 dimensional

Type [1st dimension, 2nd dimension]

ARRAY 3 dimensional

Type [1st dimension ,2nd dimension, 3rd dimension]