Specifications
BASIC commands
PROGRAMMING MANUAL 167
Revision 5.0
3.2.251 SRAMP
/i
3.2.252 STEP
See FOR..TO..STEP..NEXT.
3.2.253 STEP_RATIO
/i
Example >> PRINT SQR(4)
2.0000
See also N/A
Type Axis parameter
Syntax SRAMP
Description The SRAMP parameter contains the S-curve factor. The S-curve factor con-
trols the amount of rounding applied to the trapezoidal profiles. A value of 0
sets no rounding. A value of 10 sets maximum rounding. The default value of
the parameter is 0.
SRAMP is applied to the FORWARD, MOVE, MOVEABS, MOVECIRC,
MHELICAL and REVERSE commands.
Notes:
• Using S-curves increases the time required for the movement to com-
plete.
• The S-curve factor must not be changed while a move is in progress.
Arguments N/A
Example No example.
See also AXIS.
Type Axis command
Syntax STEP_RATIO(numerator, denominator)
Description This command sets up a ratio for the output of the stepper axis. Every servo-
period the number of steps is passed through the STEP_RATIO function
before it goes to the step pulse output.
Pulse Count Out = (numerator)/(denominator) * MPOS.
STEP_RATIO affects both MOVECIRC and CAMBOX.
Notes:
•The STEP_RATIO function operates before the divide by 16 factor in the
stepper axis.
• Large ratios should be avoided as they will lead to either loss of resolu-
tion or much reduced smoothness in the motion. The actual physical step
size x 16 is the BASIC resolution of the axis and use of this command
may reduce the ability of the Motion Controller to accurately achieve all
positions.
• STEP_RATIO does not replace UNITS. Do not use STEP_RATIO to
remove the x16 factor on the stepper axis as this will lead to poor step
frequency control.
Arguments • numerator
An integer number between 0 and 16777215 that is used to define the
numerator in the above equation.
• denominator
An integer number between 0 and 16777215 that is used to define the
denominator in the above equation.
Example Two axes are set up as X and Y but the axes ' steps per mm are not the
same. Interpolated moves require identical UNITS values on both axes in
order to keep the path speed constant and for MOVECIRC to work correctly.
The axis with the lower resolution is changed to match the higher step resolu-
tion axis so as to maintain the best accuracy for both axes.
' Axis 0: 500 counts per mm (31.25 steps per mm)
' Axis 1: 800 counts per mm (50.00 steps per mm)
BASE(0)
STEP_RATIO(500,800)
UNITS = 800
BASE(1)
UNITS = 800
See also N/A