Welcome! Log In Create A New Profile

Advanced

G-Code, sleep and wait..

Posted by Mahon 
G-Code, sleep and wait..
June 02, 2014 07:00PM
Hi,

in g-code...

first:
is there a way to sleep 20 seconds and then go on?

second:
is there a way to stop g-code working and wait .... user press ok or pause or play... then it go on with g-code working..

Mahon
Re: G-Code, sleep and wait..
June 04, 2014 03:25AM
Hi,

I have found a G4, and it works like a sleep.
Quote
G4: Dwell Example: G4 P200 In this case sit still doing nothing for 200 milliseconds. During delays the state of the machine (for example the temperatures of its extruders) will still be preserved and controlled.

But i cant find any to user dialog...

Markus
Re: G-Code, sleep and wait..
June 13, 2014 02:42AM
M226: Gcode Initiated Pause

Example: M226

Initiates a pause in the same way as if the pause button is pressed.

That is, program execution is stopped and the printer waits for user interaction. This matches the behaviour of M1 in the NIST RS274NGC G-code standard and M0 in Marlin firmware.


Bob Morrison
Wörth am Rhein, Germany
"Luke, use the source!"
BLOG - PHOTOS - Thingiverse
Sorry, only registered users may post in this forum.

Click here to login