Gmoccapy G54 Offsets

More
27 Apr 2025 03:05 - 27 Apr 2025 03:07 #327124 by electrosteam
Gmoccapy G54 Offsets was created by electrosteam
Now taking an interest in the G10 L2/L20 pair of Gcodes.
Cannot make sense of the Documentation against the machine display.
My current job is positioned with its G54 origin having x, y, z values -ve relative to Home.

Parameters #5221, #5222, #5223 are documented as the coordinate system Offsets for G54.
The parameters in the linuxcnc.var file correctly show the G54 origin with -ve values.

But, to set up the machine correctly, I have to swap the signs used with a G10 L2.

When Gmoccapy launches, before homing, the DRO shows the tool position with +ve values.
Then G10 L2 P1 with +ve values loads the DRO with -ve values (CORRECT for this job).

Then conventional Touch-Off and run the job.

Please, is my brained screwed, or is the Documentation misleading ?

John.
Last edit: 27 Apr 2025 03:07 by electrosteam. Reason: Spelling

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

More
27 Apr 2025 06:45 #327129 by electrosteam
Replied by electrosteam on topic Gmoccapy G54 Offsets
My brain is confused.
The sequence in the OP doesn't work.

The only reliable way I can set the machine up is to MDI a G0 with axes values per the Parameters (with the steppers off).

Still trying,
John.

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

More
28 Apr 2025 07:50 #327205 by electrosteam
Replied by electrosteam on topic Gmoccapy G54 Offsets
Went back to Axis.
linuxcnc.var has Parameter #5221 = -238.
Ignoring y and z for this description.
Launch Axis, Display is:
- x238,
- G54 x-238.
This shows G54 x correctly as negative, ( whereas Gmoccapy shows G54 x as positive ).

No amount of Touching-Off, G10 L2, G10 L20, etc, by me gets to the final correct values for a job:
- x0,
- G54 x-238.

It appears G10 L2 and G10 L20 assume machine is actually Homed physically, and no amount of data entry can change that.

For jobs, I turn steppers Off, operate the machine controller to the measured table position, then Touch-Off, energize the steppers, and run the job.

Can anyone provide an alternative procedure to set-up the mill ?

John.

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

More
28 Apr 2025 10:41 #327208 by Aciera
Replied by Aciera on topic Gmoccapy G54 Offsets

It appears G10 L2 and G10 L20 assume machine is actually Homed physically, and no amount of data entry can change that.

I don't understand what you are doing. Without homing the machine first there is really no point in setting offsets.

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

More
28 Apr 2025 22:57 #327247 by electrosteam
Replied by electrosteam on topic Gmoccapy G54 Offsets
Thanks for the response.

Once my machine is set-up correctly, I successfully use multiple Offsets to do jobs on the table.

I started this investigation of G10 'assuming' that it was used to set-up the machine without having to physically move it to the Home position.

So far, that assumption has been demonstrated to be false.

What does one do if the machine cannot be physically moved to its Home position ?
For example, a large job mounted prior to machine start-up, or a vice.

Note: I simulate physical table movement at start-up by operating the controls with steppers Off to the position measured by ruler.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
28 Apr 2025 23:12 #327250 by tommylight
Replied by tommylight on topic Gmoccapy G54 Offsets
It would be much easier to help you if you told us what are you trying to achieve or what the end result should be or ...

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

More
28 Apr 2025 23:30 #327252 by electrosteam
Replied by electrosteam on topic Gmoccapy G54 Offsets
Tommy, thanks for taking the interest.

My aim was to simply improve my knowledge of some of the more exotic GCode.

As stated, my assumption on what G10 can do is incorrect.

My skill base has, however, improved because I can now use G10 for its intended use of setting up Offsets for multiple jobs.
The following user(s) said Thank You: tommylight

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
28 Apr 2025 23:39 #327254 by tommylight
Replied by tommylight on topic Gmoccapy G54 Offsets
OK then, feel free to poke around, you are always welcomed.
I was thinking you have some non standard stuff or end result, hence my jumping in.
Thank you.

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

More
29 Apr 2025 06:40 #327267 by Aciera
Replied by Aciera on topic Gmoccapy G54 Offsets

What does one do if the machine cannot be physically moved to its Home position ?
For example, a large job mounted prior to machine start-up, or a vice.


It is possible to set up 'Immediate Homing' in the INI file:
www.linuxcnc.org/docs/html/config/ini-ho...ml#_immediate_homing

You could then use a probe to jog the machine to the origin of your work piece and issue MDI:
G10 L20 P0 X0 Y0 Z0


or. if you already know the offset between the machine position on startup and the work piece origin (example x:1 y:2 z:3):
G10 L2 P0 X1 Y2 Z3

Note though that without properly homing the machine (ie in reference to the physical limits of travel) you will also need to adjust the joint/axes limits.

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

Moderators: newbynobiHansU
Time to create page: 0.147 seconds
Powered by Kunena Forum