M8/M9 problem??

Home Forums TinyG TinyG Support M8/M9 problem??

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4129
    mcgyvr
    Member

    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?

    • This topic was modified 11 years, 4 months ago by mcgyvr.
    #4133
    mcgyvr
    Member

    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
    
    • This reply was modified 11 years, 4 months ago by mcgyvr.
    #4135
    alden
    Member

    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

    #4158
    alden
    Member

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.