High Speed Pulse Compare Function EtherCAT Programming Guide
27-4 March, 2017
27
27.1 _ECAT_Compare_Set_Channel_Position
Syntax
U16 PASCAL _ECAT_Compare_Set_Channel_Position(U16 CardNo, U16 CompareChannel,
I32 Position)
Purpose
Overwrite a new position value (pulse) for the specified channel.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
Compare_Channel U16 Number Channel No., which range is 0 ~ 1.
Position I32 Pulse
The new position value to be set for the specified
channel
Example
U16 CardNo = 0;
U16 Compare_Channel = 0;
I32 position = 0;
U16 status = _ECAT_Compare_Set_Channel_Position (CardNo, compare_channel, position);