Thread: G4 Dwell parameters
we all know (??) that G4 is the gcode for dwell
it takes a parameter to indicate the dwell (pause) duration
I have seen various ways of expressing this
I asked in another forum and wasn't entirly happy with the answers
they included - "you can specify seconds or milliseconds"!!
so:G4 X123 // dwell for 123 seconds or 123 milliseconds?which is right?
G4 X123.0 // dwell for 123 seconds or 123 milliseconds?
G4 P123 // dwell for 123 seconds or 123 milliseconds?
G4 P123.0 // dwell for 123 seconds or 123 milliseconds?
actually what I really want to know is how to decode the dwell command
(I'm working on a gcode interpreter for an Arduino based controller)
I do not know Arduino but in Mach3 it is specified in the controller (General Config) whether it is seconds or milli seconds
And the code is G04 P50
NIST specifies P as seconds. But as said above Mach3 for example allows modification of the way this is interpreted to be secs or ms. However as you're writing the interpreter you could take the view that P can mean whatever you want it to mean. Then whenever you or anyone else writes a POST for your interpreter you/they will write it accordingly.
Thanks for that
sounds like a definitive source rather than the "I have a mate whose friend said that he read somewhere..."
seconds it is then
(might still have a configuration option for mS - and an Mcode to flip between the two)
is there a standard way of using unused Mcodes - or do you just get on with it?
for example I have already implemented:
M111 to set debug level
M226 pause until user hits Go button
M254 program start (initialise everything)
M255 request current command completion status
I'll just keep hijacking codes until I see another implementation/definition that uses them!
a) I want to implement a gcode interpreter "properly" so I need to know what the G4 syntax means
b) I am using Eagle to lay out PCBs; the gcode converter spits out a (G4 P3) delay after starting the spindle
clearly that needs to be 3 seconds not 3 mSeconds!
By hoezap in forum Tool & Tooling TechnologyReplies: 0Last Post: 15-06-2013, 12:18 PM