EasyManua.ls Logo

Delta EtherCAT - EcatMasterGetCycletime

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...
EtherCAT Master Configuration EtherCAT Programming Guide
5-4 March, 2017
5
5.2 _ECAT_Master_Get_CycleTime
Syntax
U16 PASCAL _ECAT_Master_Get_CycleTime (U16 CardNo, U16 *CycleTime)
Purpose
This is for acquiring the cycle time of the
EtherCAT master communication.
Note: This function can be used only after the EtherCAT Master is enabled by “_ECAT_Master_Open” (refer
to section 6.1).
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
CycleTime U16* Time (us)
Communication cycle time (unit: us);
The Master currently only supports cycle times of
2000, 1000, 500, 250, 125. For the slave cycle time,
please refer to the description of each Slave.
Example
U16 Status;
U16 CardNo=0;
U16 Cardnum=0;
U16 CycleTime =0;
Status = _ECAT_Master_Open (&Cardnum);
if (Cardnum>0)
{
Status = _ECAT_Master_Get_CardSeq (0, &CardNo);
// Acquire the Master’s CycleTime setting information.
Status = _ECAT_Master_Get_CycleTime (CardNo, &CycleTime);
}

Table of Contents

Related product manuals