19
SLEW_AT_BASE_CCW (ADDRESS, AXIS)
This will cause the motor to move at base speed in the CCW direction.
SLEW_AT_BASE_CW (ADDRESS, AXIS)
This will cause the motor to move at base speed in the CW direction.
SOFT_INPUT_CCW (ADDRESS, AXIS)
This 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 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 (ADDRESS, AXIS)
This will immediately stop the pulses.
WAIT_FOR_STOP (ADDRESS, AXIS)
This will pause the execution of the program until the Axis has completed its motion.
NOTE: THERE ARE OTHER FUNCTIONS THAT ARE CONTAINED IN THIS FILE THAT SHOULD NOT BE USED
OR MODIFIED IN ANY WAY - THEY ARE USED INTERNALLY BY THE ABOVE FUNCTIONS, AND ANY
ALTERATION MIGHT PRODUCE UNEXPECTED RESULTS.
SAMPLE PROGRAM #3
This program will move a distance of 400 steps in the clockwise direction, with a base speed of 100 steps/second
and a Max Speed of 2000 steps/second. The ramping for both acceleration and deceleration would be 100,000
steps/second/second.
//PROGRAM FOR BORLAND C++
#include CLCISUBS.CPP
void main ( )
{int address = 0x300; 'this sets up the correct address
int axis = 1; 'this sets up the axis number
INITIALIZE (address, axis); 'this initializes the board
MOTION (address, axis, 100, 2000, 100000); 'this sets up the motion
INDEX (address, axis, 400); 'this sets up the distance to move
GO_CW (address, axis); 'this initiates the move
}