Lathe Macros

More
30 Aug 2023 04:19 #279344 by RotarySMP
Replied by RotarySMP on topic Lathe Macros
Yes 2mm depth of cut (diameter mode). And yes their was a constant diameter variation on all cuts, with a huge taper on the last cut. Weird behavior.
Mark

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

More
31 Aug 2023 02:44 #279435 by spumco
Replied by spumco on topic Lathe Macros
Mark - watched it again and the only thing that comes to mind is that it appears you've got G64 set with no P value.  I don't know what preamble you've got in your INI file and the macro doesn't show up in the g-code window...

Maybe the unconstrained path blending is hosing things up?  Trying to blend the straight section with the lead-out?

You could do an air cut with G61 set and watch the X-DRO and see if it moves the same way.
The following user(s) said Thank You: RotarySMP

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

More
31 Aug 2023 07:02 - 31 Aug 2023 07:03 #279451 by RotarySMP
Replied by RotarySMP on topic Lathe Macros
Hmm, thanks for noticing that. In my CAM PP I have a standard G64 P0.1 in the header. I'll add the G61 to the start up file.

I was out watching Oppenheimer yesterday, but will try a G61 on it after work today.
 
Cheers,
Mark
Last edit: 31 Aug 2023 07:03 by RotarySMP.

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

More
31 Aug 2023 16:42 - 31 Aug 2023 16:43 #279494 by RotarySMP
Replied by RotarySMP on topic Lathe Macros
You nailed it Spumco.

I am using 3 digital pins for my temporary control of back gear, variator up and variator down. Looking back in my MDI, I screwed up and tried to do a variator speed change with G64 P2, rather than M64 P2. I remember doing it, but didn't consider the consequence at the time.
With a 2mm tolerance on the nominal tool path, it is no surprise it was cutting those tapers.
I already had G64 P0.1 in my Ini file.
Thanks for your help.
Mark
Last edit: 31 Aug 2023 16:43 by RotarySMP.
The following user(s) said Thank You: tommylight

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

More
31 Aug 2023 21:43 #279519 by spumco
Replied by spumco on topic Lathe Macros
LCNC should have known what you wanted and not cut the taper


PS: I can't wait to see the Schaublin blasting out parts with the tool changer and a bar puller.  You've got enough X-travel that we could rig up a pneumatic part flipper to do backside work for a one-and-done operation!

Thank you for the entertaining and educational vids. 
The following user(s) said Thank You: RotarySMP, tommylight

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

More
01 Sep 2023 08:13 #279557 by RotarySMP
Replied by RotarySMP on topic Lathe Macros
I am struggling with constant other projects becoming sort of urgeant, so the Schaublin progress is really suffering. I really need to make the control panel for it, and then get on with stripping and cleaning the tool changer. I dont see a bar puller in my future, but who knows.
The following user(s) said Thank You: spumco

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

More
14 Sep 2023 08:51 - 14 Sep 2023 08:53 #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: 14 Sep 2023 08:53 by aalozo.

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

More
17 Sep 2023 09:44 #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
22 Nov 2023 22:56 - 22 Nov 2023 22:58 #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: 22 Nov 2023 22:58 by opw. Reason: Mistake

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

Time to create page: 0.117 seconds
Powered by Kunena Forum