API

Because the script languages only support a small number of data types, a corresponding method exists in the ADS device for every possible data type. This reduces the number of parameters to a minimum. The methods in which a variable is accessed by name (TcScriptSync::ReadVar() and TcScriptSync::WriteVar()) form exceptions to this rule. In these cases the ADS variable data type is found from the ADS device. Both methods convert the parameters internally into the associated data types before making their access to the ADS device.

Application

Method

general

Communication

TcScriptSync::ConnectTo()

Read

TcScriptSync::ReadAdsState()

Write

TcScriptSync::WriteAdsState()

by address

by variable name

synchronous

Read

TcScriptSync::ReadBool()
TcScriptSync::ReadInt8()
TcScriptSync::ReadInt16()
TcScriptSync::ReadInt32()
TcScriptSync::ReadReal32()
TcScriptSync::ReadReal64()
TcScriptSync::ReadArrayOfBool()
TcScriptSync::ReadArrayOfInt8()
TcScriptSync::ReadArrayOfInt16()
TcScriptSync::ReadArrayOfInt32()
TcScriptSync::ReadArrayOfReal32()
TcScriptSync::ReadArrayOfReal64()

TcScriptSync::ReadVar()

Write

TcScriptSync::WriteBool()
TcScriptSync::WriteInt8()
TcScriptSync::WriteInt16()
TcScriptSync::WriteInt32()
TcScriptSync::WriteReal32()
TcScriptSync::WriteReal64()
TcScriptSync::WriteArrayOfBool()
TcScriptSync::WriteArrayOfInt8()
TcScriptSync::WriteArrayOfInt16()
TcScriptSync::WriteArrayOfInt32()
TcScriptSync::WriteArrayOfReal32()
TcScriptSync::WriteArrayOfReal64()

TcScriptSync::WriteVar()