Ecat_Master_Nodeid_Alias_Enable - Delta EtherCAT Programming Manual

Table of Contents

Advertisement

EtherCAT Programming Guide

5.3 _ECAT_Master_NodeID_Alias_Enable

Syntax
U16 PASCAL _ECAT_Master_NodeID_Alias_Enable (U16 CardNo, U16 Enable)
Purpose
This is for determining whether to enable user-defined station.
*Set before initialization. If there is any EtherCAT slave that has not been assigned with an alias,
error message (0x1004) will occur.
Note:
1.
Please make sure no repeated slave station alias is on the bus.
2.
If you are using any of the Delta R1-EC series modules, please refer to Chapter 5.10
_ECAT_Autoconfig_Set_NodeID_Alias to set the station number of all R1-EC series modules on
the EtherCAT bus. Once the setting is complete, refer to section 5.12
_ECAT_Autoconfig_Save_NodeID_Alias to save this setting to the module's memory. Then,
re-initialize EtherCAT bus.
3.
If there is a repeated station alias or one of the station aliases is not set, an API error message
(0x1004) will occur.
4.
This API can only be executed after the EtherCAT Master has been started
( "_ECAT_Master_Open" in section 6.1) and before EtherCAT communication is initialized
( "_ECAT_Master_Initial" in section 6.2).
Parameter
Name
CardNo
Enable
Example
U16 Status;
U16 CardNo=0, Enable =1;
U16 MapNodeID;
U16 Cardnum=0;
Status = _ECAT_Master_Open (&Cardnum);
if (Cardnum>0)
{
Status = _ECAT_Master_Get_CardSeq (0, &CardNo);
// Disable EtherCAT communication.
Status = _ECAT_Master_Reset(CardNo);
// Enable user-defined station alias.
Status = _ECAT_Master_NodeID_Alias_Enable (CardNo, Enable);
// Eanble the EtherCAT communication again.
Status = _ECAT_Master_Initial(CardNo);
}
March, 2017
Data type
Property
U16
Number
U16
Option
EtherCAT Master Configuration
Description
Card No.
0: Disable user-defined station alias.
1: Enable user-defined station alias.
5
5-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents