Skip to content

Commit 159588d

Browse files
committed
qtplasmac: add preference to allow Z+ to override jog inhibit
1 parent 7ab7e8d commit 159588d

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

docs/src/plasma/qtplasmac.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3581,6 +3581,16 @@ setp qtplasmac.tabs_always_enabled 1
35813581

35823582
WARNING: It is the responsibility of the operator to ensure that the machine is equipped with a suitable, working hardware ESTOP. If using only a touchscreen to navigate the QtPlasmaC GUI, there is no way to stop automated machine motion on any tab but the MAIN tab.
35833583

3584+
=== Override Jog Inhibit Via Z+ Jog
3585+
3586+
It is possible to override the jog inhibit by using the GUI or keyboard to jog in the Z+ direction rather than checking the Override Jog box on the <<qt_parameters-tab, PARAMETERS Tab>>.
3587+
3588+
This is done by changing the following preference to *True* in the *[GUI_OPTIONS]* of the <machine_name>.prefs file in the <machine_name> folder:
3589+
3590+
----
3591+
Override jog inhibit via Z+
3592+
----
3593+
35843594
=== QtPlasmaC State Outputs
35853595

35863596
The plasmac HAL component has a HAL pin named *plasmac.state-out* which can be used to interface with user-coded components to provide the current state of the component.

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = '1.225.209'
1+
VERSION = '1.225.210'
22

33
'''
44
qtplasmac_handler.py
@@ -834,6 +834,7 @@ def init_preferences(self):
834834
self.w.cone_size.setValue(self.PREFS.getpref('Preview cone size', 0.5, float, 'GUI_OPTIONS'))
835835
self.w.grid_size.setValue(self.PREFS.getpref('Preview grid size', 0, float, 'GUI_OPTIONS'))
836836
self.w.table_zoom_scale.setValue(self.PREFS.getpref('T view zoom scale', 1, float, 'GUI_OPTIONS'))
837+
self.zPlusOverrideJog = self.PREFS.getpref('Override jog inhibit via Z+', False, bool, 'GUI_OPTIONS')
837838
self.w.color_foregrnd.setStyleSheet('background-color: {}'.format(self.PREFS.getpref('Foreground', '#ffee06', str, 'COLOR_OPTIONS')))
838839
self.w.color_foregalt.setStyleSheet('background-color: {}'.format(self.PREFS.getpref('Highlight', '#ffee06', str, 'COLOR_OPTIONS')))
839840
self.w.color_led.setStyleSheet('background-color: {}'.format(self.PREFS.getpref('LED', '#ffee06', str, 'COLOR_OPTIONS')))
@@ -1098,6 +1099,7 @@ def closing_cleanup__(self):
10981099
self.PREFS.putpref('Preview cone size', self.w.cone_size.value(), float, 'GUI_OPTIONS')
10991100
self.PREFS.putpref('Preview grid size', self.w.grid_size.value(), float, 'GUI_OPTIONS')
11001101
self.PREFS.putpref('T view zoom scale', self.w.table_zoom_scale.value(), float, 'GUI_OPTIONS')
1102+
self.PREFS.putpref('Override jog inhibit via Z+', self.zPlusOverrideJog, bool, 'GUI_OPTIONS')
11011103
self.PREFS.putpref('THC enable', self.w.thc_enable.isChecked(), bool, 'ENABLE_OPTIONS')
11021104
self.PREFS.putpref('Corner lock enable', self.w.cornerlock_enable.isChecked(), bool, 'ENABLE_OPTIONS')
11031105
self.PREFS.putpref('Kerf cross enable', self.w.kerfcross_enable.isChecked(), bool, 'ENABLE_OPTIONS')
@@ -1860,6 +1862,8 @@ def jogs_label_pressed(self):
18601862

18611863
def gui_button_jog(self, state, joint, direction):
18621864
shift = False
1865+
if state and joint == 'z' and direction == 1 and self.zPlusOverrideJog and self.w.chk_override_jog.isEnabled():
1866+
self.w.chk_override_jog.setChecked(True)
18631867
if STATUS.is_joint_mode():
18641868
self.kb_jog(state, self.coordinates.index(joint), direction, shift)
18651869
else:
@@ -5657,6 +5661,8 @@ def on_keycall_YNEG(self, event, state, shift, cntrl):
56575661

56585662
def on_keycall_ZPOS(self, event, state, shift, cntrl):
56595663
if self.jog_is_valid('z_plus', event):
5664+
if self.zPlusOverrideJog and self.w.chk_override_jog.isEnabled():
5665+
self.w.chk_override_jog.setChecked(True)
56605666
if STATUS.is_joint_mode():
56615667
self.kb_jog(state, self.coordinates.index('z'), 1, shift)
56625668
else:

share/qtvcp/screens/qtplasmac/versions.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ <h2>QtPlasmaC Version History</h2>
3030
</table>
3131
<br>
3232
<!--- ****** ADD NEXT VERSION BELOW THIS LINE ****** --->
33+
<br><b><u>v1.225.210 2022 July 01</u></b>
34+
<ul style="margin:0;">
35+
<li>fix "show last five" and "clear all" for error messages</li>
36+
<li>add preference to allow Z+ to override jog inhibit</li>
37+
</ul>
38+
<i>Changes submitted by snowgoer540 (Greg Carl)</i><br>
39+
3340
<br><b><u>v1.225.209 2022 June 30</u></b>
3441
<ul style="margin:0;">
3542
<li>fix missing files from /bin</li>

0 commit comments

Comments
 (0)