Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulate dwells (G4 P-) #412

Open
ShamanTcler opened this issue Jan 9, 2024 · 3 comments
Open

Simulate dwells (G4 P-) #412

ShamanTcler opened this issue Jan 9, 2024 · 3 comments

Comments

@ShamanTcler
Copy link

This may be a "corner case" but I have written a spindle warm up that does not move any of the axis. I expected the code to run, and watch the RPMs to go up and down with time.... but I get nothing.

Code snippet:

(Safe block)
(G20 Units: inches)
(G90 Absolute distance mode)
(G17 work on in the X & Y plane)
(G80 cancel all active canned cycles)
(G40 turn off cutter compensation)
(G49 turn off tool length compensation)
G20 G90 G17 G80 G40 G49 

(Work offset: G54)
G54

(4500 RPM, turn on spindle CW)
S4500 M03 
(Dwell 60 seconds)
G04 X60
(Stop spindle)
M05

(end the program)
M30
@jcoffland
Copy link
Member

CAMotics does not currently simulate dwells. Also, the correct code for a dwell is G04 P60.

@jcoffland jcoffland changed the title Spindle warm up GCode ... yup no axis move Simulate dwells (G4 P-) Jan 9, 2024
@ShamanTcler
Copy link
Author

ShamanTcler commented Jan 9, 2024

Oh how I wish there was an ANSI standard for GCode. Seem some dialects of GCode support something like

G04 X3.5 (dwell 3.5 seconds)

as far as you are concerned, do you support:

G04 P3.5 (dwell 3.5 seconds)                                  <- seems to be a Haas thing

or must it be:

G04 P3500 (dwell 3.5 seconds)

@jcoffland
Copy link
Member

Only the middle one.

The GCode supported by CAMotics is described here: https://camotics.org/gcode.html There is a GCode standard, RS274/NGC. Not everyone follows it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants