Lathe Macros

More
3 years 1 month ago - 3 years 1 month ago #280715 by aalozo
Replied by aalozo on topic Lathe Macros
Hello, I hope there are no issues with my poor English. I've tried several things to get the macros to work. Now, I need help from professionals. Currently, it looks like this
My system: Debian 10 Buster
LinuxCNC: 2.8.2.11
in directory: /home/aalozo/linuxcnc/configs/ALPCNC
custompanel.xml, ALPCNC.hal, postgui_call_list.hal, pyvcp_options.hal, custom.hal, custom_postgui.hal, tool.tbl, linuxcnc.var, custompanel_backup.xml, lathehandler.pyc, custom.clp, tool.tbl.bak, chamfer.ngc boring.ngc, facing.ngc, lathehandler.py, lathemacro.ini lathemacro.ui, LICENSE, lathe_macros.ini, radius.ngc, README, threading.ngc, turning.ngc, linuxcnc.var.bak, ALPCNC.ini, LatheMacro.svg savestate.sav
_____________________________________________
ALPCNC.ini :
[EMC] MACHINE = ALPCNC
DEBUG = 0
VERSION = 1.1
[DISPLAY] EMBED_TAB_NAME = Macro
EMBED_TAB_COMMAND = halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
ARCDIVISION = 64 GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in
MAX_FEED_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
MAX_SPINDLE_OVERRIDE = 1.2
DEFAULT_LINEAR_VELOCITY = 1.00
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 10.00
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/aalozo/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
PYVCP = custompanel.xml
LATHE = 1
[KINS] JOINTS = 2 KINEMATICS = trivkins coordinates=XZ [FILTER] PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image PROGRAM_EXTENSION = .py Python Script PROGRAM_EXTENSION = .nc,.tap G-Code File png = image-to-gcode gif = image-to-gcode jpg = image-to-gcode py = python [TASK] TASK = milltask CYCLE_TIME = 0.010 [RS274NGC] PARAMETER_FILE = linuxcnc.var SUBROUTINE_PATH = makros:./ [EMCMOT] EMCMOT = motmod COMM_TIMEOUT = 1.0 BASE_PERIOD = 100000 SERVO_PERIOD = 1000000 [HAL] HALUI = halui HALFILE = ALPCNC.hal HALFILE = custom.hal POSTGUI_HALFILE = postgui_call_list.hal #POSTGUI_HALFILE = lathemacro_postgui.hal [HALUI] # HalUI-MDI-Befehle hier einfügen (max. 64) [TRAJ] COORDINATES = X Z LINEAR_UNITS = mm ANGULAR_UNITS = degree DEFAULT_LINEAR_VELOCITY = 1.00 MAX_LINEAR_VELOCITY = 10.00 [EMCIO] EMCIO = io CYCLE_TIME = 0.100 TOOL_TABLE = tool.tbl [AXIS_X] MAX_VELOCITY = 8.5 MAX_ACCELERATION = 50.0 MIN_LIMIT = 0.0 MAX_LIMIT = 125.0 [JOINT_0] TYPE = LINEAR HOME = 1.0 MIN_LIMIT = 0.0 MAX_LIMIT = 125.0 MAX_VELOCITY = 8.5 MAX_ACCELERATION = 50.0 STEPGEN_MAXACCEL = 62.5 SCALE = 400.0 FERROR = 1 MIN_FERROR = .25 HOME_OFFSET = 71.000000 HOME_SEARCH_VEL = 8.000000 HOME_LATCH_VEL = 1.250000 HOME_IGNORE_LIMITS = YES HOME_SEQUENCE = 1 [AXIS_Z] MAX_VELOCITY = 10.0 MAX_ACCELERATION = 50.0 MIN_LIMIT = -0.001 MAX_LIMIT = 290.0 [JOINT_1] TYPE = LINEAR HOME = 0.0 MIN_LIMIT = -0.001 MAX_LIMIT = 290.0 MAX_VELOCITY = 10.0 MAX_ACCELERATION = 50.0 STEPGEN_MAXACCEL = 62.5 SCALE = 800.0 FERROR = 1 MIN_FERROR = .25 HOME_OFFSET = 290.000000 HOME_SEARCH_VEL = 5.500000 HOME_LATCH_VEL = 0.625000 HOME_IGNORE_LIMITS = YES HOME_SEQUENCE = 2


get this error message:
gladevcp:.... draw_box_gap: assertion 'height >= -1' failed.

And then the play button is missing in the graphic
Plaese help me


 
Last edit: 3 years 1 month ago by aalozo.

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

More
3 years 1 month ago #280989 by aalozo
Replied by aalozo on topic Lathe Macros

