Jogging

Jogging requires a Jog Velocity Slider and Jog Mode Selector. If either is not found, Jogging will be disabled.

Jogging increments are set the ini entry [FLEXGUI] JOG_INCREMENTS section. See Jog Settings for more information.

Required Jog Widgets

Function

Widget

Name

Jog Velocity Slider

QSlider

jog_vel_sl

Jog Mode Selector

QComboBox

jog_modes_cb

The Jog Velocity Label shows the current jog velocity setting from the Jog Velocity Slider

Optional Jog Widgets

Function

Widget

Name

Jog Velocity Label

QLabel

jog_vel_lb

Keyboard Jogging

Keyboard jogging uses the following keys to jog the X, Y, Z, A and B or C axes.

  • Right Arrow jogs the X axis in the positive direction

  • Left Arrow jogs the X axis in the negative direction

  • Up Arrow jogs the Y axis in the positive direction

  • Down Arrow jogs the Y axis in the negative direction

  • Page Up jogs the Z axis in the positive direction

  • Page Down jogs the Z axis in the negative direction

  • Insert jogs the A axis in the positive direction

  • Delete jogs the A axis in the negative direction

  • Home jogs the B or C axis in the positive direction

  • End jogs the B or C axis in the negative direction

Keyboard jogging can jog more than one axis at the same time.

There are two ways to enable keyboard jogging, the recommended way is to add the following to the ini file.

[FLEXGUI]
KEYBOARD_JOG = True

When keyboard jogging is enabled in this manner either Ctrl key must be pressed before pressing one of the jog keys. If you release the Ctrl key all axes will stop jogging.

The second way to enable keyboard jogging is to add a QCheckBox to turn keyboard jog on and off. Currently the jog keys work all the time when the QCheckBox is checked.

Keyboard Jogging

Function

Widget

Name

Jog Enable

QCheckBox

keyboard_jog_cb

Keyboard Turbo Jog

The Shift key can be used to jog at turbo speed. The turbo speed is set in the INI file in Section FLEXGUI. The speed is in user units per second and it applies to all axes. If your configuration is in inches a value of 1.0 would be 60 inches per minute.

Releasing Shift key while jogging in Turbo mode will stop the jog.

[FLEXGUI]
KEYBOARD_SHIFT_VEL = 1.0

Keyboard Jog Increment

To use the keyboard to select the jog increment in the jog_modes_cb combobox add the following to the [FLEXGUI] section of the INI file. When keyboard jogging is enabled you can press and hold the Ctrl key while pressing a number key to select jog incrments in the jog_modes_cb combobox.

[FLEXGUI]
KB_JOG_INCREMENT = True

Auto Keyboard Jog Focus

When using the keybaord_jog_cb QCheckbox to control jogging, the arrow keys may conflict with some controls (eg. edit lines, text boxes, spin boxes, and other controls that use the arrow keys)

FlexGUI can disable keyboard jogging when the keyboard focus is in one of these controls, and re-enable jogging when focus leaves that control.

To enable this mode, add the following configuration to the ini file:

[FLEXGUI]
KB_JOG_FOCUS = True

Note

This mode cannot be used with the KEYBOARD_JOG mode, and requires the keyboard_jog_cb QCheckBox to function.

Note

Qt Designer has various “focus policies” and options for navigating the GUI using the keyboard. Be sure that you understand how these options interact with one another and with keyboard jogging. Test your GUI’s keyboard jog and keyboard focus configuration thoroughly.

Jog Button Controls

Jog Controls Tutorial

This type of jog controls provides a button for each axis and jog direction.

Jog Button Widgets

Function

Widget

Name

Jog Plus Axis (0-8)

QPushButton

jog_plus_pb_(0-8)

Jog Minus Axis (0-8)

QPushButton

jog_minus_pb_(0-8)

Note

Jog Plus/Minus buttons use the Axis Index. So Jog Y Plus is jog_plus_pb_1.

Note

Jog Mode Selector reads the ini entry [FLEXGUI] JOG_INCREMENTS and if not found, only Continuous will be an option.

Jog Selected Axis Controls

To add Axis style jog controls where you select an axis then the plus/minus buttons jog the selected axis add a QRadioButton for each axis and a QPushButton for Plus and Minus. Axes are 0-8 for X, Y, Z, A, B, C, U, V, W.

Jog Selected Widgets

Function

Widget

Name

Axis Select (0-8)

QRadioButton

axis_select_(0-8)

Jog Plus

QPushButton

jog_selected_plus

Jog Minus

QPushButton

jog_selected_minus

Axis Index

X 0
Y 1
Z 2
A 3
B 4
C 5
U 6
V 7
W 8