EasyManua.ls Logo

Delta EtherCAT

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
Loading...
Master Initialization EtherCAT Programming Guide
6-16 March, 2017
6
6.13 _ECAT_Master_Get_Initial_ErrorCode
Syntax
U16 PASCAL _ECAT_Master_Get_Initial_ErrorCode(U16 CardNo)
Purpose
This is
for acquiring the error code when error occurs (“_ECAT_Master_Check_Initial_Done”
returns 99). Refer to Chapter 34 for more information about error code description.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
Example
U16 Status;
U16 CardNo = 0;
U16 Cardnum = 0;
U16 InitDone = 100;
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);
break;
}
}
}

Table of Contents

Related product manuals