In grinding machines, the workpiece moves cyclically in the XY plane according to the G code program. At this time, the operator moves the Z-axis down using the MPG or on-screen buttons.
There are also coordinate grinding machines where, during program execution, the operator changes the tool radius correction.
Most often, these programs are short and run in the M99 loop. When running G code in a loop, KMotionCNC does not allow manual movements. Changing variables in the emc.var file also has no effect.
My question has two parts:
1. How can I allow manual movement of axes that are not used in the current G code?
2. How to change the current H or D values for the current tool using MPG? (when G43 or G41/42 are active)
G codes and hand jog at the same time.
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2868
- Joined: Mon Dec 04, 2017 1:49 am
Re: G codes and hand jog at the same time.
Hi Alexanders,
But the change wont have an effect until G41/42 is reactivated.
If the Z axis is removed from the Coordinate System it can then be moved using independent commands such as Jog/Move etc. However the on-screen Jog buttons will not work for axes not defined in the Coordinate System. An external MPG should work. Or you could create custom buttons for Jogging on-screen.1. How can I allow manual movement of axes that are not used in the current G code?
You can change the Tool Diameter with:2. How to change the current H or D values for the current tool using MPG? (when G43 or G41/42 are active)
Code: Select all
// Set GCode Tool Table Diameter Persist+1 = Tool Index
// Persist+2 = where to get value from KFLOP persist (double offset)
// (KFLOP persist -> GCode #Vars) note: vars are transferred as doubles 2 persists each
#define PC_COMM_SET_TOOLTABLE_DIAMETER 31 // Persist+1=#ToolIndex,+2=Source
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
-
Alexanders
- Posts: 61
- Joined: Wed May 03, 2023 12:54 am
Re: G codes and hand jog at the same time.
If an axis is removed from the coordinate system, how can I make its value appear and update in the DRO?An external MPG should work. Or you could create custom buttons for Jogging on-screen.
- TomKerekes
- Posts: 2868
- Joined: Mon Dec 04, 2017 1:49 am
Re: G codes and hand jog at the same time.
The DROs only show the axes that are defined. You might create a User DRO with the Screen Editor.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
-
Alexanders
- Posts: 61
- Joined: Wed May 03, 2023 12:54 am
Re: G codes and hand jog at the same time.
Creating unnecessary DROs is not the best way to go. If the axis is not declared, is it possible to write values cyclically to its DRO using the available functions?You might create a User DRO with the Screen Editor
- TomKerekes
- Posts: 2868
- Joined: Mon Dec 04, 2017 1:49 am