Anaheim CLCI2000 user manual Slew.At.Base.Ccw Address, Axis#, Slew.At.Base.Cw Address, Axis#

Page 17

what the state of the five Outputs will be. A '1' for the Outputs will turn the Output ON, and a '0' will turn the output OFF. The last two numbers will specify which home switch will be chosen HOME.DIR.3 refers to AXIS 3 (also called Axis C), and HOME.DIR.4 refers to AXIS 4 (Also refered to as Axis D). Only one home switch may be chosen for each axis at a given time. A '1' will specify that the '+' or 'CW' direction Home Limit Switch will be chosen. A '0' will specify that the '-' or 'CCW' direction Home Limit Switch has been chosen. For Example:

SET.OUTPUT.2 1,1,1,0,0,1,1

would set outputs 5,4, and 3 ON (at a 0 VDC level), and outputs 2 and 1 Off (at an OPEN level). It would also set the +Home Limit Switch for both axis 3 and 4 to be the Active Switch.

SET.POSITION ADDRESS, AXIS#, VALUE

This Subroutine will set the number in the Position Register. The values should range between 0 and 16,777,215.

SLEW.AT.BASE.CCW (ADDRESS, AXIS#)

This Subroutine will SLEW the motor at Base Speed in the counterclockwise direction and continues moving in that direction until the software instructs it to do something different, or a hardware Limit Switch is activated.

SLEW.AT.BASE.CW (ADDRESS, AXIS#)

This Subroutine will SLEW the motor at Base Speed in the clockwise direction and continues moving in that direction until the software instructs it to do something different, or a hardware Limit Switch is activated.

SOFT.INPUT.CCW (ADDRESS, AXIS#)

This Function will return the value for the -Soft Limit Switch. A 1 will mean that the switch is active, and a 0 will mean the switch is not active.

SOFT.INPUT.CW (ADDRESS, AXIS#)

This Function will return the value for the +Soft Limit Switch. A 1 will mean that the switch is active, and a 0 will mean the switch is not active.

STOP.MOTION ADDRESS, AXIS#

This Subroutine will immediately stop the pulses.

WAIT.FOR.STOP (ADDRESS, AXIS#)

This Subroutine will pause the execution of the program until the Axis has completed its motion.

NOTE: THERE ARE OTHER SUBROUTINES AND FUNCTIONS THAT ARE CONTAINED IN THIS FILE THAT SHOULD NOT BE USED OR MODIFIED IN ANY WAY - THEY ARE USED INTERNALLY BY THE ABOVE SUBROUTINES AND FUNCTIONS, AND ANY ALTERATION MIGHT PRODUCE UNEXPECTED RESULTS.

14

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