AdsServer.GetServerName Method

Gets the name of the server.

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

Syntax

C#

protected virtual string GetServerName()

Return Value

Type: String
The ServerName.

Remarks

Because the ServerName is used as DeviceName in the DeviceInfoStruct, this string must be shorter or equal than 16 bytes in ANSII encoding. The default implementation is '{AmsServer.PortName} ({amsServer.Port})' or for longer PortNames: 'AdsServer_{amsServer.Port}'

Reference

AdsServer Class

TwinCAT.Ads.Server Namespace