User's Manual

I-8090 User Manual Version 1.0 06/2001
http://www.icpdas.com 1-13 ICPDAS
2. Software _
User’s applications could be compiled under DOS Turbo/Borland C/C++
environment. It should be include i8090.h and i8090.LIB to compile the target
execution file. The execution files can be downloaded under I-8000 main
system (execute 7188x.exe), and then run the target execution file as under
PC system. About the I-8000’s resource or environment, please refer to the
manual of I-8000 system or its software programming guide.
The following section will introduce the I-8090’s functions and examples.
2.1 constants and functions
Constants
#define YES 1
#define NO 0
#define ON 1
#define OFF 0
#define X_axis 1
#define Y_axis 2
#define Z_axis 3
#define ENC_QUADRANT 0x00
#define ENC_CW_CCW 0x10
#define ENC_PULSE_DIR 0x20
Functions
(1) unsigned char i8090_REGISTRATION(unsigned char cardNo,
unsigned int address)
In order to distinguish more than one I-8090 card in I-8000 platform,
the I-8090 cards should be registrated before using it. This command
will assign a card number=“cardNo” to I-8090 card address=”address” .
If there is not I-8090 at the given address, this command will return
“NO”.
cardNo: 0~19, assign the address as which card.