Master Initialization EtherCAT Programming Guide
6-14 March, 2017
6
6.11 _ECAT_Master_Get_Cycle_SpendTime
Syntax
U16 PASCAL _ECAT_Master_Get_Cycle_SpendTime (U16 CardNo, F64 *Tx_Time, F64
*Tx_MaxTime, F64 *Rx_Time, F64 *Rx_MaxTime)
Purpose
This is for acquiring the time spent on Tx and Rx every cycle and the maximum consuming time
in the log.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
Tx_Time F64* Time (us) Acquire the time spent on Tx (us)
Tx_MaxTime F64* Time (us) Acquire the maximum consumed time of Tx in the log
Rx_Time F64* Time (us) Acquire the time spent on Rx (us)
Rx_MaxTime F64* Time (us) Acquire the maximum consumed time of Rx in the log
Example
U16 Status;
U16 CardNo=16;
F64 Tx_Time, Tx_MaxTime, Rx_Time, Rx_MaxTime;
Status = _ECAT_Master_Get_Cycle_SpendTime(CardNo, &Tx_Time, &Tx_MaxTime, &Rx_Time,
&Rx_MaxTime);