High Speed Pulse Compare Function EtherCAT Programming Guide
27-14 March, 2017
27
27.11 _ECAT_Compare_Set_Channel1_Output_Enable
Syntax
U16 PASCAL _ECAT_Compare_Set_Channel1_Output_Enable (U16 CardNo, U16 on_off)
Purpose
Enable/Disable the compare function with user-defined interval of channel 1.
Note:
1. Before GPIO is enabled, please make sure channel 0 is enabled by API
“_ECAT_Compare_Set_Channel_Enable”.
2. About the triggering retaining time, please refer to section 27.5
“_ECAT_Compare_Set_Channel_Trigger_Time”.
3. Output signal of channel 1 is triggered via PIN13 and PIN14 of CN2 and CN11 connector on motion
card PCI-L221-B1. These two sets of points will both be triggered when pulses are matched.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
On_off U16 Option
0: Off
1: On
Example
U16 CardNo = 0;
U16 on_off = 1;
U16 status = _ECAT_Compare_Set_Channel1_Output_Enable (CardNo, on_off);
Description
The motion card will start comparing the current pulse and the array of pulse position set by API
“_ECAT_Compare_Set_Channel1_Position_Table”, and trigger output signal of channel 1 if the
pulses are matched.