Manual Data Input (MDI)

MDI Interface

The MDI Interface uses a QLineEdit to enter commands. Three different ways can but used to enter the commands. Using the Keyboard, using a popup G code in a touch screen which can handle all G code entries and last a full popup Keyboard which can enter any valid command including DEBUG prints.

MDI Command Entry

Function

Input

Widget

Name

Enter MDI

Keyboard

QLineEdit

mdi_command_le

Enter MDI

G code Popup

QLineEdit

mdi_command_gc_le

Enter MDI

Keyboard Popup

QLineEdit

mdi_command_kb_le

G code popup window

_images/gcode-popup.png

Keyboard popup window

_images/keyboard-popup.png

MDI history uses a QListWidget named mdi_history_lw to display the MDI history. You can click on a line in the history display to copy the command to the MDI Interface

MDI Controls

The following QPushButtons can be used to execute MDI commands, copy or clear MDI history

MDI Push Buttons

Run MDI Command

run_mdi_pb

Copy the MDI History to the Clipboard

copy_mdi_history_pb

Clear the MDI History

clear_mdi_history_pb

The MDI history is kept in a file named ‘mdi_history.txt` in the configuration directory.

MDI Button

MDI buttons execute a MDI command when the button it pressed and are created by adding two dynamic properties called function and command to a QPushButton.

Note

If the command property is not found the button will not be enabled

Select the button then create a dynamic property by pressing on the green plus sign in the Property Editor.

_images/mdi-01.png

Then select string

_images/mdi-02.png

Name the property function and click on OK

_images/mdi-03.png

Set the value of the property to mdi

_images/mdi-04.png

Add a property called command

_images/mdi-05.png

Set the value of the property to your valid MDI command

_images/mdi-06.png