Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 28, 2012, 08:18:45 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
General Mach Discussion
Changing Offset With G-code
Pages:
1
Go Down
« previous
next »
Author
Topic: Changing Offset With G-code (Read 296 times)
0 Members and 2 Guests are viewing this topic.
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,348
Changing Offset With G-code
«
on:
September 27, 2011, 08:58:18 PM »
I frequently do things in a sequence that would make it desirable to change work offsets on-the-fly. For example, I might face-mill the entire top surface of a piece of stock, before machining in all the features. It would be convenient to reset the Z zero to the "new" top of part, after doing the facemilling. I am doing that now, using the sequence:
G91
G10 L2 P1 Z-0.025 (Assuming I faced 0.025" off...)
G90
... (Other operations here)
G91
G10 L2 P1 Z0.025 (Restore original offset)
G90
M30
Is this the right way to do this? Is there a better way?
BTW - Got a full enclosure, and flood coolant going on my knee mill! Woo-Hoo!
Regards,
Ray L.
Logged
Regards,
Ray L.
Graham Waterworth
Administrator
Online
Posts: 1,665
West Yorkshire, England
Re: Changing Offset With G-code
«
Reply #1 on:
September 27, 2011, 09:21:36 PM »
normally the finished face of the part is Z0 and any stock is allowed for in the set up of the Z datum. E.g. touch on with datum tool zero out Z then adjust Z datum by the stock amount to be removed. This way any following tools can be set from the top face. Or if working with standard tools with known tool lengths they can just be put in and used without needing to set new offsets.
Graham
Logged
G-Code is on the cutting edge
Autovalues Engineering, CNC machining specialists, Bradford, England
BR549
Active Member
Offline
Posts: 2,557
Re: Changing Offset With G-code
«
Reply #2 on:
September 27, 2011, 09:56:27 PM »
Ray that is as good as it gets. You could use the G52 but stay away from the G92 it is the evel stepchild (;-) Even the G52 can catch you sleeping when it tries to unwind the offset.
(;-) TP
Logged
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,348
Re: Changing Offset With G-code
«
Reply #3 on:
September 27, 2011, 11:08:09 PM »
Quote from: Graham Waterworth on September 27, 2011, 09:21:36 PM
normally the finished face of the part is Z0 and any stock is allowed for in the set up of the Z datum. E.g. touch on with datum tool zero out Z then adjust Z datum by the stock amount to be removed. This way any following tools can be set from the top face. Or if working with standard tools with known tool lengths they can just be put in and used without needing to set new offsets.
Graham
Graham,
I would normally do that, but sometimes the facing operation comes in the middle of the program, not the beginning.
Regards,
Ray L.
Logged
Regards,
Ray L.
BR549
Active Member
Offline
Posts: 2,557
Re: Changing Offset With G-code
«
Reply #4 on:
September 28, 2011, 09:08:14 AM »
RUT ROW, Ray that is a different story now. Changing the offsets in the MIDDLE of the program. THAT will make keeping track of where you are a lot harder. ND make it a lot easier to crash the machine if you forget where you are OR forget what comp you have active.
Normally all your work would be done from one datum point(origin). (simple part)
The only reason I could see for that is IF you are running your knee as the tool comp for really long tooling. Then it would make sense to use it as a knee mill is NOT blessed with a lot of Z travel for long tool comp. EVEN then I would just use a Fixture Change G54-G55 to a setpoint then when you need to return just G55-G54.
BUt as always your mileage may vary, (;-) TP
«
Last Edit: September 28, 2011, 09:10:50 AM by BR549
»
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: Changing Offset With G-code
«
Reply #5 on:
September 28, 2011, 10:43:07 AM »
RAY Sense you brought up the subject(;-) You will FIND that ONE of the FAILINGS with the MACH3 G10 code IS it will NOT allow you to use a #var in the P parameter call. It requires an Integer between 1-255.
Sounds OK unitll you need to set the G10 in a Gcode program. THEN "YOU" have to know what offset you are in OR run the risk of messing up big time.
IF the P call allowed a #var to be used then you could easily use
G91 G10 L2 P#5020 Z#101
G90
The #5020 references the CURRENT fixture Number
Just a thought, (;-)TP
Logged
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,348
Re: Changing Offset With G-code
«
Reply #6 on:
September 28, 2011, 11:29:52 AM »
Quote from: BR549 on September 28, 2011, 09:08:14 AM
RUT ROW, Ray that is a different story now. Changing the offsets in the MIDDLE of the program. THAT will make keeping track of where you are a lot harder. ND make it a lot easier to crash the machine if you forget where you are OR forget what comp you have active.
Normally all your work would be done from one datum point(origin). (simple part)
The only reason I could see for that is IF you are running your knee as the tool comp for really long tooling. Then it would make sense to use it as a knee mill is NOT blessed with a lot of Z travel for long tool comp. EVEN then I would just use a Fixture Change G54-G55 to a setpoint then when you need to return just G55-G54.
BUt as always your mileage may vary, (;-) TP
Terry,
I AM using the knee for tool comp. I realize if I interrupt the program, I have to be careful about *which* zero I'm at, but that doesn't concern me too much, since I always start by touching off on the part anyway. The only time I'd interrupt a program is if something has gone wrong, in which case, all bets are off anyway, so this, at worst, is a very minor additional inconvenience.
Yes, it would be nice if G10 allowed vars. Then I would do exactly what you suggest.
Logged
Regards,
Ray L.
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...