AdsServerGetServerName Method
Gets the name of the server.
Namespace: TwinCAT.Ads.Server
Assembly: TwinCAT.Ads.Server (in
TwinCAT.Ads.Server.dll) Version:
7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
protected virtual string GetServerName()Return Value
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}'