Auto Recording Function of Motion Axis EtherCAT Programming Guide
25-4 March, 2017
25
25.2 _ECAT_Slave_Record_Set_Enable
Syntax
U16 PASCAL _ECAT_Slave_Record_Set_Enable (U16 CardNo, U16 NodeID,
U16 SlotNo, U16 Enable)
Purpose
Enable/Disable the recording function of
specified axis.
Parameter
Name Data type Property Description
CardNo U16 Number Card number
NodeID U16 Number Node ID
SlotNo U16 Number Slot ID
Enable U16 Value
This value will refer to the bit setting and
enable/disable the recording function for the 8 groups
of OD data.
Example
U16 Status = 0;
U16 CardNo=16 , NodeID =1, SlotNo=0;
U16 MonitorIndex =0;
U16 IOType =0, Index=0x607A, SubIndex=1;
Status= _ECAT_Slave_Record_Set_Type (CardNo, NodeID, SlotNo, MonitorIndex,
IOType, Index, SubIndex);
// Enable the recording function of group number 1 ~ 3 of Node ID 1. Disable the recordind
function of group number 4 ~ 8.
U16 Enable =0x07;
Status= _ECAT_Slave_Record_Set_Enable (CardNo, NodeID, SlotNo, Enable);