Anaheim CLCI2000 user manual Command Buffer Register

Page 34

ADDRESS SELECTION (Hex)

FUNCTION

Base Address through Base Address + 3

READ INPUTS 1-5

(H00 -H03)

 

 

 

Base Address + 4 through Base Address + 7

SET OUTPUTS 1-5, A:HOME DIR, B:HOME

(H04-H07)

DIR

 

 

Base Address + 8 through Base Address + 11

READ INPUTS 6-10

(H08 -H0B)

 

 

 

Base Address + 12 through Base Address + 15

SET OUTPUTS 6-10, C:HOME DIR,

(H0C -H0F)

D:HOME DIR

 

 

Base Address + 16 (H10)

A:Command Buffer Register

 

 

Base Address + 17 (H11)

A:Register Bits 0-7 (LSB)

 

 

Base Address + 18 (H12)

A:Register Bits 8-15 (Mid)

 

 

Base Address + 19 (H13)

A:Register Bits 16-23 (MSB)

 

 

Base Address + 20 (H14)

B:Command Buffer Register

 

 

Base Address + 21 (H15)

B:Register Bits 0-7 (LSB)

 

 

Base Address + 22 (H16)

B:Register Bits 8-15 (Mid)

 

 

Base Address + 23 (H17)

B:Register Bits 16-23 (MSB)

 

 

Base Address + 24 (H18)

C:Command Buffer Register

 

 

Base Address + 25 (H19)

C:Register Bits 0-7 (LSB)

 

 

Base Address + 26 (H1A)

C:Register Bits 8-15 (Mid)

 

 

Base Address + 27 (H1B)

C:Register Bits 16-23 (MSB)

 

 

Base Address + 28 (H1C)

D:Command Buffer Register

 

 

Base Address + 29 (H1D)

D:Register Bits 0-7 (LSB)

 

 

Base Address + 30 (HIE)

D:Register Bits 8-15 (Mid)

 

 

Base Address + 31 (HIF)

D:Register Bits 16-23 (MSB)

 

 

CLCI2000 BOARD ADDRESSING

 

COMMAND BUFFER REGISTER

The two most significant bits of the Command Buffer Register write determine the 'Type' of command given to the board.

The two bits being '00' will handle all the commands involving motion, starting and stopping the pulses. See the Start or Stop Commands Table for further details.

The two bits being '01' or '10' will handle Initial Setup Commands for the board. This should be setup as shown in the example.

The two bits being '11' will handle the Input and Output Control Commands. This will allow the limit switches to be enables and disabled. See the Input and Output Control Commands Table for more details.

31

Image 34
Contents CLCI2000 Series Disclaimer Limited WarrantyCopyright TrademarksTable of Contents General Description Main FeaturesDescription Packing InformationDPI65201 CLCI2004Ordering Information DPI65202AA37MMC-10 AA37MFC-10AA37MMC-6 AA2M37Specifications Wiring to the CLCI2000 InstallationInstalling the Board Address SettingsQuickstart with Quickbasic Clock Signals Connector Descriptions+5VDC Home Limit Direction SignalsSoft Limit Hard LimitInputs Encoder InputsOutputs Index ADR, Axis GO.CW ADR, Axis Programming with Anaheim Automation LibrariesProgramming with Quickbasic or Visualbasic for DOS Speed ConsiderationsCLCISUB1.BAS Library ONE.AT.MAX.CW ADDRESS, AXIS# ONE.AT.MAX.CCW ADDRESS, AXIS#ORIGIN.INDEX.CCW ADDRESS, AXIS# RAMP.TO.BASE.CW ADDRESS, AXIS# ORIGIN.INDEX.CW ADDRESS, AXIS#RAMP.TO.BASE.CCW ADDRESS, AXIS# RAMP.TO.STOP.CCW ADDRESS, AXIS#SLEW.AT.BASE.CCW ADDRESS, AXIS# SLEW.AT.BASE.CW ADDRESS, AXIS#TOP.OF.LOOP If GET.INPUTADDR,1 = 1 then Sample #1 Program SAMPLE1.BAS on the CLCI2000 DiskInitialize ADDR,AXIS Index ADDR,AXIS,5000HOME.TYPE.1 Sample #2 Program SAMPLE2.BAS on the CLCI2000 DiskInitialize ADDR, Axis LIMIT.CONTROL ADDR, AXIS, 0, 0CLCISUBS.CPP Program Function Definitions Originindexccw ADDRESS, Axis Oneatmaxccw ADDRESS, AxisOneatmaxcw ADDRESS, Axis Originindexcw ADDRESS, AxisSoftinputccw ADDRESS, Axis Slewatbaseccw ADDRESS, AxisSlewatbasecw ADDRESS, Axis Softinputcw ADDRESS, AxisObject Command1Procedure Click Using the CLCI2000 Indexer with WindowsUsing the DLL with Visual Basic for Windows Programming in WindowsWIN2000.BAS Program Listing Anaheim Automation DLL Library SupportRunning the Software CLCI2004 Program GeneratorFunction Window F4- Terminal F1 InsertF3 Delete F5 SaveF3 Clear Program F1 Prog StopF2 Single Step F4 Printing a ProgramCommand Window Command Dictionary CLCI2004 Program Generator Command DictionaryCommand Summary Direction + orFinish Move no value Encoder Resolution any numberEncoder Window any integer GO Index no valueJump to Line 1 to UNITS/SCALE any number MAX Setting not in HZ Register # Bits Setting Range DescriptionBase Setting not in HZ Ramp SettingCommand Buffer Register Description of Command Input and Output Control Commands Initial Setup CommandsList of Equations Acceleration = MAX Speed Base Speed / TUP Page