Ecat_Autoconfig_Open_File - Delta EtherCAT Programming Manual

Table of Contents

Advertisement

EtherCAT Master Configuration

5.6 _ECAT_Autoconfig_Open_File

Syntax
5
U16 PASCAL _ECAT_Autoconfig_Open_File (U16 CardNo, I8 *FilePath)
Purpose
This is for reading and applying the configuration file of communication topology and DC data.
EtherCAT Master will refer to the saved communication topology and DC data during connection.
If the actual communication structure does not match the DC data, EtherCAT Master will return
an error code. With this API, you can avoid EtherCAT Master from issuing the wrong command
when the communication topology is changed accidently.
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
CardNo
FilePath
Example
U16 Status;
U16 CardNo=0;
I8 FilePath[255];
U16 Cardnum=0;
Status = _ECAT_Master_Open (&Cardnum);
if (Cardnum>0)
{
Status = _ECAT_Master_Get_CardSeq (0, &CardNo);
strcpy(FilePath, "C:\\EtherCAT_Information.dat");
Status = _ECAT_Autoconfig_Open_File (CardNo, FilePath);
Status = _ECAT_Master_Initial(CardNo);
}
5-8
Data type
Property
U16
Number
I8*
String
Description
Card No.
The directory of the configuration file
EtherCAT Programming Guide
March, 2017

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents