EtherCAT Programming Guide EtherCAT Master Configuration
March, 2017 5-7
5
5.5 _ECAT_Master_Get_DLL_SeqID
Syntax
U16 PASCAL _ECAT_Master_Get_DLL_SeqID (U16 CardNo, U16 *SeqID)
Purpose
This is for acquiring the sequence ID of the current dynamic link library (DLL).
Note: This API can only be executed after the EtherCAT Master has been started by _ECAT_Master_Open
(section 6.1).
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
SeqID U16* Value Sequence ID of the current DLL.
Example
U16 Status;
U16 CardNo = 0;
U16 SeqID = 0;
U16 Cardnum=0;
Status = _ECAT_Master_Open (&Cardnum);
if (Cardnum>0)
{
Status = _ECAT_Master_Get_CardSeq (0, &CardNo);
Status = _ECAT_Master_Get_DLL_SeqID (CardNo, &SeqID);
}