Controls

Command Buttons Tutorial Home Controls Tutorial

Push Buttons

Controls are QPushButtons that can be placed anywhere you like. Use the Name from the list below for each control widget objectName. Replace the (0-8) with the joint number or axis index. More controls are in Tools.

Control Push Buttons

Control Function

Object Name

Open a G-code File

open_pb

Edit a G-code File

edit_pb

Reload a G-code File

reload_pb

Edit Tool Table

edit_tool_table_pb

Edit Ladder

edit_ladder_pb

Reload Tool Table

reload_tool_table_pb

Save As a New Name

save_as_pb

Quit the Program

quit_pb

E-Stop Toggle

estop_pb

Power Toggle

power_pb

Run a Loaded G-code File

run_pb

Run From Line

run_from_line_pb

Step one Logical Line

step_pb

Pause a Running Program

pause_pb

Resume a Paused Program

resume_pb

Stop a Running Program

stop_pb

Home All Joints

home_all_pb

Home a Joint (0-8)

home_pb_(0-8)

Unhome All Joints

unhome_all_pb

Unhome a Joint (0-8)

unhome_pb_(0-8)

Zero an Axis

zero_(axis letter)_pb

Manual Mode

manual_mode_pb

Flood Toggle

flood_pb

Mist Toggle

mist_pb

Clear Error History

clear_errors_pb

Copy Error History

copy_errors_pb

Clear Information History

clear_info_pb

Show HAL

show_hal_pb

HAL Meter

hal_meter_pb

HAL Scope

hal_scope_pb

_images/controls-01.png

Note

Touch-Off buttons require a Double Spin Box named touchoff_dsb

Note

Tool-Touch-Off buttons require a Double Spin Box named tool_touchoff_dsb

E Stop and Power

The E Stop push button Open/Closed state text can be set by adding two string type Dynamic Properties open_text and closed_text. The text in those two properties will be used if found. The default text is E Stop Open and E Stop Closed.

_images/estop-01.png

The Power push button On/Off state text can be set by adding two string type Dynamic Properties on_text and off_text. The text in those two properties will be used if found. The default text is Power Off and Power On.

_images/power-01.png

Note

To have two words be above and below insert a n between the words.

_images/estop-02.png

This is how the above looks in the GUI

_images/estop-03.png

Coordinate System Controls

A QPushButton can be used to clear the curren cooridnate system by using 0 as the index or any one of the 9 coordinate systems with (1-9).

To clear the G92 coordinate system use 10 as the index.

Coordinate System Buttons

Control Function

Object Name

Clear Current G5x

clear_coord_0

Clear G5x Coordinate System

clear_coord_(1-9)

Clear G92 Coordinate System

clear_coord_10

Options

The QPushButton options are toggle-type buttons; press to turn on, press again to turn off. They are normal push buttons but Flex automatically makes them checkable.

Options

Function

Widget

Name

Flood Toggle

QPushButton

flood_pb

Mist Toggle

QPushButton

mist_pb

Optional Stop at M1

QPushButton

optional_stop_pb

Block Delete line that starts with /

QPushButton

block_delete_pb

Feed Override Enable/Disable

QPushButton

feed_override_pb

Axis Index

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

Jog Controls

Jog Controls Tutorial

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

Jog 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)

Jog Velocity Slider

QSlider

jog_vel_sl

Jog Velocity Label

QLabel

jog_vel_lb

Jog Mode Selector

QComboBox

jog_modes_cb

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 [DISPLAY] INCREMENTS and if not found, only Continuous will be an option.

Warning

[DISPLAY] INCREMENTS must be a comma seperated list or it will be ignored.

The following settings can be used in the DISPLAY section of the ini file:

Jog Increments                INCREMENTS = 0.100, 0.010, 0.001
Jog Increments                INCREMENTS = 1inch, 0.5 in, 1cm, 1mm
Jog Velocity minimum          MIN_LINEAR_VELOCITY = 0.1
Jog Velocity maximum          MAX_LINEAR_VELOCITY = 1.0
Jog Velocity default          DEFAULT_LINEAR_VELOCITY = 0.2

Note

Jog incremnts can have unit lables, the following are valid unit labels cm, mm, um, inch, in or mil. If no unit labels are found the the configuration units are used.

Overrides

Overrides Tutorial

A QSlider is used to control the following functions and the corresponding label shows the value of the slider:

Overrides

Function

Widget

Object Name

Feed Override Slider

QSlider

feed_override_sl

Feed Override Percent

QLabel

feed_override_lb

Rapid Override Slider

QSlider

rapid_override_sl

Rapid Override Percent

QLabel

rapid_override_lb

Spindle Override Slider

QSlider

spindle_override_sl

Spindle Override Percent

QLabel

spindle_override_0_lb

Override Limits

QCheckBox

override_limits_cb

The following settings can be used in the DISPLAY section of the ini file:

Feed Override maximum             MAX_FEED_OVERRIDE
Spindle Override maximum          MAX_SPINDLE_OVERRIDE

Override Presets

Feed, Rapid and Spindle overrides can have a preset button(s) for different preset amounts. Replace the nnn with the percent of override you want that button to use.

Override Presets

Function

Widget

Object Name

Feed Override Preset

QPushButton

feed_percent_nnn

Rapid Override Preset

QPushButton

rapid_percent_nnn

Spindle Override Preset

QPushButton

spindle_percent_nnn

Note

The maximum override for Rapid is 100

Double Spin Boxes

Touch Off Value         touchoff_dsb
Tool Touch Off Value    tool_touchoff_dsb

Note

You don’t have to use any of these controls; Flex GUI is flexible.