Master Initialization EtherCAT Programming Guide
6-8 March, 2017
6
6.6 _ECAT_Master_Get_SlaveNum
Syntax
U16 PASCAL _ECAT_Master_Get_SlaveNum(U16 CardNo, U16 *Slavenum)
Purpose
This is for acquiring slave quantity on the communication bus of the specified EtherCAT master.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
Slavenum U16* Quantity
EtherCAT slave quantity that connected to the
specified master.
Example
U16 Status;
U16 CardNo=16, Slavenum=0;
Status = _ECAT_Master_Get_SlaveNum(CardNo, &Slavenum);