Anaheim CLCI2000 Oneatmaxccw ADDRESS, Axis, Oneatmaxcw ADDRESS, Axis, Originindexcw ADDRESS, Axis

Page 21

ONE_AT_MAX_CCW (ADDRESS, AXIS)

This will go one step at the maximum speed in the CCW Direction.

ONE_AT_MAX_CW (ADDRESS, AXIS)

This will go one step at the maximum speed in the CW Direction.

ORIGIN_INDEX_CCW (ADDRESS, AXIS)

This will move at base speed until the EZ Channel of the Encoder goes active, and the pulses will stop.

ORIGIN_INDEX_CW (ADDRESS, AXIS)

This will move at base speed until the EZ Channel of the Encoder goes active, and the pulses will stop.

POSITION (ADDRESS, AXIS, VALUE)

This will go to the position specified.

RAMP_TO_BASE_CCW (ADDRESS, AXIS)

This will ramp the motor from Max Speed to Base Speed.

RAMP_TO_BASE_CW (ADDRESS, AXIS)

This will ramp the motor from Max Speed to Base Speed.

RAMP_TO_STOP_CCW (ADDRESS, AXIS)

This will ramp the motor from Max Speed to Base Speed and stop.

RAMP_TO_STOP_CW (ADDRESS, AXIS)

This will ramp the motor from Max Speed to Base Speed and stop.

READ_ENCODER (ADDRESS, AXIS)

This will read the value in the encoder register.

READ_POSITION (ADDRESS, AXIS)

This will return the Value in the Position Register.

SET_ENCODER (ADDRESS, AXIS, VALUE)

This will set the number in the Encoder Register. The values should range between 0 and 16777215.

SET_OUTPUT1 (ADDRESS, OUT5, OUT4, OUT3, OUT2, OUT1, HOME.DIR.1, HOME.DIR.2)

This will set the 5 outputs and the active direction for the Home Limit Switch. The five numbers specify 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 direction for the home switch (+ or -) will be chosen. Only one direction for the 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_OUTPUT1 &H300,1,1,1,0,0,1,1

would set outputs 5,4, and 3 ON, and outputs 2 and 1 Off. It would also set the +Home Limit Switch for both axis 1 and 2 to be the Active Switch.

SET_OUTPUT2 (ADDRESS, OUT10, OUT9, OUT8, OUT7, OUT6, HOME.DIR.1, HOME.DIR.2)

This will set the 5 outputs and the active direction for the Home Limit Switch. The five numbers specify 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 direction for the home switch (+ or -) will be chosen. Only one direction for the 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_OUTPUT2 &H300,1,1,0,1,0,0,0,1

would set outputs 5 and 3 ON, and outputs 4,2 and 1 Off. It would also set the +Home Limit Switch for axis 3 and the -Home Limit Switch for Axis 4.

SET_POSITION (ADDRESS, AXIS, VALUE)

This will set the number in the Position Register.

18

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