Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01
Revised March, 2012 39-19
39.17 _DMC_01_channel0_position_cmp_by_gpio
FORMAT
I16 PASCAL _DMC_01_channel0_position_cmp_by_gpio (U16 CardNo, U16 dir, U16 interval,
I32 trigger_cnt)
Purpose
Sets Compare trigger to GPIO control.
Parameters
Name Data Type Unit Description
CardNo U16 Number Unit CardNo is between 0~15
Dir U16 Number Unit 0: Positive 1: Negative
Interval U16 Number Unit Pulse Compare intervals
Trigger _cnt I32 Number Unit Trigger Compare total
Example
U16 CardNo = 0;
U16 Dir = 1;
U16 Interval;
I32 trigger_cnt;
I16 status = _DMC_01_channel0_position_cmp_by_gpio (CardNo, Dir, Interval, trigger_cnt);