Part 2 I-8091 2-axis stepping/servo control card
User Manual Part 1 I-8090 3-axis encoder card
I-8090/I-8091 User Manual
Version 1.0 06/2001
I-8090/I-8091 User ManualVersion 1.0 06/2001
I-8090 Contents
I-8091 Contents
I-8090 3-axis encoder card User Manual
Version 1.0 06/2001 Edition
Copyright Copyright 2001 by ICP DAS. All right are reserved Trademark
I-8090 3-axis encoder card
Features
8090 Contents
1. Hardware
1.1 I-8000 hardware address
I-8000, 4 slots I-8000, 8 slots
1.2 Registers of I-8090 board
counter
Quadrant Counting Mode
Fig3 CW/CCW counting mode 10 Pulse/Direction counting mode
power
1.3 LED Indicator
1C 2A
I-8090 User Manual
1.4 Connection
Encoder
I-8090 User Manual
Encoder
Version
06/2001
S8091 card
I-8090 User Manual
Version 1.0 06/2001
S8090 card
2.1 constants and functions
2. Software
Constants
Functions
address hardware address which defined at chapter
5 unsigned char i8090GETINDEXunsigned char cardNo
4 void i8090RESETENCODERunsigned char cardNo, unsigned char axis
7 void i8090RESETENCODER32unsigned char cardNo, unsigned char axis
32 bits encoder counts command sets
6 void i8090ENCODER32ISRunsigned char cardNo
8 long i8090GETENCODER32unsigned char cardNo, unsigned char axis
2.2 examples
2.2.3 Get X, Y, Z-axis encoder counter’s value
case Yaxis
2.2.4 Software 32 bits encoder counter programming
#define CARD1 1 #define CARD2 2 #define MAXSLOTNO
Show5DigitLed0x04, j value=value/10 j=value-10*value/10
break default
int key,ShowAxis i8090Slot=99 for j=0 jMAXSLOTNO j++
Delay5 //delay 5ms
case 0 ShowLedValuexvalue,Xaxis break
switch ShowAxis
case 1 ShowLedValueyvalue,Yaxis break
case 2 ShowLedValuezvalue,Zaxis break
I-8091 2-axis stepping/servo motor control card User Manual
Version 1.0 06/2001 Edition
Copyright Copyright 2001 by ICP DAS. All right are reserved Trademark
Features
I-8091 2-axis Stepping/Servo Motor Control Card
I-8091 Contents
1. Introduction
1.1 System Block Diagram
1.2 DDA Technology
Example Stepping Motor
Example Pulse type input Servo Motor
2 Hardware
2.1 I-8000 hardware address
I-8000, 4 slots I-8000, 8 slots
2.2 Registers of I-8091 board
2.3 LED Indicator
Y axis
2.4 Hardware Configuration 2.4.1 Limit switch configuration
2.4.3 Direction configuration
2.4.2 Output pulse mode configuration
2.4.4 Turn Servo ON/OFF Hold ON/OFF
2.4.5 Automatic protection
2.4.6 Set limit switch as normal close condition
2.5 Connection
2.5.1 Pin assignment of connector CN2
2.5.3 The internal circuit of limit switch input
I-8091 User Manual
2.5.4 Example of connection
Version 1.0 06/2001
2-16
Version 1.0 06/2001
I-8091 User Manual
S8090 card
2-17
3. Software
3.1 Functions
Constants
Version 1.0 06/2001
I-8091 User Manual
2-19
ICPDAS
2 i8091RESETSYSTEM unsigned char cardNo
3.1.1 Setting commands
unsigned int
LowSpeed
Low Speed ≤
DDA cycle≤
High Speed≤
LowSpeed = AccDec
unsigned char modeY
5 i8091SETMODEunsigned char cardNo, unsigned char modeX
6 i8091SETSERVOONunsigned char cardNo
unsigned char sonX, unsigned char sonY
normal open default
Limit switches ORG1, LS11, LS14, ORG2, LS21, LS24, EMG
cardNo card number 0~19
sw 0NO
11 i8091EMGSTOPunsigned char cardNo
3.1.2 Stop Commands
12 i8091LSPORGunsigned char cardNo
3.1.3 Simple motion commands
unsigned char DIR, unsigned char AXIS
14 i8091LSPPULSEMOVEunsigned char cardNo
16 i8091LSPMOVEunsigned char cardNo
15 i8091HSPPULSEMOVEunsigned char cardNo
unsigned char AXIS, long pulseN
unsigned char DIR, unsigned char AXIS
unsigned char DIR, unsigned char AXIS
17 i8091HSPMOVEunsigned char cardNo
Low speed
high speed
command i8091STOPX, i8091STOPY, i8091STOPALL, or i8091SLOWSTOP
Version 1.0 06/2001
I-8091 User Manual
2-29
ICPDAS
− 2047≤ # Xpulse≤ − 2047≤ #Ypulse≤
3.1.4 Interpolation commands
#Ypulse≤
23 i8091INTPLINE02unsigned char cardNo, long x, long y
unsigned int speed unsigned char accmode
Y X,Y CW X CCW where r adius = sqr tX2 + Y2
#≤ y 2−
#≤ x 2−
#≤ R 2−
R ≥
i8091INTPLINE02, i8091INTPCIRCLE02 and
26 unsigned char i8091INTPSTOP
3.1.5 Others
Page
end of program i8091RESETSYSTEMCARD1
i8091RESETSYSTEMCARD1
3.2 Start up and end of program
Start up program
Version 1.0 06/2001
I-8091 User Manual
2-38
ICPDAS
4.1 Detect I-8091 card
4. Example
4.3 ExampleDEMO1.cpp
4.2 Example DEMO.cpp
I-8091 User Manual
Version 1.0 06/2001