Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
German Forum
Italian Forum
Portugese Forum
Resources
Links
User Reviews
User Videos
Contact Us
CNCZone
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
December 01, 2008, 09:47:51 PM
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
G-Code, CAD, and CAM
G-Code, CAD, and CAM discussions
G52 Rapid Positioning Problem
Pages:
1
Go Down
« previous
next »
Author
Topic: G52 Rapid Positioning Problem (Read 759 times)
0 Members and 1 Guest are viewing this topic.
cameraman
Active Member
Offline
Posts: 18
G52 Rapid Positioning Problem
«
on:
May 24, 2008, 03:51:56 PM »
Hello, I've got a problem that maybe someone can shed some light on. Sometimes after issuing a G52 offset for X and Y, if I don't immediately issue a X or Y command, the next rapid position acts as if it were in Incrimental and not Absolute positioning mode. I'm in Absolute.
If you plug the following code into Mach3 then you'll see that it rapid positions way to the right, and then back before entering the subroutine the first time. However, if you remove the line in the subroutine "G00 Z.125 % Remove this line" then it acts fine. I always like to have that safe z positioning in there, just in case I forgot somewhere else. This has been a problem for a while, if anyone knows a fix for it then please let me know. Perhaps I need to change some settings.
Thanks,
Stewart
G90
G52 x0 y0
% Contour Outside
F10
G00 X6.75 Y-.020
G00 Z-.125
G01 X7 Y0
G03 X7.5 Y.5 R.5
G01 Y4
G03 X7 Y4.5 R.5
G01 X6.75 Y4.520
G00 Z.125
%Countersink holes
G52 X7 Y.75
M98 P100
G52 X7 Y1.75
M98 P100
G52 X7 Y2.75
M98 P100
G52 X7 Y3.75
M98 P100
G52 X0 Y0
M02 % end program
O100 % SUBROUTINE bore hole .630 diameter, .375" deep
G00 Z.125 % Remove this line
G00 X0 Y0
G00 Z-.125
F3 G01 Z-.25
F6
G02 X.057 Y0 R.0285
G02 X.057 Y0 I0 J0
G02 X0 Y0 R.0285
F3 G01 Z-.375
F6
G02 X.065 Y0 R.0325
G02 X.065 Y0 I0 J0
G02 X0 Y0 R.0325
G00 Z.125
M99
M0
Logged
Graham Waterworth
Administrator
Online
Posts: 1,173
West Yorkshire, England
Re: G52 Rapid Positioning Problem
«
Reply #1 on:
May 24, 2008, 04:27:11 PM »
the % sign in Mach depicts the start and end of the nc program, if you are running the program with these in the try removing them.
Graham.
%
G90
G52 x0 y0
(Contour Outside)
F10
G00 X6.75 Y-.020
G00 Z-.125
G01 X7 Y0
G03 X7.5 Y.5 R.5
G01 Y4
G03 X7 Y4.5 R.5
G01 X6.75 Y4.520
G00 Z.125
(Countersink holes)
G52 X7 Y.75
M98 P100
G52 X7 Y1.75
M98 P100
G52 X7 Y2.75
M98 P100
G52 X7 Y3.75
M98 P100
G52 X0 Y0
M30 (end program)
O100 (SUBROUTINE bore hole .630 diameter, .375" deep)
G00 Z.125 (Remove this line)
G00 X0 Y0
G00 Z-.125
F3 G01 Z-.25
F6
G02 X.057 Y0 R.0285
G02 X.057 Y0 I0 J0
G02 X0 Y0 R.0285
F3 G01 Z-.375
F6
G02 X.065 Y0 R.0325
G02 X.065 Y0 I0 J0
G02 X0 Y0 R.0325
G00 Z.125
M99
%
«
Last Edit: May 24, 2008, 04:32:19 PM by Graham Waterworth
»
Logged
G-Code is on the cutting edge
Autovalues Engineering, CNC machining specialists, Bradford, England
cameraman
Active Member
Offline
Posts: 18
Re: G52 Rapid Positioning Problem
«
Reply #2 on:
May 24, 2008, 07:49:37 PM »
Well I tried that, thanks for the tip, but it didn't make any difference. In the manual, section 10.5.5 it says that a line that starts with a % is treated as a comment and not interpreted. Perhaps that isn't true.
Thanks,
Stewart
Logged
cameraman
Active Member
Offline
Posts: 18
Re: G52 Rapid Positioning Problem
«
Reply #3 on:
May 24, 2008, 07:57:30 PM »
If you stick the code in Mach3 and look at the tool path, then remove that one line in the subroutine (G00 Z.125) then you'll see the difference that it makes. Attached are some screen grabs to show whats going on. Removing that one rapid Z command makes it work correctly.
without_redundant_z_command.jpg
(14.34 KB, 313x278 - viewed 92 times.)
with_redundant_z_command.jpg
(13.58 KB, 218x200 - viewed 91 times.)
Logged
Graham Waterworth
Administrator
Online
Posts: 1,173
West Yorkshire, England
Re: G52 Rapid Positioning Problem
«
Reply #4 on:
May 25, 2008, 03:32:32 AM »
It looks like an initialisation of the datum change that is causing the problem, if you swap the sequence around its fine. I will pass this one on to Brian for his comments.
Graham.
%
G90
G52 x0 y0
(Contour Outside)
F10
G00 X6.75 Y-.020
G00 Z-.125
G01 X7 Y0
G03 X7.5 Y.5 R.5
G01 Y4
G03 X7 Y4.5 R.5
G01 X6.75 Y4.520
G00 Z.125
(Countersink holes)
G52 X7 Y.75
M98 P100
G52 X7 Y1.75
M98 P100
G52 X7 Y2.75
M98 P100
G52 X7 Y3.75
M98 P100
G52 X0 Y0
M30 (end program)
O100 (SUBROUTINE bore hole .630 diameter, .375" deep)
G00 x0 y0
Z.125
G00 Z-.125
F3 G01 Z-.25
F6
G02 X.057 Y0 R.0285
G02 X.057 Y0 I0 J0
G02 X0 Y0 R.0285
F3 G01 Z-.375
F6
G02 X.065 Y0 R.0325
G02 X.065 Y0 I0 J0
G02 X0 Y0 R.0325
G00 Z.125
M99
%
Logged
G-Code is on the cutting edge
Autovalues Engineering, CNC machining specialists, Bradford, England
cameraman
Active Member
Offline
Posts: 18
Re: G52 Rapid Positioning Problem
«
Reply #5 on:
May 25, 2008, 08:48:11 AM »
Cool, thanks for passing it on, most of the time it is easy to change around the order but in some situations it has been difficult, and it is always good practice to have that safety Z move first in case I start a program from somewhere in the middle when it isn't already at a safe height.
Stewart
Logged
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.
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*e*i*n*g
=> Mach Screens
=> Feature Requests
=> Non English Forums
=> FAQs
===> Finished Plugins for Download
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
-----------------------------
*****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
=> Lazy Cam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Promote and discuss your product .
=> Sieg Machines
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
=> One on one phone support.
=> Forum suggestions and report forum problems.
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
Loading...