EtherCAT Programming Guide High Speed Pulse Compare Function
March, 2017 27-7
27
27.4 _ECAT_Compare_Set_Channel_Direction
Syntax
U16 PASCAL _ECAT _Compare_Set _Channel_Direction (U16 CardNo,
U16 compare_channel, U16 dir)
Purpose
Set the pulse direction of the specified channel. With this API, modifying the wiring will not be
required if pulse direction has to be alternated
.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
Compare_channel U16 Number Channel No., which range is 0 ~ 1.
Dir U16 Option
0: Forward
1: Inverse
Example
U16 CardNo = 0;
U16 compare_channel = 0;
U16 dir = 1; //Inverse
U16 status = _ECAT_Compare_Set _Channel_Direction (CardNo, compare_channel, dir);