Hello Guest it is May 08, 2021, 03:10:37 PM

Author Topic: X, Y offset  (Read 8901 times)

0 Members and 1 Guest are viewing this topic.

X, Y offset
« on: October 31, 2011, 05:02:34 PM »
I am using Mach3 for plasmacutting. How to set X, Y offset for scribe?

Thanks!

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: X, Y offset
« Reply #1 on: November 01, 2011, 03:35:36 AM »
Not really sure what you are asking, can you try and explain a bit clearer?
Hood
Re: X, Y offset
« Reply #2 on: November 01, 2011, 04:14:03 AM »
Not really sure what you are asking, can you try and explain a bit clearer?
Hood

I have gantry type plasma machine with one plasma torch and one comp air scribe head. Scribe unit is moving together with plasma torch, but is offset on X and Y axis (compared to plasma torch). When Mach is swiching from plasmacutting to scribe process, G-code says: "start scribe offset - G54", then where Mach should get these offset parameters?

thanks

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: X, Y offset
« Reply #3 on: November 01, 2011, 05:57:41 AM »
There are 254 possible offsets in Mach and you can easily set them up, if just needing 2 you would be best to keep G54 for the scribe and use G55 for the torch or vice versa depending on which is the one used first or most.
How you would set things up is move the scribe to a point and set the axis zero then move so the torch is over the same point and then in MDI type G55 and hit the enter key then you can zero the axis again and that is you just set up the G55 offset.
 You can then change back to G54 and you will see how far away the scribe is from where you set zero.
All that then remains is to call the offset from G code when required, ie when scribe make sure you are in the default G54 offset and when you want to use the torch call a G55 from your code to change to that offset.

Hood

Offline BR549

*
  •  6,952 6,952
    • View Profile
Re: X, Y offset
« Reply #4 on: November 01, 2011, 11:42:40 AM »
Hood has shown you one way the other would be to use a G92 or G52 offset just before the scribe is used. It will offset the table so the scribe willl be aligned to the work correctly.

Hope that helps, (;-) TP
Re: X, Y offset
« Reply #5 on: November 02, 2011, 04:40:45 PM »
There are 254 possible offsets in Mach and you can easily set them up, if just needing 2 you would be best to keep G54 for the scribe and use G55 for the torch or vice versa depending on which is the one used first or most.
How you would set things up is move the scribe to a point and set the axis zero then move so the torch is over the same point and then in MDI type G55 and hit the enter key then you can zero the axis again and that is you just set up the G55 offset.
 You can then change back to G54 and you will see how far away the scribe is from where you set zero.
All that then remains is to call the offset from G code when required, ie when scribe make sure you are in the default G54 offset and when you want to use the torch call a G55 from your code to change to that offset.

Hood

Thank you for your help. I am quite new in this and I could not manage. I did exactly as described. When I run G code, sribe makes its shape first, but when it shifts to plasma, it runs far away from the correct position. Please give some notes what should I check or do?

Thank you in advance!

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: X, Y offset
« Reply #6 on: November 02, 2011, 05:57:23 PM »
Does your torch follow the same code as the scribe?
Hood
Re: X, Y offset
« Reply #7 on: November 03, 2011, 03:34:27 AM »
Does your torch follow the same code as the scribe?
Hood

G code is following:

%
g00 x0 y0
G54
m08
g01 F700
x50
y50
x0
y0
m09
G55
g00 x0 y0
g01 F700
x50
y50
x0
y0
m30
%

Torch follows the same path but offset is totally different from one I have set.

I have moved torch to the suitable position then set the axis zero. Then I moved scribe to the same positon (ca x36;y-120). Then MDI G54 + enter - X value changes to 812 and Y value changes to -87,42.
« Last Edit: November 03, 2011, 03:50:47 AM by plasmacutting »

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: X, Y offset
« Reply #8 on: November 03, 2011, 03:39:30 AM »
That should work perfectly if you have the G55 offset set correctly.
Easiest way would be if you could touch off something with the scribe head and make sure you are in G54 offset by typing that in MDI and pressing enter then zero the X and Y DROs. You would then type G55 in MDI and hit enter key then touch off the torch to the same thing you previously touched off the scribe at then zero the DROs again.
If that is not working for you then attach your xml and I will have a look. Also attach the fixtures.dat file which is located in the macro folder of the profile you use.
Hood

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: X, Y offset
« Reply #9 on: November 03, 2011, 03:45:48 AM »
Just to make clear, the bit you touch off would need to be where you want the code zero to be.
Alternatively a G52 like Terry mentioned could be used in code instead of fixtures.
Hood