Anaheim CLCI2000 Register # Bits Setting Range Description, Index Number, Base Setting not in HZ

Page 33

ADVANCED PROGRAMMING

In modifying an existing Library, or writing a new software library, It is strongly advised that programmers should use the current libraries for Basic or C, and transfer them to the different languages. The current libraries are 'bug free', so this will help the programmer to produce 'bug-free' code.

The CLCI2000 is designed to plug into any AT/ISA PC Compatible bus. This is the bus used by most PC Manufacturers. The CLCI2000 communicates over an 8-Bit bus. All information going into the board, and out of the board does so in 8 bit words. The CLCI2000 Indexer chip has a set of registers that can be written to through the bus. The description of these registers follows below.

REGISTER #

BITS

SETTING RANGE

DESCRIPTION

R0

24

0 to 16,777,215

INDEX NUMBER

 

 

 

 

R1

14

1 to 16,383

BASE SETTING (NOT IN HZ)

 

 

 

 

R2

14

1 to 16,383

MAX SETTING (NOT IN HZ)

 

 

 

 

R3

15

1 to 32,767

RAMP SETTING

 

 

 

 

R4

14

2 to 16,383

FACTOR

 

 

 

 

R5

24

0 to 16,777,215

POSITION REGISTER

 

 

 

 

R6

24

0 to 16,777,215

ENCODER REGISTER

 

 

 

 

REGISTER DESCRIPTION

The least significant byte (lowest) should always be written or read first, followed by the middle byte and then the most significant (highest). For writing operations, the bytes being written will be "buffered" until the most significant is written. At that time they will all be simultaneously transferred to the working registers. For reading operations, the read of the least significant byte causes the upper bytes to be copied into a holding buffer simultaneously to the least significant read. They can then be read afterwards without concern to their having possibly changed in the time between the successive reads.

30

Image 33
Contents CLCI2000 Series Copyright Limited WarrantyDisclaimer TrademarksTable of Contents Description Main FeaturesGeneral Description Packing InformationOrdering Information CLCI2004DPI65201 DPI65202AA37MMC-6 AA37MFC-10AA37MMC-10 AA2M37Specifications Installing the Board InstallationWiring to the CLCI2000 Address SettingsQuickstart with Quickbasic Connector Descriptions Clock Signals+5VDC Soft Limit Direction SignalsHome Limit Hard LimitEncoder Inputs InputsOutputs Programming with Quickbasic or Visualbasic for DOS Programming with Anaheim Automation LibrariesIndex ADR, Axis GO.CW ADR, Axis Speed ConsiderationsCLCISUB1.BAS Library ONE.AT.MAX.CCW ADDRESS, AXIS# ONE.AT.MAX.CW ADDRESS, AXIS#ORIGIN.INDEX.CCW ADDRESS, AXIS# RAMP.TO.BASE.CCW ADDRESS, AXIS# ORIGIN.INDEX.CW ADDRESS, AXIS#RAMP.TO.BASE.CW ADDRESS, AXIS# RAMP.TO.STOP.CCW ADDRESS, AXIS#SLEW.AT.BASE.CW ADDRESS, AXIS# SLEW.AT.BASE.CCW ADDRESS, AXIS#Initialize ADDR,AXIS Sample #1 Program SAMPLE1.BAS on the CLCI2000 DiskTOP.OF.LOOP If GET.INPUTADDR,1 = 1 then Index ADDR,AXIS,5000Initialize ADDR, Axis Sample #2 Program SAMPLE2.BAS on the CLCI2000 DiskHOME.TYPE.1 LIMIT.CONTROL ADDR, AXIS, 0, 0CLCISUBS.CPP Program Function Definitions Oneatmaxcw ADDRESS, Axis Oneatmaxccw ADDRESS, AxisOriginindexccw ADDRESS, Axis Originindexcw ADDRESS, AxisSlewatbasecw ADDRESS, Axis Slewatbaseccw ADDRESS, AxisSoftinputccw ADDRESS, Axis Softinputcw ADDRESS, AxisUsing the DLL with Visual Basic for Windows Using the CLCI2000 Indexer with WindowsObject Command1Procedure Click Programming in WindowsAnaheim Automation DLL Library Support WIN2000.BAS Program ListingCLCI2004 Program Generator Running the SoftwareFunction Window F3 Delete F1 InsertF4- Terminal F5 SaveF2 Single Step F1 Prog StopF3 Clear Program F4 Printing a ProgramCommand Window Command Summary CLCI2004 Program Generator Command DictionaryCommand Dictionary Direction + orEncoder Window any integer Encoder Resolution any numberFinish Move no value GO Index no valueJump to Line 1 to UNITS/SCALE any number Base Setting not in HZ Register # Bits Setting Range DescriptionMAX Setting not in HZ Ramp SettingCommand Buffer Register Description of Command Initial Setup Commands Input and Output Control CommandsList of Equations Acceleration = MAX Speed Base Speed / TUP Page