ICP DAS USA I-8090 3-axis encoder card, I-8091 2-axis stepping/servo user manual DDA Technology

Page 34

I-8091 User Manual

Version 1.0 06/2001

1.2 DDA Technology

The DDA chip is the heart of I-8091 card, it will generate equal-space pulse train corresponding to specific pulse number during a DDA period. This mechanism is very useful to execute pulse generation and interpolation function. The DDA period can be determined by DDA cycle. Table(1) shows the relation among DDA cycle, DDA period and output pulse rate. When DDA cycle set to 1, the DDA period is equal to (1+1)x1.024ms = 2.048ms. The output pulse number can be set to 0~2047, therefore the maximum output pulse rate will be 1Mpps. The minimum output pulse rate is 3.83pps when set DDA cycle=254 (DDA period = (254+1)x1.024ms = 261.12ms).

DDA period

DDA cycle

X pulse = 3

Y pulse = 6

Z pulse = 4

Fig.(2) DDA mechanism

Table(1) The Relation among DDA cycle, DDA period and output pulse rate.

DDA cycle

DDA period

Max. pulse

Min. pulse rate (n=1)

 

 

rate(n=2047)

 

1

2.048ms

999511pps

488pps

2

3.072ms

666341pps

325pps

3

4.096ms

.

.

.

.

.

.

N

(N+1)*1.024ms

2047/(DDA period)

1/(DDA period)

.

.

.

.

254

261.12ms

7839pps

3.83pps

The DDA cycle can be set by i8091_SET_VAR() command which decribed in charpter 3. The selection criterion of DDA cycle was described as following.

http://www.icpdas.com

2-5

ICPDAS

Image 34
Contents Icpdas Contents Contents 8090 Axis encoder card Version 1.0 06/2001 EditionFeatures 8090 3-axis encoder cardVersion 06/2001 I-8000 hardware address 8000, 4 slots 8000, 8 slotsRegisters of I-8090 board RST INH SELFig2 Quadrant counting mode 01 CW/CCW counting mode Fig3 CW/CCW counting mode Pulse/Direction counting mode LED Indicator Power 1C 2AConnection EgndEncoder CW/PULSE CCW/DIR Index S8091 card Constants and functions ConstantsIcpdas Unsigned char i8090GETINDEXunsigned char cardNo Icpdas Examples Get X, Y, Z-axis encoder counter’s value Icpdas Break default break Return value Icpdas Icpdas Icpdas \r\n Icpdas Icpdas 8091 Axis stepping/servo motor control card 8091 2-axis Stepping/Servo Motor Control Card Contents System Block Diagram IntroductionDDA Technology Example Stepping Motor Example Pulse type input Servo Motor Hardware 8000 hardware addressRegisters of I-8091 board RstffPower Hardware Configuration Limit switch configuration Limit switch configuration of X axisTurn Servo ON/OFF Hold ON/OFF Output pulse mode configurationDirection configuration Automatic protectionSet limit switch as normal close condition Pin assignment of connector CN2 ExtgndInternal circuit of limit switch input Internal circuit of pulse output pinExample of connection Fan-out type driver VEXTAs motor driverS8091 card Software FunctionsIcpdas Setting commands I8091RESETSYSTEM unsigned char cardNoRestriction Reversedir Icpdas Stop Commands 11 i8091EMGSTOPunsigned char cardNoSimple motion commands High speed move #pulseN. cardNo board number 0~19 Icpdas Example I8091HSPMOVE1, CW, Xaxis Example I8091HSPMOVE1, CW, Yaxis getch I8091SLOWSTOP1, Yaxis Interpolation commands Example I8091INTPLINE1,2000,-3000 I8091INTPLINE1,-500,200 CCW #≤ x 2− Unsigned char i8091INTPSTOP Others Icpdas Start up and end of program = Cwccw Example Detect I-8091 cardExample DEMO.cpp ExampleDEMO1.cpp