Beckhoff Automation GmbH & Co. KG TwinCAT 2 | ADS-Script-DLL — 3.1.1 ConnectTo

API 3.1 Method - general 3.1.1 ConnectTo Opens a communication channel between the object and an ADS device (PLC, NC, ...). object.ConnectTo( sAmsNetId As String, nPort As Long ) Parameters Return value - Description The first parameter contains the six-figure AdsAmsNetId. The individual values are separated from one another by a dot. If an empty string is passed, the local AdsAmsNetId is used. If a communication channel was already open before the call to ConnectTo() , it is automatically closed. The communication channel is also closed if the object is deleted. TX1000 10 Version:

1.0 Application Method TcScriptSync::WriteReal32( ) [} 22] TcScriptSync::WriteReal64( ) [} 23] TcScriptSync::WriteArrayO fBool() [} 24] TcScriptSync::WriteArrayO fInt8() [} 24] TcScriptSync::WriteArrayO fInt16() [} 25] TcScriptSync::WriteArrayO fInt32() [} 25] TcScriptSync::WriteArrayO fReal32() [} 26] TcScriptSync::WriteArrayO fReal64() [} 27] sAmsNetId AdsAmsNetId. nPort Port number.