GetRemotePCInfo 1:

The function block "GetRemotePCInfo" can be used to read information about configured remote PCs in the TwinCAT router. After successful execution the structure "RemotePCInfo" contains the NetIDs and names of the remote PCs as strings in the order in which they were stored in the TwinCAT router. The function block allows router information relating to either a local or to a remote TwinCAT system to be read.


    NETID   : T_AmsNetId;
    START   : BOOL;

NETID: This parameter can be used to specify the AmsNetID of the TwinCAT computer whose router information is to be read via configured remote PCs (type: T_AmsNetID). To determine the remote PCs of the local TwinCAT system, an empty string can be specified.

START: the block is activated by a positive edge at this input.

TMOUT: States the length of the timeout that may not be exceeded by execution of the ADS command.


    BUSY         : BOOL;
    ERR          : BOOL;
    ERRID        : UDINT;

BUSY: When the function block is activated this output is set. It remains set until a feedback is received.

ERR: If an error should occur during the transfer of the command, then this output is set once the BUSY output was reset.

ERRID: Supplies the ADS error number when the ERR output is set.

RemotePCInfoStruct: Structure containing information about the configured remote PCs (type: REMOTEPCINFOSTRUCT).


    GetRemotePCInfo1     : GetRemotePCInfo;
    RemotePCInfo         : REMOTEPCINFOSTRUCT;
    bBusy                : BOOL;
    bError               : BOOL;
    iErrorId             : UDINT;
    bStart               : BOOL;

GetRemotePCInfo 2:

Online View:

NetIDs and names of the configured remote PCs.

GetRemotePCInfo 3:


Development environment

Target platform

PLC libraries to be integrated (category group)

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_Utilities (System)