EtherCAT Programming Guide EtherCAT Master Configuration
March, 2017 5-11
5
5.9 _EACT_Autoconfig_Clear_ConfigFile
Syntax
U16 PASCAL _EACT_Autoconfig_Clear_ConfigFile (U16 CardNo)
Purpose
This is for clearing the configuration file loaded via _ECAT_Autoconfig_Open_File. It is mainly
used when a wrong file has been opened or the changes are not compatible with the previous
settings.
Note: 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.
Example
U16 Status;
U16 CardNo=0;
U16 Cardnum=0;
Status = _ECAT_Master_Open (&Cardnum);
if (Cardnum>0)
{
Status = _ECAT_Master_Get_CardSeq (0, &CardNo);
Status = _EACT_Autoconfig_Clear_ConfigFile (CardNo);
Status = _ECAT_Master_Initial(CardNo);
}