[SOLVED] Disabling buttons ?

More
29 Oct 2023 16:31 - 31 Oct 2023 14:28 #284046 by karnalta
Hello all,

I was wondering if there is a way to disable some buttons in QtDragon UI for features my machine doesn't have.

Like "Flood", "Laser", ...

Thank you.
Last edit: 31 Oct 2023 14:28 by karnalta.

Please Log in or Create an account to join the conversation.

More
29 Oct 2023 17:16 #284054 by cmorley
Replied by cmorley on topic Disabling buttons ?
disable or remove?
Either is possible but it will take a bit of effort as it requires customization of the screen.

Please Log in or Create an account to join the conversation.

More
29 Oct 2023 17:33 #284056 by karnalta
Replied by karnalta on topic Disabling buttons ?

disable or remove?
Either is possible but it will take a bit of effort as it requires customization of the screen.

Simply disable them is good. Just grey them out.

Please Log in or Create an account to join the conversation.

More
30 Oct 2023 07:30 #284104 by cmorley
Replied by cmorley on topic Disabling buttons ?
Try this to hide the buttons.

add the file to your config folder and add this under the [DISPLAY] heading in the INI:

USER_COMMAND_FILE = CONFIGFOLDER/qtdragonrc.py

removing the INI line will restore the buttons.
Attachments:

Please Log in or Create an account to join the conversation.

More
31 Oct 2023 09:25 #284161 by karnalta
Replied by karnalta on topic Disabling buttons ?

Try this to hide the buttons.

add the file to your config folder and add this under the [DISPLAY] heading in the INI:

USER_COMMAND_FILE = CONFIGFOLDER/qtdragonrc.py

removing the INI line will restore the buttons.

Hello, I've got an error when trying this.
User command file for button hiding found

[QTvcp.QTVCP.QT_MAKEGUI][ERROR]  No module named 'qtdragon_handler' (qt_makegui.py:361)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qtvcp/qt_makegui.py", line 359, in call_user_command_
    exec(compile(open(rcfile, "rb").read(), rcfile, 'exec'),local)
  File "/home/dimitri/linuxcnc/configs/KCNC/qtdragonrc.py", line 5, in <module>
    import qtdragon_handler as SELF
ModuleNotFoundError: No module named 'qtdragon_handler'

Please Log in or Create an account to join the conversation.

More
31 Oct 2023 12:36 #284178 by cmorley
Replied by cmorley on topic Disabling buttons ?
can you post your config files?

Please Log in or Create an account to join the conversation.

More
31 Oct 2023 13:23 #284183 by karnalta
Replied by karnalta on topic Disabling buttons ?

can you post your config files?


Here is my full INI :
# Generated by PNCconf at Mon Oct  9 11:04:54 2023
# Using LinuxCNC version:  Master (2.9)
# If you make changes to this file, they will be
# overwritten when you run PNCconf again

[EMC]
MACHINE = KCNC
DEBUG = 0
VERSION = 1.1

[DISPLAY]
DISPLAY = qtvcp qtdragon_hd
PREFERENCE_FILE_PATH = CONFIGFOLDER/qtdragon.pref
USER_COMMAND_FILE = CONFIGFOLDER/qtdragonrc.py
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.300000
MAX_SPINDLE_OVERRIDE = 1.200000
MIN_SPINDLE_OVERRIDE = 0.500000
DEFAULT_SPINDLE_0_SPEED = 24000
SPINDLE_INCREMENT = 1000
MIN_SPINDLE_0_SPEED = 12000
MAX_SPINDLE_0_SPEED = 24000
MAX_SPINDLE_POWER = 1500
MAX_SPINDLE_0_OVERRIDE = 1.0
MIN_SPINDLE_0_OVERRIDE = 0.5
INCREMENTS = Continuous, 5mm 1mm .5mm .1mm .05mm .01mm .005mm
MAX_LINEAR_VELOCITY = 60.000000
MIN_LINEAR_VELOCITY = 0.500000
DEFAULT_LINEAR_VELOCITY = 40.000000
EDITOR = gedit
GEOMETRY = xyz
CYCLE_TIME = 100
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 2

[FILTER]
PROGRAM_EXTENSION = .ngc .cam
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[PROBE]
USE_PROBE = versaprobe

