EtherCAT Programming Guide     Master Initialization 
March, 2017           6-3 
6
6.1  _ECAT_Master_Open 
 
Syntax
 
U16 PASCAL _ECAT_Master_Open(U16 *Cardnum) 
 
 
Purpose 
This is for checking the number of motion cards and EtherCAT kernels, as well as creating 
memory block. 
Note:  
1.  This is the most essential API for controlling Delta EtherCAT master. Please execute this API before 
starting using other functions.   
2.  If the acquired quantity is 0, it means the environment for executing the program does not support 
EtherCAT communication. 
3.  To avoid blue screen death, DO NOT use this API in the thread when using C# to develop RTX 
environment. 
 
Parameter 
Name  Data type  Property  Description 
CardNo  U16  Number 
Quantity of the motion control cards or EtherCAT 
kernels 
 
 
Example 
U16 Status; 
U16 Cardnum=0; 
 
Status = _ECAT_Master_Open(&Cardnum);