High Speed Pulse Compare Function EtherCAT Programming Guide
27-8 March, 2017
27
27.5 _ECAT_Compare_Set_Channel_Trigger_Time
Syntax
U16 PASCAL _ECAT _Compare_Set _Channel_Trigger_Time (U16 CardNo,
U16 compare_channel, U32 time_us)
Purpose
Set the trigger retainining time for the specified channel.
Note:
1. When carrying out compare function with channel 0, the minimum trigger time is set to 1 us. If 0 is input,
it displays 0.8 us.
2. When carrying out compare function with channel 1, the minimum trigger time is 3 us. If the input value
is less than 3, it displays 3 us.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
Compare_channel U16 Number Channel No., which range is 0 ~ 1.
Time_us U32 Time
Input the retaining time for each trigger. (Unit: 0.001
us)
Example
U16 CardNo = 0;
U16 compare_channel = 0;
U16 time_us = 20; //20us
U16 status = _ECAT_Compare_Set _Channel_Trigger_Time(CardNo, compare_channel,
time_us);