EtherCAT Master Configuration EtherCAT Programming Guide
5-14 March, 2017
5
5.11 _ECAT_Autoconfig_Get_NodeID_Alias
Syntax
U16 PASCAL _ECAT_Autoconfig_Get_NodeID_Alias (U16 CardNo, U16 RealNodeID, U16
*MapNodeID)
Purpose
This is for acquiring the user-defined station alias of each node.
*Set after initialization.
Note: This API can only be executed after the EtherCAT Master has been started
( “_ECAT_Master_Open” in section 6.1). To use user-defined station alias of each node
( “_ECAT_Autoconfig_Set_NodeID_Alias” in section 5.10), you will need to apply API
“_ECAT_Autoconfig_Save_NodeID_Alias” (in section 5.12) to save specified alias to each slave device.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
RealNodeID U16 Number Node ID
MapNodeID U16* Number Specify Node ID
Example
U16 Status;
U16 CardNo=16,NodeID=1;
U16 MapNodeID;U16 Cardnum=0;
Status = _ECAT_Master_Open (&Cardnum);
if (Cardnum>0)
{
Status = _ECAT_Master_Get_CardSeq (0, &CardNo);
Status = _ECAT_Autoconfig_Get_NodeID_Alias (CardNo, NodeID, &MapNodeID);
}