[VERSA_TOOLSETTER]
X = 28.5
Y = 27.5
Z = -40
Z_MAX_CLEAR = -2
MAXPROBE = 20

[CHANGE_POSITION]
X = 170
Y = 20
Z = -5

[PYTHON]
PATH_APPEND = ~/linuxcnc/nc_files/examples/remap_lib/python-stdglue/python
TOPLEVEL = ~/linuxcnc/nc_files/examples/remap_lib/python-stdglue/python/toplevel.py

[RS274NGC]
PARAMETER_FILE = linuxcnc.var
RS274NGC_STARTUP_CODE = G21 G40 G90 G94 G97 G64 P0.025
SUBROUTINE_PATH = ~/linuxcnc/nc_files/examples/remap-subroutines:~/linuxcnc/nc_files/examples/remap_lib
ON_ABORT_COMMAND=O <on_abort> call
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
SERVO_PERIOD = 2000000

[HMOT]
# **** This is for info only ****
CARD0=hm2_7i96s.0

[HAL]
HALUI = halui
HALFILE = KCNC.hal
HALFILE = KCNC-IO.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
SHUTDOWN = shutdown.hal

[KINS]
JOINTS = 3
KINEMATICS = millkins

[TRAJ]
COORDINATES =  XYZ
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 2.50
MAX_LINEAR_VELOCITY = 40.00
POSITION_FILE = position.txt

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
TOOL_CHANGE_QUILL_UP = 1

#******************************************
[AXIS_X]
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 350.0
MIN_LIMIT = 0
MAX_LIMIT = 355.0

[JOINT_0]
TYPE = LINEAR
HOME = 345.0
FERROR = 1.0
MIN_FERROR = 0.25
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 350.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 75.00
STEPGEN_MAXACCEL = 480.00
P = 1000.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP   = 10000
DIRHOLD    = 10000
STEPLEN    = 5000
STEPSPACE  = 5000
STEP_SCALE = 199.8
MIN_LIMIT = -1.000
MAX_LIMIT = 355.0
HOME_OFFSET = 355.000000
HOME_SEARCH_VEL = 5.000000
HOME_LATCH_VEL = -2.492522
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1
#******************************************

#******************************************
[AXIS_Y]
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 350.0
MIN_LIMIT = 0.000
MAX_LIMIT = 263.0

[JOINT_1]
TYPE = LINEAR
HOME = 10.0
FERROR = 1.0
MIN_FERROR = .25
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 350.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 75.00
STEPGEN_MAXACCEL = 480.50
P = 1000.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP   = 10000
DIRHOLD    = 10000
STEPLEN    = 5000
STEPSPACE  = 5000
STEP_SCALE = 200.04
MIN_LIMIT = -1.000
MAX_LIMIT = 263.0
HOME_OFFSET = -1.000000
HOME_SEARCH_VEL = -5.000000
HOME_LATCH_VEL = 2.439024
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1
#******************************************

#******************************************
[AXIS_Z]
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 350.0
MIN_LIMIT = -140.0
MAX_LIMIT = 0.001

[JOINT_2]
TYPE = LINEAR
HOME = -10.0
FERROR = 1.0
MIN_FERROR = 0.25
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 350.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 32.00
STEPGEN_MAXACCEL = 480.50
P = 1000.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP   = 10000
DIRHOLD    = 10000
STEPLEN    = 5000
STEPSPACE  = 5000
STEP_SCALE = -200.0
MIN_LIMIT = -140.000
MAX_LIMIT = 0.001
HOME_OFFSET = 2.000000
HOME_SEARCH_VEL = 5.000000
HOME_LATCH_VEL = -2.500000
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2
#******************************************

[SPINDLE_0]
P = 0
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0
MAX_OUTPUT = 2000

Please Log in or Create an account to join the conversation.

More
31 Oct 2023 13:53 #284185 by cmorley
Replied by cmorley on topic Disabling buttons ?
Ahh you Te using dragon_hd

The file needs the reference to qtdragon changed ti qtdragon_hd

Please Log in or Create an account to join the conversation.

More
31 Oct 2023 14:26 #284190 by karnalta
Replied by karnalta on topic Disabling buttons ?

Ahh you Te using dragon_hd

The file needs the reference to qtdragon changed ti qtdragon_hd

Work nicely now.

Thank you !
The following user(s) said Thank You: cmorley

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.151 seconds
Powered by Kunena Forum