Ecat_Master_Set_Cycletime - Delta EtherCAT Programming Manual

Table of Contents

Advertisement

EtherCAT Programming Guide

5.1 _ECAT_Master_Set_CycleTime

Syntax
U16 PASCAL _ECAT_Master_Set_CycleTime (U16 CardNo, U16 Mode)
Purpose
This is for setting the cycle time
Note: This API can only be executed after the EtherCAT Master has been started
( "_ECAT_Master_Open" in section 6.1) and before EtherCAT communication is initialized
( "_ECAT_Master_Initial" in section 6.2).
Parameter
Name
CardNo
Mode
Example
U16 Status;
U16 CardNo=0;
U16 Cardnum=0;
Status = _ECAT_Master_Open (&Cardnum);
if (Cardnum>0)
{
Status = _ECAT_Master_Get_CardSeq (0, &CardNo);
// Execute the API after enabling the motion card and before initialization.
U16 Mode = 3;
Status = _ECAT_Master_Set_CycleTime (CardNo, Mode);
Status = _ECAT_Master_Initial(CardNo);
}
March, 2017
of the EtherCAT master communication
Data type
Property
U16
Number
U16
Option
EtherCAT Master Configuration
*
.
Set before initialization
Description
Card No.
Communication cycle time (us)
0: 2000 us
1: 1000 us
2: 500 us
3: 250 us
4: 125 us
5
.
5-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents