ICP DAS USA I-8091 2-axis stepping/servo Fig2 Quadrant counting mode 01 CW/CCW counting mode

Page 9

I-8090 User Manual

Version 1.0 06/2001

/SEL=0 (ZCTRL register), the high byte can be read out when set /SEL=1 (ZCTRL register).

Register

Add.

R/W

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

INDEX

0x04

R

 

 

 

 

 

ZI

YI

XI

The index input C+/C- can read out from this register. These bits are active high.

XI : indicate the index of X-axis (C+/C- input).

YI : indicate the index of Y-axis (C+/C- input).

ZI : indicate the index of Z-axis (C+/C- input).

Register

Add.

R/W

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

XCTRL

0x00

W

 

 

S1

S0

 

/RST

/INH

/SEL

YCTRL

0x01

W

 

 

S1

S0

 

/RST

/INH

/SEL

ZCTRL

0x02

W

 

 

S1

S0

 

/RST

/INH

/SEL

The XCTRL,YCTRL and ZCTRL register are control registers for X-axis, Y-

axis, Z-axis respectively.

/RST : reset counter to zero

/INH : inhibit the counter data latch. This bit must be set 0 before read out the counter value to inhibit the counter data latch to DATA registers.

/SEL : to select low byte or high byte for reading the counter value. 0 : low byte

1 : high byte

S1, S0 : to select counting mode 00 : quadrant counting mode

A

B

counter

1

2

3

4

5

6

Quadrant Counting Mode

Fig(2) Quadrant counting mode

01 : CW/CCW counting mode

http://www.icpdas.com

1-6

ICPDAS

Image 9
Contents Icpdas Contents Contents Version 1.0 06/2001 Edition 8090 Axis encoder card8090 3-axis encoder card FeaturesVersion 06/2001 8000, 4 slots 8000, 8 slots I-8000 hardware addressRST INH SEL Registers of I-8090 boardFig2 Quadrant counting mode 01 CW/CCW counting mode Fig3 CW/CCW counting mode Pulse/Direction counting mode Power 1C 2A LED IndicatorEgnd ConnectionEncoder CW/PULSE CCW/DIR Index S8091 card Constants Constants and functionsIcpdas 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 Introduction System Block DiagramDDA Technology Example Stepping Motor Example Pulse type input Servo Motor 8000 hardware address HardwareRstff Registers of I-8091 boardPower Limit switch configuration of X axis Hardware Configuration Limit switch configurationDirection configuration Output pulse mode configurationTurn Servo ON/OFF Hold ON/OFF Automatic protectionSet limit switch as normal close condition Extgnd Pin assignment of connector CN2Internal circuit of pulse output pin Internal circuit of limit switch inputFan-out type driver VEXTAs motor driver Example of connectionS8091 card Functions SoftwareIcpdas I8091RESETSYSTEM unsigned char cardNo Setting commandsRestriction Reversedir Icpdas 11 i8091EMGSTOPunsigned char cardNo Stop CommandsSimple 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 Detect I-8091 card ExampleExampleDEMO1.cpp Example DEMO.cpp