Anaheim CLCI2000 Encoder Resolution any number, Encoder Window any integer, Finish Move no value

Page 30

To select Encoder On/Off, type the Command Key 'E'. This parameter specifies if Encoder Correction is to be Enabled or Disabled. A '1' will Enable Encoder Correction, a '0' will Disable it. The Indexer will do all the appropriate corrections needed when the Finish Move (F) command is executed. The default value for this is 0, or no encoder correction.

ENCODER RESOLUTION (any number)

To select Encoder Resolution, type the Command Key 'Z'. This parameter specifies how many 'lines' the Encoder has. The default value for this is 400 lines.

ENCODER RETRIES (any real number)

To select Encoder Retries, type the Command Key 'V'. This parameter specifies how many times the CLCI2000 will try to obtain the correct position. For a value set at 1, the CLCI2000 will move the correct distance, and then retry once if the encoder value does not match the number of steps the motor was supposed to take. When the CLCI2000 does a retry, it will always retry the move at the Base Speed. The default value for Encoder Retries is 0.

ENCODER WINDOW (any integer)

To select Encoder Window, type the Command Key 'Y'. This is the allowable error the encoder might have at the end of a move without correcting. The units for this is in Quadrature Pulses. For a 400 line encoder, there will be 1600 quadrature pulses per one revolution. The default value for this is 20.

FINISH MOVE (no value)

To select Finish Move, type the Command Key 'F'. This is the command that will wait until all motion is complete before continuing on in the program. This is the Command that also tells the Indexer to autocorrect at this time if the Encoder Correction is Enabled. This command is useful because it enables other operations to be done while an axis is indexing. The sample program below is a section of a larger program. It shows how a Finish command might be used.

10 AXIS A

11N4000

12+

13G

14UNTL XXXXX XXX1X 14

15AXIS B

16-

17GO

18AXIS AB

19FNSH

Line 10 chooses Axis A as the only active axis. It sets the number to index at 4000, and initiates an index in the Clockwise Direction. After the Go Command, the program will wait until input 2 becomes active (0 VDC) before it continues on. Once Input 2 is activated, the program will select Axis B and index in the Counterclockwise direction. The Finish Command then will cause the program to wait until the active axes have completed their motion before continuing on.

GO (INDEX) (no value)

To select Go, type the Command Key 'G'. This is the command that will index the motor the number of steps specified by the Number To Index Command. NOTE: To halt program execution until the motion on all axes has stopped, include the Finish Command in the appropriate position.

27

Image 30
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 Connector Descriptions Clock Signals+5VDC Home Limit Direction SignalsSoft Limit Hard LimitEncoder Inputs 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.CCW ADDRESS, AXIS# ONE.AT.MAX.CW 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 SupportCLCI2004 Program Generator Running the SoftwareFunction 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 Initial Setup Commands Input and Output Control CommandsList of Equations Acceleration = MAX Speed Base Speed / TUP Page