With TypeResolving

The folder With TypeResolving contains blocks that integrate reading and writing via ADS with TypeResolver and, accordingly, further simplify programming in LabVIEW™.

Read TypeResolved

The Read TypeResolved block is a polymorphic block that integrates reading via ADS with TypeResolver. The block offers synchronous and asynchronous reading via ADS.

Read Sync Single TypeResolved

The Read TypeResolved block in operation mode Read Sync Single TypeResolved calls the ADS-Read block to receive the ADS data packet (as ADS raw data) synchronously from the ADS server and then convert it into a LabVIEW™ data type using the Get TypeResolver block.

With TypeResolving 1:

Input/output

Meaning

[0] Handle

Handle to the ADS client

[5] SymbolName

ADS symbol consisting of AMSNetId and symbol name

[4] Handle

Handle to the ADS client

[8] Read Status?

Read status

[10] RData

TypeResolved ADS raw data as Variant

Read Async Single TypeResolved

In the operation mode Read Async Single TypeResolved, the Read TypeResolved block calls the Async Single block to receive the ADS data packet (as ADS raw data) asynchronously from the ADS server and then convert it to a LabVIEW™ data type using the Get TypeResolver block.

With TypeResolving 2:

Input/output

Meaning

[0] Handle

Handle to the ADS client

[1] Wait?

TRUE = wait for server response (sync)
FALSE (default) = do not wait for server response (async)

[5] SymbolName

ADS symbol consisting of AMSNetId and symbol name

[4] Handle

Handle to the ADS client

[6] SymbolName

ADS symbol consisting of AMSNetId and symbol name

[8] Read Status?

Read status

[10] RData

TypeResolved ADS raw data as Variant

[14] ReadHdl

Handle to the ADS reader

Write TypeResolved

The Write TypeResolved block is a polymorphic block that integrates writing via ADS with TypeResolver. The block offers synchronous and asynchronous writing via ADS.

Write Sync Single TypeResolved

The Write TypeResolved block in operation mode Write Sync Single TypeResolved calls the Set TypeResolver block to convert the LabVIEW™ data type to a TwinCAT 3 data type and then sends the converted data packet to the ADS server synchronously by calling the Sync Single block.

With TypeResolving 3:

Input/output

Meaning

[1] bTypeWithLabels

True if the data type has a label.

[0] Handle

Handle to the ADS client

[5] SymbolName

ADS symbol consisting of AMSNetId and symbol name

[9] WData

ADS data packet as raw data

[4] Handle

Handle to the ADS client

[8] Write Status?

Write status

[10] Has Matched?

Flag indicating whether conversion and comparison between LabVIEW™ and TwinCAT 3 data type was successful.

Write Async Single TypeResolved

In operation mode Write Async Single TypeResolved, the Write TypeResolved block calls the Set TypeResolver block to convert the LabVIEW™ data type to a TwinCAT 3 data type and then sends the converted data packet asynchronously to the ADS server with the call from the Sync Single block.

With TypeResolving 4:

Input/output

Meaning

[1] bTypeWithLabels

True if the data type has a label.

[0] Handle

Handle to the ADS client

[1] Wait?

TRUE = wait for server response (sync)
FALSE (default) = do not wait for server response (async)

[5] SymbolName

ADS symbol consisting of AMSNetId and symbol name

[9] WData

ADS data packet as raw data

[4] Handle

Handle to the ADS client

[6] SymbolName

ADS symbol consisting of AMSNetId and symbol name

[8] Write Status?

Write status

[10] Has Matched?

Flag indicating whether conversion and comparison between LabVIEW™ and TwinCAT 3 data type was successful.

[14] WriteHandle

Handle to the ADS Writer