AdsClient.Connect Method (AmsNetId, AmsPort)

Connects to the target ADS Device.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public void Connect(
    AmsNetId netId,
    AmsPort port
)

Parameters

netId

Type: TwinCAT.Ads.AmsNetId
The AmsNetId of the ADS target device specified as string.

port

Type: TwinCAT.Ads.AmsPort
The port number of the ADS target device.

Reference

AdsClient Class

Connect Overload

TwinCAT.Ads Namespace