ADS-Write

The ADS-Write block is a polymorphic VI and supports the following ADS communication modes to write data to TwinCAT:

For ADS-Write only one parameter is relevant, which can be set in the Symbol Interface and that is the parameter Timeout.

Sync Single

In this operation mode, the ADS client in LabVIEW™ sends a write request with the type-resolved ADS value to the ADS server in TwinCAT and waits for a response as to whether the value has been written.

ADS-Write 1:

Input/output

Meaning

[0] [4] Handle

Handle to the ADS client

[5] [6] SymbolName

Describes an ADS symbol consisting of AMS address and symbol designation:

  • AMS address: A compilation of AMS NetId and AMS port.
  • Symbol designation: Symbol name or index group/offset

Examples of the symbol name:

  • AMS address and symbol name: 127.0.0.0.1.1:851::MAIN.Var
  • AMS address and index group/offset: 127.0.0.0.1.1:851::0x1234/0x12345

[9] Ads Write Data

Type-resolved ADS value

[8] Write Status

Write status

Async Single

In this operation mode the ADS client in LabVIEW™ sends a write request with the type-resolved ADS value to the ADS server in TwinCAT and does not wait for a response whether the value has been written.

ADS-Write 2:

Input/output

Meaning

[0] [4] Handle

Handle to the ADS client

[5] [6] SymbolName

Describes an ADS symbol consisting of AMS address and symbol designation:

  • AMS address: A compilation of AMS NetId and AMS port.
  • Symbol designation: Symbol name or index group/offset

Examples of the symbol name:

  • AMS address and symbol name: 127.0.0.0.1.1:851::MAIN.Var
  • AMS address and index group/offset: 127.0.0.0.1.1:851::0x1234/0x12345

[9] Ads Write Data

Type-resolved ADS value

[8] Write Status

Write status

[10] WriteHandle

Handle to the ADS Writer