EtherCAT Programming Guide MPG Operation
March, 2017 33-7
33
33.4 _ECAT_Slave_R1_EC5614_Get_MPG_Counter
Syntax
U16 PASCAL _ECAT_Slave_R1_EC5614_Get_MPG_Counter (U16 CardNo, U16 NodeID, U16
SlotNo, I32 *Counter)
Purpose
This is for acquiring accumulative value of the MPG counter.
Parameter
Name Data type Property Description
CardNo U16 Number Card number
NodeID U16 Number Node ID
SlotNo U16 Number Slot ID
Counter I32* Value Value of the MPG Counter (Unit: pulse)
Example
U16 Status = 0, CardNo = 16, NodeID = 0, SlotNo = 0;
I32 Counter = 0;
Status = _ECAT_Slave_R1_EC5614_Get_MPG_Counter(CardNo, NodeID, SlotNo,
&Counter);