Ecat_Master_Get_Return_Code_Message - Delta EtherCAT Programming Manual

Table of Contents

Advertisement

Master Initialization

6.15 _ECAT_Master_Get_Return_Code_Message

Syntax
6
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
ReturnCode
Message
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)
{
if (InitDone == 99)
{
}
}
}
6-18
Data type
U16
I8*
Status = _ECAT_Master_Check_Initial_Done(CardNo, &InitDone);
// Error
Status = _ECAT_Master_Get_Initial_ErrorCode(CardNo);
Rt = _ECAT_Master_Get_Return_Code_Message(Status, Message);
break;
Property
Number
Return code
String
Corresponding message for each return code
EtherCAT Programming Guide
Description
March, 2017

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents