Ecat_Compare_Set_Channel_Enable - Delta EtherCAT Programming Manual

Table of Contents

Advertisement

EtherCAT Programming Guide

27.8 _ECAT_Compare_Set_Channel_Enable

Syntax
U16 PASCAL _ECAT_Compare_Set _Channel_Enable (U16 CardNo,
U16 compare_channel,U16 enable)
Purpose
Enable/disable the high speed compare function of the specified channel.
Note:
1.
Channel 0 can only be enabled/disabled with this API.
2.
Apart from this API, channel 1 needs to be enabled/disabled with API
"_ECAT_Compare_Set_Channel1_Output_Enable". Otherwise, this channel will not be triggered even
when the pulse is matched.
Parameter
Name
CardNo
Compare_channel
enable
Example
U16 CardNo = 0, ;
U16 compare_channel = 0;
U16 enable = 1;//Enable the high-speed compare function.
U16 status = _ECAT_Compare_Set Channel_Enable (CardNo, compare_channel, enable);
March, 2017
Data type
Property
U16
Number
U16
Number
U16
Option
High Speed Pulse Compare Function
Description
Card No.
Channel No., which range is 0 ~ 1.
0: Disable the compare function.
1: Enable the compare function.
27
27-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents