arhi
Posts: 480
Joined: Thu Oct 06, 2016 5:13 pm

pause / resume from the mcp, reading pause from fw..

Hi, what does "exactly" pause button does on the machine control panel .. does it just stop sending G-code (and on resume continue from where it stopped) or after pause it can send some codes (and some codes after resume) ?

asking because I setup pause/resume buttons on a printer and printer properly pause executing code and resumes, the problem is s3d continues to send the g-code troughout the process :( ..

when I pause the firmware (http://smoothieware.org/player) it will send the "pause" to the s3d but s3d is ignoring this :( ... so I'm trying to figure out if I have to press the pause on the mcp first, then pause on the printer, then resume on printer then resume in s3d .. sounds tedious, but then I could use only the s3d mcp and on pause I need to send M600 to send printer in to suspended mode, and then after fiddling with it (changing filament, whatever..) click on resume and send M601 to printer ...

also, is there any way to tell s3d to understand pause from inside g-code (if I for e.g. setup M600 in the g-code it's printing the printer will pause, how to let s3d know that printer is paused?)

I think the whole "pause/fiddle/resume" thing should be properly documented (if it is please give me link) as is kinda important .. but some guidelines would help
gcodestat integrates with Simplify3D and allow you to
Calculate print time accurately (acceleration, max speed, junction deviation all taken into consideration)
Embed M117 codes into G-Code
Upload your G-Code directly to Octoprint
open source and unlicence
CompoundCarl
Posts: 2005
Joined: Wed Aug 05, 2015 7:23 am

Re: pause / resume from the mcp, reading pause from fw..

If you are printing over USB and you press pause, it will stop sending commands to the printer. There may be a few left in the buffer on the firmware, but it should stop after a few seconds.

I'm not sure how you would handle pausing from the machine itself, since it isn't the one sending commands. The firmware could of course send a special command back to the computer, but whoever develops the firmware would need to make sure that all of the host software our there knew how to handle this command. Maybe the firmware could also just stop responding to incoming commands. I imagine that would eventually cause most host programs to stop sending new stuff, but that's also not ideal since that would probably confuse a lot of programs as well..
arhi
Posts: 480
Joined: Thu Oct 06, 2016 5:13 pm

Re: pause / resume from the mcp, reading pause from fw..

CompoundCarl wrote:If you are printing over USB and you press pause, it will stop sending commands to the printer. There may be a few left in the buffer on the firmware, but it should stop after a few seconds.
so it just stops sending and does nothing else, on resume it continues where it stopped?
CompoundCarl wrote: I'm not sure how you would handle pausing from the machine itself, since it isn't the one sending commands. The firmware could of course send a special command back to the computer, but whoever develops the firmware would need to make sure that all of the host software our there knew how to handle this command. Maybe the firmware could also just stop responding to incoming commands. I imagine that would eventually cause most host programs to stop sending new stuff, but that's also not ideal since that would probably confuse a lot of programs as well..
some firmwares already do this (smoothieware for e.g.) and some apps support it (octoprint, pronterface for e.g.)
smoothieware manual wrote: Suspends the execution of a file being played from SDCARD or being streamed from a host (upstream support required currently pronterface and octoprint support it, otherwise host needs to be manually paused), all state is saved and jogging and extruding is allowed. Mainly used for mid print filament change, or filament out detection. M601 resumes the print or the resume command
anyhow not something that's too problematic, I click pause in s3d, I click pause on printer, I do what I need to, I click resume on printer, I Click resume on s3d and ... I just wanted to be sure that s3d is not sending/receiving anything automatically .. (I can even instead of pressing pause on printer just send M code for suspend/resume)

thanks
gcodestat integrates with Simplify3D and allow you to
Calculate print time accurately (acceleration, max speed, junction deviation all taken into consideration)
Embed M117 codes into G-Code
Upload your G-Code directly to Octoprint
open source and unlicence
Brunibbels
Posts: 7
Joined: Fri May 26, 2017 12:07 pm

Re: pause / resume from the mcp, reading pause from fw..

Using Repetier-Server / -Host you just send commands like:

start (for unexpected reboot -> stops all printing)
RequestStop:
RequestPause:
RequestContinue:

from the Firmware to the server/host using Logdata -> and it stops sending G-Code. Is this supported by Simplify3D too, today?
The acutal use is there! Please implement such if not there or please tell me how it works with S3D if it is some hidden feature :)

Edit: Octoprint accepts those: http://docs.octoprint.org/en/master/fea ... mands.html

Greetings

Return to “General Discussion and Tips”