Anaheim CLCI2000 user manual CLCI2004 Program Generator, Running the Software, Function Window

Page 25

CLCI2004 PROGRAM GENERATOR

The CLCI2000 Series Indexers can be easily controlled by using the CLCI2004 Software. This software has been written to enable non programmers to easily control the indexer. The CLCI2004 Software has the capabilities to write programs using the user-friendly editor. The Software will allow control of all 4 axes of motion. If motion of the step motors needs to be combined with other computer boards or computer software there are no problems using ANAHEIM AUTOMATION's custom libraries. Two libraries have been created to use with Microsoft QuickBASIC and Borland C++ to allow the user to write software to control the CLCI2000 Series Indexers along with any other computer boards they might need. These libraries contain all the Subroutines and Functions needed to control the Indexer.

The Main Screen of the software is broken up into 3 windows - The Program Window in the upper left had corner, the Function Window in the lower left hand corner, and the Command Window on the right side of the Screen. On the left hand side of the screen, the current programming line is also displayed along with the MODE that the program is currently in.

The Program Window will show 10 lines of the program at a time. When a line is added to the program, it will appear in this window. The Function Window allows the user to do various things in conjunction with the 'Function Keys' on the keyboard. There is an OPTION MENU that can be selected by typing the function key F7. This will bring up the Option Menu which contains additional commands. Typing F7 again will return back to the original Function Window. The Command Window contains all the commands that will be used to program with. This window was made available to help the user to write programs.

+)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))),

*

 

 

 

 

 

 

 

 

 

*

*+)))))))))))))))))))))))))))))))))))))),

+)))))))))))))))))))),

*

 

 

**1

NUM

400

NUMBER OF STEPS 400

*

*+ CW MOTION

 

*

*

**2

BASE

50

BASE SPEED 50

*

*- CCW MOTION

 

*

*

**3

MAX

500

MAX SPEED 500

*

*G GO (INDEX)

 

*

*

**4

RAMP

1000

RAMP OF 1000

*

*H HOME

 

*

*

**5

DIR+

 

CW DIRECTION

* *P INDEX TO POSITION * *

**6

GO

 

INDEX

 

*

*

 

*

*

**7

BASE

1000

BASE SPEED 1000

* *I IF INPUTS THEN... * *

**8

MAX

20000

MAX SPEED 20000

* *L LOOP TO X,Y TIMES * *

**9

RAMP

200000

RAMP OF 200000

*

*O SET OUTPUTS TO

*

*

**10

DIR-

 

CCW

 

*

*J JUMP TO LINE

*

*

*.))))))))))))))))))))))))))))))))))))))-

*U UNTIL

*

*

 

*

 

 

 

 

 

 

*Q QUIT

 

*

*

*

 

 

 

 

 

 

*

 

*

*

*

LINE 3

 

 

 

 

*T UNITS/SCALE

 

*

*

*

MAIN MODE

 

 

 

*S SET POSITION

*

*

*

 

 

 

 

 

 

*W WAIT X SECONDS

*

*

*

 

 

 

 

 

 

*

 

*

*

*+)))))))))))0))))))))))))0)))))))))))),

*C CHANGE MENU

*

*

 

** F1 INSERT * F4 TERMINAL* F7 MORE

*

*

 

*

*

**

F2 ADD

* F5 SAVE

* F8 PROG RUN*

.))))))))))))))))))))- *

 

** F3 DELETE * F6 LOAD

* F9 QUIT

*

 

 

 

*

*.)))))))))))2))))))))))))2))))))))))))-

 

 

 

*

 

.))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))-

RUNNING THE SOFTWARE

The CLCI2000 was shipped with Anaheim Automation's CLCI2000 SERIES DISK. This disk contains the software libraries that are needed to control the CLCI2000 Series indexers. Choose the CLCI2000 Software by typing CLCI2004.EXE at the prompt. A screen similar to what is shown above should appear on your computer monitor with sample program Sample1 loaded.

THE FUNCTION WINDOW

The Function window is located in the lower left hand corner. This window shows the commands that execute many functions, including Editing a program, Running a program, Saving and Loading program, and much more. The F7 key

22

Image 25
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 Clock Signals Connector Descriptions+5VDC Soft Limit Direction SignalsHome Limit Hard LimitInputs Encoder 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.CW ADDRESS, AXIS# ONE.AT.MAX.CCW 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 ListingRunning the Software CLCI2004 Program GeneratorFunction 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 Input and Output Control Commands Initial Setup CommandsList of Equations Acceleration = MAX Speed Base Speed / TUP Page