Skip to main content
Version: 5.1.1.0

Beckhoff ADS Reader

Description

Beckhoff ADS Reader is used for reading variable values from Beckhoff TwinCAT using ADS protocol.

note

For using Beckhoff ADS channels you need to put the AdsToJava-3.dll in a folder and start the Orchestra applications with this argument -Djava.library.path=<Path to the DLL folder> .

Creation

To create an Beckhoff ADS Reader, follow the steps described in the general description of Channels.

Configuration

The dialog to configure the Beckhoff ADS Reader looks like:

ads_connection_view.png
Base view of the Beckhoff ADS Listener

Beckhoff ADS Connection is the only property you need to configure the Beckhoff ADS Reader.

Input Message

The channel expects following message type to read a value from a variable in TwinCAT.

ads_reader_messagetype.png
Message type for Beckhoff ADS Reader
  • variable: <class name>.<variable name> as attribute of the value
  • dataType: data type of the variable as attribute of the value. As data type name, all type names found in the TwinCAT can be used here.

Example

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<AdsReadRequest>
<value variable="MAIN.stringVar" dataType="STRING"/>
</AdsReadRequest>

Output Message

The response message type of the Beckhoff ADS Reader looks like:

ads_reader_output_messagetype.png
Output message type for Beckhoff ADS Reader
  • value response value from TwinCAT
  • variable: <class name>.<variable name> as attribute of the value
  • dataType: data type of the variable as attribute of the value

Example

<?xml version="1.0" encoding="UTF-8"?>
<AdsReaderResponse>
<value variable="MAIN.stringVar" dataType="STRING">Hello World</value>
</AdsReaderResponse>