ICP DAS USA 3-axis encoder card, 2-axis stepping/servo, I-8091 2-axis stepping/servo Restriction

Page 50

I-8091 User Manual

 

Version 1.0 06/2001

Restriction:

 

 

1 ≤

DDA_ cycle

254

1 ≤

Acc _ Dec

200

1 ≤

Low _ Speed

200

Low_ Speed

High_ Speed≤ 2047

Low_Speed >= Acc_Dec

default value DDA_cycle = 10 Acc_Dec = 1 Low_Speed = 10 High_Speed = 100

Example:

i8091_SET_VAR(1, 5, 2, 10, 150);

where

DDA_cycle = 5 --> DDA period = (5+1)*1.024ms = 6.144ms

Acc_Dec = 2 --> Acc/Dec speed = 2/(6.144ms)^2 = 52981 p/s^2

Low_Speed = 10 --> low speed = 10/6.144ms = 1628pps High_Speed = 150 --> high speed = 150/6.144ms = 24414pps

(4)i8091_SET_DEFDIR(unsigned char cardNo, unsigned char defdirX,

unsigned char defdirY)

Sometimes, the output direction of X-axis, Y-axis is undesired direction due to the motor’s connection or gear train. In oder to unify the output direction as shown in Fig.(5) and Fig.(6). Where CW/FW direction is defined as toward outside from motor, CCW/BW direction is defined as toward inside from motor. i8091_SET_DEFDIR( ) command provide parameters to define the rotating direction of motor.

cardNo : board number 0~19.

defdirX : X axis direction definition

defdirY : Y axis direction definition 0 : NORMAL_DIR

http://www.icpdas.com

2-21

ICPDAS

Image 50
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