EasyManuals Logo
Home>Delta>Control Systems>EtherCAT

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 #121 background imageLoading...
Page #121 background image
Master Initialization EtherCAT Programming Guide
6-18 March, 2017
6
6.15 _ECAT_Master_Get_Return_Code_Message
Syntax
U16 PASCAL _ECAT_Master_Get_Return_Code_Message(U16 ReturnCode, I8 *Message);
Purpose
This is for acquiring the corresponding message of each return code.
Parameter
Name Data type Property Description
ReturnCode U16 Number Return code
Message I8* String Corresponding message for each return code
Example
U16 Status, Rt;
U16 CardNo = 0;
U16 Cardnum = 0;
U16 InitDone = 100;
I8 Message[500]= {0};
Status = _ECAT_Master_Open(&Cardnum);
for (U16 CardSeq = 0; CardSeq < Cardnum; CardSeq ++)
{
Status = _ECAT_Master_Get_CardSeq (CardSeq, &CardNo);
Status = _ECAT_Master_Initial(CardNo);
while (InitDone != 0)
{
Status = _ECAT_Master_Check_Initial_Done(CardNo, &InitDone);
if (InitDone == 99)
{
// Error
Status = _ECAT_Master_Get_Initial_ErrorCode(CardNo);
Rt = _ECAT_Master_Get_Return_Code_Message(Status, Message);
break;
}
}
}

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