Group Motion Control EtherCAT Programming Guide
17-8 March, 2017
17
17.4 _ECAT_Slave_User_Motion_Control_Set_Data
Syntax
U16 PASCAL_ECAT_Slave_User_Motion_Control_Set_Data (U16 CardNo, U16 GroupNo,
I32 *Data)
Purpose
This is for inputting the absolute position data of each axis of each communication cycle in the
specified group when mode is set to 0 in API “_ECAT_Slave_User_Motion_Control_Set_Type”
(section 17.3).
Note: The maximum data for PAC is 800 and 100 for motion control card.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
GroupNo U16 Number Group No.
Data I32*
Data array for
each axis
Data array for each axis; the array number should
equal to the axis number.
DataArray[0] stores the data of the first axis
DataArray[1] stores the data of the second axis
…
Example
U16 Status;
U16 CardNo=16, GroupNo=1;
I32 DataArray[2]={12,33};
Status=_ECAT_Slave_User_Motion_Control_Set_Data (CardNo, GroupNo, DataArray);