Anaheim CLCI2000 user manual One.At.Max.Ccw Address, Axis#, One.At.Max.Cw Address, Axis#

Page 15

This Function will return the value of the +Hard Limit Switch. If the Limit Switch is ACTIVE or 0VDC, the function will return a 1. If the Limit Switch is NOT ACTIVE, the function will return a 0.

HOME.CCW ADDRESS, AXIS#

This Subroutine will HOME (sometimes called SLEW) the motor in the counterclockwise direction. The motion begins at Base Speed, ramps up to Max Speed and continues moving in that direction until the software instructs it to do something different, or a hardware Limit Switch is activated.

HOME.CW ADDRESS, AXIS#

This Subroutine will HOME (sometimes call SLEW) the motor in the clockwise direction. The motion begins at Base Speed, ramps up to Max Speed and continues moving in that direction until the software instructs it to do something different, or a hardware Limit Switch is activated.

HOME.INPUT ADDRESS, AXIS#

This Function will return the value for the Home Limit Switch. The Particular switch is determined by which Home Limit Switch you chose with the OUTPUTS Subroutine. The default value for this is the -Home Limit Switch. This will return a 1 if the Home Limit Switch is 'active' (0VDC), and a 0 if the switch is not active.

INDEX ADDRESS, AXIS#, NUMBER

This Subroutine will set the Index Number Register. This command is used in conjunction with the GO.CW and GO.CCW Command. The number in this register will not change until the next INDEX or POSITION Command is issued. A typical motor that is Half-stepped will go one revolution in 400 steps.

INITIALIZE ADDRESS, AXIS#

This Subroutine will set the all axes with initial settings. This must be done at the beginning of every program to ensure that all the default setting are made, and that all the outputs are off. The commands below are executed for each axis:

INDEX 1000

MOTION 200, 4000, 200000 LIMIT.CONTROL 1, 1, 1 SET.ENCODER 0 OUTPUT 0, 0, 0, 0, 0, 1, 1

LIMIT.CONTROL ADDRESS, AXIS#, SOFT, MARK, HOME

This Subroutine will either Activate or Deactivate the board features: SOFT LIMIT SWITCHES, ENCODER MARKER PULSE, OR HOME LIMIT SWITCH. A 1 will activate the feature, and a 0 will deactivate the feature. This command is useful for Homing Routines and other routines that are used to ramp down to base speed or to stop the motor. The Marker pulse is generally turned off until the rotary system is on the correct revolution to activate the pulse.

MOTION ADDRESS, AXIS#, BASE, MAX, RAMP

This Subroutine will set the Base Speed, Max Speeds, and Acceleration. All three values must be entered. The Base Speed is the speed at which the motor starts it's motion. For Half-step applications, motors can sometimes start as high as 2,000 Hz. A Half-step speed of 400 will turn 1 revolution per second. It is normally desirable to start the motor as fast as possible. This will decrease the total time it takes to make the move. The Max Speed is the speed at which the motor will reach it's top speed. For Half-step applications, motors can handle speeds as high as 20,000 Hz. A Max Speed of 20,000 will turn the motor 50 revolutions per second. The Ramp time is the rate or increase in the speed when the motion is going from Base Speed to Max Speed. This value is in Hz/Sec*Sec. A ramp value of 1,000 will increase the speed 1,000 Hz every second.

ONE.AT.MAX.CCW ADDRESS, AXIS#

This Subroutine will go one step at the maximum speed in the CCW Direction. This is an easy way to 'Jog' the motor.

ONE.AT.MAX.CW ADDRESS, AXIS#

This Subroutine will go one step at the maximum speed in the CW Direction. This is an easy way to 'Jog' the motor.

ORIGIN.INDEX.CCW ADDRESS, AXIS#

This Subroutine will move in the CCW Direction at base speed until the Encoder Marker is 'active'. When the Encoder Marker is 'active' the motion will stop. This is a good way to 'home' the motor to a rotary position using the encoder's

12

Image 15
Contents CLCI2000 Series Trademarks Limited WarrantyCopyright DisclaimerTable of Contents Packing Information Main FeaturesDescription General DescriptionDPI65202 CLCI2004Ordering Information DPI65201AA2M37 AA37MFC-10AA37MMC-6 AA37MMC-10Specifications Address Settings InstallationInstalling the Board Wiring to the CLCI2000Quickstart with Quickbasic Connector Descriptions Clock Signals+5VDC Hard Limit Direction SignalsSoft Limit Home LimitEncoder Inputs InputsOutputs Speed Considerations Programming with Anaheim Automation LibrariesProgramming with Quickbasic or Visualbasic for DOS Index ADR, Axis GO.CW ADR, AxisCLCISUB1.BAS Library ONE.AT.MAX.CCW ADDRESS, AXIS# ONE.AT.MAX.CW ADDRESS, AXIS#ORIGIN.INDEX.CCW ADDRESS, AXIS# RAMP.TO.STOP.CCW ADDRESS, AXIS# ORIGIN.INDEX.CW ADDRESS, AXIS#RAMP.TO.BASE.CCW ADDRESS, AXIS# RAMP.TO.BASE.CW ADDRESS, AXIS#SLEW.AT.BASE.CW ADDRESS, AXIS# SLEW.AT.BASE.CCW ADDRESS, AXIS#Index ADDR,AXIS,5000 Sample #1 Program SAMPLE1.BAS on the CLCI2000 DiskInitialize ADDR,AXIS TOP.OF.LOOP If GET.INPUTADDR,1 = 1 thenLIMIT.CONTROL ADDR, AXIS, 0, 0 Sample #2 Program SAMPLE2.BAS on the CLCI2000 DiskInitialize ADDR, Axis HOME.TYPE.1CLCISUBS.CPP Program Function Definitions Originindexcw ADDRESS, Axis Oneatmaxccw ADDRESS, AxisOneatmaxcw ADDRESS, Axis Originindexccw ADDRESS, AxisSoftinputcw ADDRESS, Axis Slewatbaseccw ADDRESS, AxisSlewatbasecw ADDRESS, Axis Softinputccw ADDRESS, AxisProgramming in Windows Using the CLCI2000 Indexer with WindowsUsing the DLL with Visual Basic for Windows Object Command1Procedure ClickAnaheim Automation DLL Library Support WIN2000.BAS Program ListingCLCI2004 Program Generator Running the SoftwareFunction Window F5 Save F1 InsertF3 Delete F4- TerminalF4 Printing a Program F1 Prog StopF2 Single Step F3 Clear ProgramCommand Window Direction + or CLCI2004 Program Generator Command DictionaryCommand Summary Command DictionaryGO Index no value Encoder Resolution any numberEncoder Window any integer Finish Move no valueJump to Line 1 to UNITS/SCALE any number Ramp Setting Register # Bits Setting Range DescriptionBase Setting not in HZ MAX Setting not in HZCommand Buffer Register Description of Command Initial Setup Commands Input and Output Control CommandsList of Equations Acceleration = MAX Speed Base Speed / TUP Page