EtherCAT Programming Guide Analog Input Settings (For R1-EC8124D0)
March, 2017 23-7
23
23.5 _ECAT_Slave_R1_EC8124_Set_Input_AverageMode
Syntax
U16 PASCAL _ECAT_Slave_R1_EC8124_Set_Input_AverageMode (U16 CardNo, U16 NodeID,
U16 SlotNo, U16 Avg_Times)
Purpose
This is for setting the average times of the analog input signal filter of Delta analog input module.
EtherCAT Master will average out the current value from 1
st
to127
th
data based on the setting
count.
Parameter
Name Data type Property Description
CardNo U16 Number Card number
NodeID U16 Number Node ID
SlotNo U16 Number Slot ID
Avg_Times U16 Value
Average times for the analog input, which range is 1 ~
127.
Example
U16 Status = 0;
U16 CardNo=16 , NodeID =1, SlotNo=0;
U16 Avg_Times =5;
Status= _ECAT_Slave_R1_EC8124_Set_Input_AverageMode (CardNo, NodeID,SlotNo,
Avg_Times);