EasyManuals Logo

Delta EtherCAT User Manual

Delta EtherCAT
481 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #95 background imageLoading...
Page #95 background image
EtherCAT Master Configuration EtherCAT Programming Guide
5-8 March, 2017
5
5.6 _ECAT_Autoconfig_Open_File
Syntax
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 Data type Property Description
CardNo U16 Number Card No.
FilePath I8* String The directory of the configuration file
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);
}

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta EtherCAT and is the answer not in the manual?

Delta EtherCAT Specifications

General IconGeneral
BrandDelta
ModelEtherCAT
CategoryControl Systems
LanguageEnglish

Related product manuals