Anaheim CLCI2000 user manual UNITS/SCALE any number

Page 32

SET OUTPUTS (5 characters, a space, 5 characters)

To select the command Set Outputs, type the Command Key 'O'. This command will set the outputs to the value that is specified. At power up, all outputs are in their open collector (off) state.

SET POSITION (-8,388,608 to 8,388,608)

To select the command Set Position, type the Command Key 'S'. This command will set the position to the value specified. Positive and Negative numbers are valid from 0 to ±8,388,608.

UNITS/SCALE (any number)

To select the command Units/Scale, type the Command Key 'T'. This command is used as a scale factor to allow any units to be programmed. For example, on a Half-Step Driver with a 10 pitch lead screw, it takes 4000 steps to go 1 inch. A scale factor of 1/4000 or .00025 would allow all the parameters to be programmed in inches.

UNTIL (5 characters, a space, 5 characters), Line#

To select the command Until, type the Command Key 'U'. This command will check the value of the Inputs and loop to the specified line number Until they match what was specified.

WAIT (.01 to any number)

To select the command Wait, type the Command Key 'W'. This command will pause the program the number of seconds specified, with the accuracy of 10 milliseconds or better. To Wait 4.5 seconds, enter the number 4.5 for the Wait Command.

29

Image 32
Contents CLCI2000 Series Limited Warranty CopyrightDisclaimer TrademarksTable of Contents Main Features DescriptionGeneral Description Packing InformationCLCI2004 Ordering InformationDPI65201 DPI65202AA37MFC-10 AA37MMC-6AA37MMC-10 AA2M37Specifications Installation Installing the BoardWiring to the CLCI2000 Address SettingsQuickstart with Quickbasic +5VDC Connector DescriptionsClock Signals Direction Signals Soft LimitHome Limit Hard LimitOutputs Encoder InputsInputs Programming with Anaheim Automation Libraries Programming with Quickbasic or Visualbasic for DOSIndex 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# ORIGIN.INDEX.CW ADDRESS, AXIS# RAMP.TO.BASE.CCW ADDRESS, AXIS#RAMP.TO.BASE.CW ADDRESS, AXIS# RAMP.TO.STOP.CCW ADDRESS, AXIS#SLEW.AT.BASE.CCW ADDRESS, AXIS# SLEW.AT.BASE.CW ADDRESS, AXIS#Sample #1 Program SAMPLE1.BAS on the CLCI2000 Disk Initialize ADDR,AXISTOP.OF.LOOP If GET.INPUTADDR,1 = 1 then Index ADDR,AXIS,5000Sample #2 Program SAMPLE2.BAS on the CLCI2000 Disk Initialize ADDR, AxisHOME.TYPE.1 LIMIT.CONTROL ADDR, AXIS, 0, 0CLCISUBS.CPP Program Function Definitions Oneatmaxccw ADDRESS, Axis Oneatmaxcw ADDRESS, AxisOriginindexccw ADDRESS, Axis Originindexcw ADDRESS, AxisSlewatbaseccw ADDRESS, Axis Slewatbasecw ADDRESS, AxisSoftinputccw ADDRESS, Axis Softinputcw ADDRESS, AxisUsing the CLCI2000 Indexer with Windows Using the DLL with Visual Basic for WindowsObject Command1Procedure Click Programming in WindowsWIN2000.BAS Program Listing Anaheim Automation DLL Library SupportFunction Window CLCI2004 Program GeneratorRunning the Software F1 Insert F3 DeleteF4- Terminal F5 SaveF1 Prog Stop F2 Single StepF3 Clear Program F4 Printing a ProgramCommand Window CLCI2004 Program Generator Command Dictionary Command SummaryCommand Dictionary Direction + orEncoder Resolution any number Encoder Window any integerFinish Move no value GO Index no valueJump to Line 1 to UNITS/SCALE any number Register # Bits Setting Range Description Base Setting not in HZMAX 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