IAdsConnectAddress.Connect Method (AmsNetId, Int32)

Connects to the target ADS Device.

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

Syntax

C#

void Connect(
    AmsNetId netId,
    int port
)

Parameters

netId

Type: TwinCAT.Ads.AmsNetId
The AmsNetId of the target device.

port

Type: System.Int32
The Ams Port number on the target device to connect to.

Reference

IAdsConnectAddress Interface

Connect Overload

TwinCAT.Ads Namespace