Hello Guest it is March 28, 2024, 06:26:26 AM

Author Topic: G10 offsets  (Read 1350 times)

0 Members and 1 Guest are viewing this topic.

G10 offsets
« on: May 30, 2019, 10:14:37 AM »
G10 has some relationship to machine coordinates that I don't understand.
The code below should change the xyz values all in relation to G54, Correct?
I'm confused by this persistence that changes values in unpredictable ways.
The offset table reflects these and I can't get them to clear.
Thanks for any help.
Tom

Code: [Select]
G0 G90 G54 G17 G40 G49 G50 G69 G80
M98 P0002 l1 ( Offset setter for Series J )
(P numbers - 2,J  3,C  4,G  5,K  6,A   7,B  )
M30

O0002
( Offset setter for Series J )
G54
G10 L2 P1 X0.0 Y0.0 Z0.0 (G54 - Centered on center of hinge holder)
G10 L2 P2 X-0.288 Y0.0 Z0.0 (G55 - Centered on Brand text line)
G10 L2 P3 X0.432 Y0.0 Z0.0 (G56 - Centered on Bottom text line)
G10 L2 P4 X0.694 Y0.0 Z0.0 (G57 - Centered on Top text line)
G10 L2 P5 X0.562 Y0.0 Z0.0 (G58 - Centered on Graphic field)
M99

Offline Graham Waterworth

*
  • *
  •  2,668 2,668
  • Yorkshire Dales, England
    • View Profile
Re: G10 offsets
« Reply #1 on: June 04, 2019, 09:32:02 AM »
G10 is a global setting G52 is a local shift on the current work offset e.g. G54

G10 can be used in G91 mode to update the fixture offset or G90 mode to replace the current values.

Using it in program to offset a fixture is dodgy, if you get a program crash you can loose the original offset.

Look at G52 its safer, you can just issue a G52 X0 Y0 Z0 at the start of the program to go back to the original fixture offset.
« Last Edit: September 30, 2019, 01:02:45 PM by Graham Waterworth »
Without engineers the world stops
Re: G10 offsets
« Reply #2 on: June 12, 2019, 10:34:02 AM »
Thank you. I’ve had great success by placing G52s into subroutines and calling these addresses and then cancelling them with another subroutine all without any unexpected behavior.