ICP DAS USA 3-axis encoder card, 2-axis stepping/servo Registers of I-8090 board, Rst Inh Sel

Page 8

I-8090 User Manual

Version 1.0 06/2001

1.2 Registers of I-8090 board

The I-8090card’s registers table as following.

Register

Add.

R/W

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

ID

0x00

R

 

 

 

0x0D

 

 

 

XDATA

0x01

R

 

 

X-axis encoder value

 

 

YDATA

0x02

R

 

 

Y-axis encoder value

 

 

ZDATA

0x03

R

 

 

Z-axis encoder value

 

 

INDEX

0x04

R

 

 

 

 

 

ZI

YI

XI

XCTRL

0x00

W

 

 

S1

S0

 

/RST

/INH

/SEL

YCTRL

0x01

W

 

 

S1

S0

 

/RST

/INH

/SEL

ZCTRL

0x02

W

 

 

S1

S0

 

/RST

/INH

/SEL

Register

Add.

R/W

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

ID

0x00

R

 

 

 

0x0D

The ID register is read only and its value is fixed as 0x0D. User can check this register to identify I-8090 card or not.

Register Add. R/W Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

XDATA 0x01 RX-axis encoder value

XDATA: the X-axis encoder counter value can be read out from this register. The low byte value of 16 bits encoder counter can be read out when set /SEL=0 (XCTRL register), the high byte can be read out when set /SEL=1 (XCTRL register).

Register Add. R/W Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

YDATA 0x02 RY-axis encoder value

YDATA : the Y-axis encoder counter value can be read out from this register. The low byte value of 16 bits encoder counter can be read out when set /SEL=0 (YCTRL register), the high byte can be read out when set /SEL=1 (YCTRL register).

Register Add. R/W Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

ZDATA 0x03 RZ-axis encoder value

ZDATA : the Z-axis encoder counter value can be read out from this register. The low byte value of 16 bits encoder counter can be read out when set

http://www.icpdas.com

1-5

ICPDAS

Image 8
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 axisOutput pulse mode configuration Direction configurationTurn Servo ON/OFF Hold ON/OFF 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