Anaheim CLCI2000 user manual Quickstart with Quickbasic

Page 9

QUICKSTART WITH QUICKBASIC

This is a quick procedure for hooking up the CLCI2000 Series Computer Board with a Driver and Step Motor.

1.Plug the CLCI2000 Series Computer Indexer into the computer.

2.Connect the cable from the computer to the DPI Series Driver Pack (verify that the LED lights up when the connector is plugged in), or alternately, connect only the Clock, Direction, and 0VDC signals from the computer connector to the driver pack.

3.Check the Driver for the appropriate voltage or current settings (whatever applies for specific driver/motor used).

4.Make sure that Power is OFF to the Driver, and connect the Step Motor to the Driver. Make sure the wires are firmly connected.

5.Start QuickBASIC. (If you do not think that you have a copy of QuickBASIC - Microsoft shipped this with all versions of DOS 5.0 and greater - look in your DOS Directory for QBASIC.EXE.)

6.Type ALT-F(hold the ALT Key down and type F)

7.Type B:\SAMPLE3.BAS (AND HIT ENTER 5)

(it is assumed here that the disk is in drive B - if the disk was put somewhere else, enter the correct path)

8.Type ALT-Rand choose RUN (hold the ALT Key down and type R, then use the arrow keys)

If all this was done successfully, the motor should turn 400 steps, pause for 1 second, and go 400 steps again.

6

Image 9
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