Hello, I hope there are no issues with my poor English. I've tried several things to get the macros to work. Now, I need help from professionals. Currently, it looks like this
My system: Debian 10 Buster
LinuxCNC: 2.8.2.11
in directory: /home/aalozo/linuxcnc/configs/ALPCNC
custompanel.xml, ALPCNC.hal, postgui_call_list.hal, pyvcp_options.hal, custom.hal, custom_postgui.hal, tool.tbl, linuxcnc.var, custompanel_backup.xml, lathehandler.pyc, custom.clp, tool.tbl.bak, chamfer.ngc boring.ngc, facing.ngc, lathehandler.py, lathemacro.ini lathemacro.ui, LICENSE, lathe_macros.ini, radius.ngc, README, threading.ngc, turning.ngc, linuxcnc.var.bak, ALPCNC.ini, LatheMacro.svg savestate.sav
_____________________________________________
ALPCNC.ini :
[EMC] MACHINE = ALPCNC
DEBUG = 0
VERSION = 1.1
[DISPLAY] EMBED_TAB_NAME = Macro
EMBED_TAB_COMMAND = halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} lathemacro.ui
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
ARCDIVISION = 64 GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in
MAX_FEED_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
MAX_SPINDLE_OVERRIDE = 1.2
DEFAULT_LINEAR_VELOCITY = 1.00
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 10.00
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/aalozo/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
PYVCP = custompanel.xml
LATHE = 1
[KINS] JOINTS = 2 KINEMATICS = trivkins coordinates=XZ [FILTER] PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image PROGRAM_EXTENSION = .py Python Script PROGRAM_EXTENSION = .nc,.tap G-Code File png = image-to-gcode gif = image-to-gcode jpg = image-to-gcode py = python [TASK] TASK = milltask CYCLE_TIME = 0.010 [RS274NGC] PARAMETER_FILE = linuxcnc.var SUBROUTINE_PATH = makros:./ [EMCMOT] EMCMOT = motmod COMM_TIMEOUT = 1.0 BASE_PERIOD = 100000 SERVO_PERIOD = 1000000 [HAL] HALUI = halui HALFILE = ALPCNC.hal HALFILE = custom.hal POSTGUI_HALFILE = postgui_call_list.hal #POSTGUI_HALFILE = lathemacro_postgui.hal [HALUI] # HalUI-MDI-Befehle hier einfügen (max. 64) [TRAJ] COORDINATES = X Z LINEAR_UNITS = mm ANGULAR_UNITS = degree DEFAULT_LINEAR_VELOCITY = 1.00 MAX_LINEAR_VELOCITY = 10.00 [EMCIO] EMCIO = io CYCLE_TIME = 0.100 TOOL_TABLE = tool.tbl [AXIS_X] MAX_VELOCITY = 8.5 MAX_ACCELERATION = 50.0 MIN_LIMIT = 0.0 MAX_LIMIT = 125.0 [JOINT_0] TYPE = LINEAR HOME = 1.0 MIN_LIMIT = 0.0 MAX_LIMIT = 125.0 MAX_VELOCITY = 8.5 MAX_ACCELERATION = 50.0 STEPGEN_MAXACCEL = 62.5 SCALE = 400.0 FERROR = 1 MIN_FERROR = .25 HOME_OFFSET = 71.000000 HOME_SEARCH_VEL = 8.000000 HOME_LATCH_VEL = 1.250000 HOME_IGNORE_LIMITS = YES HOME_SEQUENCE = 1 [AXIS_Z] MAX_VELOCITY = 10.0 MAX_ACCELERATION = 50.0 MIN_LIMIT = -0.001 MAX_LIMIT = 290.0 [JOINT_1] TYPE = LINEAR HOME = 0.0 MIN_LIMIT = -0.001 MAX_LIMIT = 290.0 MAX_VELOCITY = 10.0 MAX_ACCELERATION = 50.0 STEPGEN_MAXACCEL = 62.5 SCALE = 800.0 FERROR = 1 MIN_FERROR = .25 HOME_OFFSET = 290.000000 HOME_SEARCH_VEL = 5.500000 HOME_LATCH_VEL = 0.625000 HOME_IGNORE_LIMITS = YES HOME_SEQUENCE = 2


get this error message:

/usr/bin/gladevcp:191: GtkWarning: Attempting to add a widget with type GtkImage to a Gtkbutton, but as a GtkBin subclass a GtkButton can only contain one Widget at a time ; it already contains a widget of type GtkLabel 

gladevcp:.... draw_box_gap: assertion 'height >= -1' failed.

And then the play button is missing in the graphic
Please help me



 

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

More
2 years 11 months ago - 2 years 11 months ago #286283 by opw
Replied by opw on topic Lathe Macros
The 3.0 version seems to have a pretty aggressive j-value of 1, also compared to the 0.2 of the previous version.
Last edit: 2 years 11 months ago by opw. Reason: Mistake

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

More
2 years 4 months ago #302925 by xenon-alien
Replied by xenon-alien on topic Lathe Macros
Hello.
Help me out please. I have tried the 3rd version an the 2nd version.
Here is my config (3rd version), but I have an error message. (copied the files also to the nc_files folder, but also no success) 
Code:
st@st:~$ sudo find / -name gladevcp [sudo] пароль для st:  /usr/share/doc/linuxcnc/examples/sample-configs/apps/gladevcp /usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/gladevcp /usr/share/doc/linuxcnc/examples/sample-configs/sim/touchy/gladevcp /usr/lib/python3/dist-packages/gladevcp /usr/bin/gladevcp st@st:~$ 

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

More
2 years 4 months ago #302930 by andypugh
Replied by andypugh on topic Lathe Macros

print event.message_type,event.data
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(event.message_type,event.data)?


This seems to indicate that you are trying to use the Python2 version of the macros with a Linux version that has Python3.

Can you try the Py3 / GTK3 version? I know you said you have tried that, but perhaps the problems there are more easily solved.

Get the files from here to be sure it's the latest:
github.com/andypugh/LatheMacros/releases

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

More
2 years 4 months ago #302988 by xenon-alien
Replied by xenon-alien on topic Lathe Macros
I began the trying with the
"v3.0
Resizable touchscreen version for Python 3 and GTK3.
Compatible with LinuxCNC 2.9 onwards."
After that i tried the v2.0.
I will do it again with both and attach the report of both.
Because i don't remember which one I have attached previously.

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

Time to create page: 0.301 seconds
Powered by Kunena Forum