M8/M9 problem??

From the original Synthetos forum (2011–2025)

Started by mcgyvr on in TinyG Support. 3 replies, last activity Jun 1, 2013.

#

Finally got my machine running (using the TinyG console APP)
I have an SSR on the coolant pin powering a pneumatic solenoid. It works just fine when I press the coolant button in the app and stops when I press the coolant button again or if I manually send an M8 it works and sending M9 stops it..
BUT when I actually run a gcode program I am having problems..

The test code I'm using..


M20 (Inches)
G0 X1 Y1
M8
G4 P2 (WAIT FOR CYLINDER - DOWN)
M9
G4 P2 (WAIT FOR CYLINDER - UP)
M30 (END OF CODE)

The problem is that when the M8 is called the coolant light just quickly flashes on and does not stay on until the G4 P2 dwell completes and the M9 is issued.

I "assumed" that this code above would turn the coolant on for 2 seconds but it doesn't ???? help :) ??

Do I have to put the G4 P2 on the same line as the M8 and M9?
like this
M8 G4 P2?

#

I got it to work how I want but it doesn't seem right to me.. Maybe a bug?
This moves X1 Y1 then turns the coolant on and pauses for 1 second. Then turns the coolant off and pauses for 1 second again before moving X2 Y2. It just doesn't seem right.. I wouldn't expect the G4 P1 delay before the M9 to create a delay AFTER the M9 but it did.


M20
G0 X1 Y1
M8 G4 P1 (COOLANT ON AND PAUSE)
G4 P1
M9 (COOLANT OFF)
G0 X2 Y2
M30
Staff #

OK. This sounds weird. I'll look into this but probably not until the weekend (being realistic). Thanks for documenting is so well. What build are you running?

Alden

Staff #

This has been fixed and is available in the edge branch, build 377.08

This topic is from the original forum (June 2013). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.