IAdsConnectAddressConnect(AmsNetId, Int32) Method

Connects/Reconnects to the specified target address.


Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

void Connect(
    AmsNetId netId,
    int port
)

Parameters

netId  AmsNetId

The AmsNetId of the target device.

port  Int32

The Ams Port number on the target device to connect to.

Remarks

If the IConnection is already connected (IsConnected), this connection will be reestablished/reconnected.

Reference

IAdsConnectAddress Interface Connect Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026