beautypg.com

Delta Electronics High-Speed PCI 12-Axis Motion Control Card PCI-DMC-A01 User Manual

Page 495

background image

Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01

Revised March, 2012

39-9

39.8 _DMC_01_channel0_position_cmp

FORMAT

I16 PASCAL _DMC_01_channel0_position_cmp (U16 CardNo, I32 start, U16 dir,
U16 interval, U32 trigger_cnt)


Purpose

Executes Compare1.


Parameters

Name

Data Type

Unit

Description

CardNo

U16

Number Unit CardNo is between 0~15

Start

I32

Number Unit Starting position for Compare

Dir

U16

Number Unit 0: Positive 1: Negative

Interval

U16

Number of

pulses

Pulse Compare intervals

Trigger_cnt U32

Number

Unit Trigger Compare total


Example

U16 CardNo = 0;
I32 Start = 100000;
U16 Dir = 0;
U16 Interval = 10; //10 pulse
U32 Trigger_cnt = 50000;

I16 status = _DMC_01_channel0_position_cmp (CardNo, start, dir, interval, trigger_cnt);

This manual is related to the following products: