Anaheim CLCI2000 CLCI2004 Program Generator Command Dictionary, Command Summary, Direction + or

Page 29

CLCI2004 PROGRAM GENERATOR COMMAND DICTIONARY

Below is a summary of the commands that are available on the CLCI2004 Program Generator. These command definitions will differ from those command available in the Libraries provided by Anaheim Automation. This program is generally used to setup a machine - and is not intended to be used in the final design of the machine. The Libraries are intended for this purpose, and therefore contain commands that allow for more flexibility and control. Use the Libraries as the basis for machine control.

 

 

COMMAND SUMMARY

Command

Command

Description

Key

 

 

A

Axis Select

selects the Active Axes

B

Base Speed

sets the Base speed

E

Encoder On/Off

either enable or disables the encoder

F

Finish Move

waits until motion has stopped and autocorrects

G

Go Index Number

indexes the number to index

H

Home

homes the motors

I

If Inputs...

loops to a line number if the Inputs match the value

J

Jump to Line

jumps to another line

L

Loop to Line

loop to another line a specified number of times

M

Max Speed

sets the Maximum Speed

N

Number to Index

sets the number to index

O

Set Outputs

sets the outputs

P

Go to Position

indexes to a given position

Q

Quit

stops program execution

R

Ramp

sets the ramp value

S

Set Position

sets the position value

T

Units (Scale)

sets the Scale Factor

U

Until inputs...

loops to a line until the Inputs match the value

V

Retries

sets the Encoder

W

Wait

waits a certain time before continuing on

Y

Encoder Window

sets the Encoder Window

Z

Encoder Resolution

sets the Encoder Resolution

±

Direction

sets the Direction

 

 

 

COMMAND DICTIONARY

AXIS SELECTION (any combination of A,B,C, OR D)

To select an Axis, type the Command Key 'A'. The Function Window will ask for the user to Enter the appropriate axes to be Active. Enter the Letters 'ABCD' for all axes, or enter the Axis letters for any combination of Active Axes. The default value for Active Axes is 'A'.

BASE SPEED (.001 to 2,50,000)

To select the Base Speed, type the Command Key 'B'. This command will set the Base Speed. The default for this number is 50.

DIRECTION (+ or -)

To select the direction, type the Command Key '+' or '-'. This parameter specifies which direction the motor will turn when indexed by the Go Command. The default value for this is '+' or the Clockwise Direction.

ENCODER ON/OFF (0 or 1)

26

Image 29
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 +5VDC Connector DescriptionsClock Signals Soft Limit Direction SignalsHome Limit Hard LimitOutputs Encoder InputsInputs Programming with Quickbasic or Visualbasic for DOS Programming with Anaheim Automation LibrariesIndex ADR, Axis GO.CW ADR, Axis Speed ConsiderationsCLCISUB1.BAS Library ORIGIN.INDEX.CCW ADDRESS, AXIS# ONE.AT.MAX.CCW ADDRESS, AXIS#ONE.AT.MAX.CW 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 ListingFunction Window CLCI2004 Program GeneratorRunning the Software 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 List of Equations Initial Setup CommandsInput and Output Control Commands Acceleration = MAX Speed Base Speed / TUP Page