Beckhoff ADS Writer
Description
Beckhoff ADS Writer is used for writing variable values in 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 Writer, follow the steps described in the general description of Channels.
Configuration
The dialog to configure the Beckhoff ADS Writer looks like:
![]() |
|---|
| Base view of the Beckhoff ADS Listener |
Beckhoff ADS Connection is the only property you need to configure the Beckhoff ADS Writer.
Input Message
The channel expects following message type to write a value to a variable in TwinCAT.
![]() |
|---|
| Message type for Beckhoff ADS Writer |
- value that should be written
- 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.
- isArray is an optional attribute. Has to be
trueif the user wants to write a value to an array variable. - stringLength is the length of the string defined in TwinCAT. Is only needed if isArray is true and dataType is STRING.
Example
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<AdsWriteRequest>
<value variable="MAIN.stringVar" dataType="STRING">Hello World!</value>
</AdsWriteRequest>
Example for writing array value
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<AdsWriteRequest>
<value variable="MAIN.myStringArray" dataType="STRING" isArray="true" stringLength="20">
<index>Test</index>
<index>Hello</index>
<index>World</index>
</value>
</AdsWriteRequest>

