jog_axis()

Controls jogging movement for a specific axis.

Supports both step and continuous jogging.
A fourth parameter can adjust the jog step size or rounding.

Syntax

jog_axis(step, axis, direction)
jog_axis(step, axis, direction, param)

Parameters

Parameter Type Description
step Number `1` for step jogging, `0` for continuous jogging.
axis Number The axis index (0 to 8) to jog.
direction Number If `step=1`, uses `-1`, `0`, or `1` for direction. If `step=0`, sets velocity.
param Number (Optional) Jog step size or rounding. Defaults to system setting. optional

Return Value

Examples

Step jog axis 0 (X) in the positive direction

jog_axis(1, 0, 1);

Continuous jog axis 2 (Z) at half speed

jog_axis(0, 2, 0.5);

Step jog axis 1 (Y) in the negative direction with a custom step size 0.5mm

jog_axis(1, 1, -1, 0.5);

See also

jog
jog_axis
jog_stop

centerex