Auto Recording Function of Motion Axis EtherCAT Programming Guide
25-8 March, 2017
25
25.6 _ECAT_Slave_Record_Multi_Set_Enable
Syntax
U16 PASCAL _ECAT_Slave_Record_Multi_Set_Enable (U16 CardNo, U16 NodeNum,
U16 *NodeIDArray, U16 *SlotIDArray, U16 Enable)
Purpose
Enable/Disable the recoding function of
specified multiple axes.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
NodeNum U16 Quantilty Quantity of nodes
NodeIDArray U16* Node array
Set the Node ID array for recording function of
multiple axes, which quantity is indentical to
AxisNum.
NodeIDArray [0] is for specifying the 1
st
node to be
used.
NodeIDArray [1] is for specifying the 2
nd
node to be
used and so on.
SlotIDArray U16* Slot array
Data array of slot ID, which quantity is identical to
AxisNum.
Enable U16 Value
This value will refer to the bit setting and determine
whether to enable/disable the recording function for
the 8 groups of OD data.
Example
U16 Status = 0;
U16 CardNo=16 , NodeNum = 2, NodeID[2]={0, 1}, SlotNo[2]={0, 0};
// 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;
// Enable the recoding function of multiple axes.
Status= _ECAT_Slave_Record_Multi_Set_Enable (CardNo, NodeNum, NodeIDArray,
SlotIDArray, Enable);