EasyManuals Logo

Delta EtherCAT User Manual

Delta EtherCAT
481 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #92 background imageLoading...
Page #92 background image
EtherCAT Programming Guide EtherCAT Master Configuration
March, 2017 5-5
5
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 Data type Property Description
CardNo U16 Number Card No.
Enable U16 Option
0: Disable user-defined station alias.
1: Enable user-defined station alias.
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);
}

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta EtherCAT and is the answer not in the manual?

Delta EtherCAT Specifications

General IconGeneral
BrandDelta
ModelEtherCAT
CategoryControl Systems
LanguageEnglish

Related product manuals