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 26, 2012, 02:55:28 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
VB and the development of wizards
Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal. (Read 1087 times)
0 Members and 1 Guest are viewing this topic.
FXC
Active Member
Offline
Posts: 45
Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
«
on:
May 23, 2010, 12:43:09 AM »
I'm trying to do some precisely timed movements, in sort of a "rhythm", if you want. I placed G04 commands between G01's and gave it a run. With pauses in the range of seconds, everything seemed to work as planned. However, scaling down the time intervals to the range of tens of milliseconds, pretty much flattened out the G04 durations, making them - as far as I can tell - constant pauses. Thus my intended "rhythm" becomes "monotone".
Basically, it comes down to something like this:
A G04 P300 pauses for approx 300ms - OK
A G04 P200 pauses for approx 200ms - OK
A G04 P100
still pauses for approx 200ms
Same for A G04 P50, which also pauses for
approx the same 200ms.
And so on.
Even a G04 P1 which should cause a virtually imperceptible one millisecond pause, actually causes a highly perceptible stop.
I don't know how to explain this better but...
PLEASE HELP!
Logged
Mach3 is a mess.
BR549
Active Member
Offline
Posts: 2,551
Re: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
«
Reply #1 on:
May 23, 2010, 11:03:04 AM »
I don't think mach was design to do accurate LOW ms pauses IN "GCODE" AS a simple G4 P0 will cause a slight pause in itself. Being a buffered system it really has no realtime control of the pause. AND in the range you are trying to do it may get delayed from the basic time loop mach runs.
Are you checking this with a scope or eyeballing it(;-)
Just a thought
Logged
FXC
Active Member
Offline
Posts: 45
Re: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
«
Reply #2 on:
May 25, 2010, 10:38:33 AM »
Quote from: BR549 on May 23, 2010, 11:03:04 AM
I don't think mach was design to do accurate LOW ms pauses IN "GCODE"
Can anyone confirm this?
Quote
[...] really has no realtime control of the pause. [/quite]
I'm sure this is not the case. The entire concept on which Mach is built upon is for a PC to provide [relatively] accurate pulses for motors.
Quote
Are you checking this with a scope or eyeballing it(;-)
There's really no way of checking it, but it's just obvious. You can hear it. And, as you said, even a P0 causes a slight hiccup.
Is this way of handling G04's inherent to Mach3? Can anyone suggest an alternative or a fix?
THANKS!!!
Just a thought
Logged
Mach3 is a mess.
bbchevy396
Active Member
Offline
Posts: 2
Re: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
«
Reply #3 on:
June 16, 2011, 12:50:25 AM »
I am having exactly the same issue in timing a pause at the end of a scribed path, on my CNC table, to allow the scribe to lift from the plate before a rapid move to the next cut-path. It is either too long of a pause and leaves a divot from prolonged contact in one spot, or too short (no pause) and leaves a "leadout" looking scribed mark as it heads rapids to the next part.
Any help? Sorry to jack this thread.
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
«
Reply #4 on:
June 16, 2011, 09:51:33 AM »
What you may be seeing IS Mach actually processing the dwell function, it is not just a countdown timer. It also has to put a hold on the buffer queing process. A G4p0 cause the que to hold the data from filling the buffer untill the buffer is empty so it can process the dwell in real time.
BUT this exta process has an overhead . It takes times to do it.
That is my best explaination and you have to remember MACH3 is primarily a CNC machine controller not a high end process controller. The CNC part does not require the precise time function control to turn on/off the coolant or start the spindle.
Just a thought, (;-) TP
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
«
Reply #5 on:
June 16, 2011, 09:59:53 AM »
Sounds like a GCODE problem with the scribing, not enough retract clearance. IF you command G0 z1 to lift the scribe from the surface the machine will not process the next line of code UNTILL Z reaches the 1 position. SO if the code is correct XY cannot move until z=1. TO test ADD more retract to the move Z=2 to make sure the tip is not draging the surface for an instant due to springback.
Just a thought, (;-)TP
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
«
Reply #6 on:
June 16, 2011, 10:10:31 AM »
iF you want extreme time base action use the motor pulse functions to drive YOUR function THESE are extremely accurate in time slices. BUT then again they are not CREATED in real time just output in realtime.
Take for example the LASER guys to precisely control the on/off of the laser they have to use the direction pulse of an axis to control the laser. that is the only thing fast and precise enough to do the job in MACH. Otherwise the axillary controls such as spindle on/off have a slight built in dwell. And for a laser that is not fast enought for precise control
(;-) TP
«
Last Edit: June 16, 2011, 10:14:59 AM by BR549
»
Logged
Tony Bullard
Active Member
Offline
Posts: 83
Re: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
«
Reply #7 on:
June 16, 2011, 10:42:03 AM »
Just a crazy plane I haven’t tried. Set up an axis that you aren’t using and command a short move.
Instead of G04---
use something like
G91
G01 C .5 F10
G90
Then adjust the distance and feed rate to get your time.
Tony
«
Last Edit: June 16, 2011, 10:45:54 AM by Tony Bullard
»
Logged
bbchevy396
Active Member
Offline
Posts: 2
Re: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
«
Reply #8 on:
June 16, 2011, 08:48:57 PM »
Sorry guys, I wasn't clear on my previous post. I'm running the scribe with a pneumatic cylinder, and controlling it with a selenoid from the #2 output.
The mechanics all work beautifully. I ran some Gcode test moves today, and I can get approx 500ms pause with a Go4 command, or no pause at all. This is exactly the same issue the original poster had, when trying to get a 100 - 300 millisecond pause.
It appears that a 500ms pause is no problem... anything less, and mach wont do it.
After reading some other threads on the same issue, it appears that a VB script marco, with a sleep command WILL do the short pauses... that a G04 command wont.
Now.... since I have no idea how to write a macro, could someone offer me a few pointers on the basics?
All I'm looking for is a macro that has a "sleep 100" line that will work, and I can modify the pause length.
thanks for the help!
Jim
Logged
Tweakie.CNC
Active Member
Offline
Posts: 3,258
Super Kitty.
Re: Is G04 (dwell) time utterly inaccurate? Below a certain value, pauses are equal.
«
Reply #9 on:
June 17, 2011, 01:00:57 AM »
Jim,
I think the easiest solution is as both Tony and Terry have suggested in their posts above. You can get reliable delays from a few uS upwards by using a non-existent axis in this way.
VB macro's will also have their own minimum delays so it depends on the smallest amount of delay you really need as to which is best.
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
Pages:
1
2
»
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...