@pause problem

Hi,

I've been trying to write a short macro to help me level the bed. The idea is to move the extruder to a specific position, pause to let me take a measurement, I click to continue and then the process repeats a total of four measurements in four different positions.

G1 Z100 X41 Y137 F3000
G1 Z50.4 X41 Y137 F3000
;@pause take measurement
G1 Z100 X41 Y137 F3000
G1 Z100 X162 Y137 F3000
G1 Z50.4 X162 Y137 F3000
;@pause take measurement
G1 Z100 X162 Y137 F3000
G1 Z100 X41 Y260 F3000
G1 Z50.4 X41 Y260 F3000
;@pause take measurement
G1 Z100 X41 Y260 F3000
G1 Z100 X162 Y260 F3000
G1 Z50.4 X162 Y260 F3000
;@pause take measurement
G1 Z100 X162 Y260 F3000

But although the pause dialog box pops up the printer carries on moving. So I let it carry on then clicked continue and it moved to, I think, the position it had been in before the first pause.

If I try:

G28 X0 Y0 ; home X and Y axes
@pause
G1 Z100 X41 Y137 F3000

It definitely carries out the G28, the pause dialog box pops up but even before I hit continue (box stays there) it does the G1. When I click continue it goes back to the position it was in before the @pause, even moving the Z axis back.

I expected the extruder to stay in the position it was before the @pause, and only continue moving after I click continue.

If anyone can tell me what I'm doing wrong then it would be appreciated. I've not posted this as a bug report but I fully expect that I've made a mistake.

Comments

  • @pause pauses a print - if you defined a named macro this will not pause. The content is just put into the manual commands queue while @pause affects the print gcode queue only. So if you make it a gcode file that you start like a print it should do the pauses.

    Just make sure there is no move in your pause start/end script that gets send on each pause.
  • Thanks, that clears that up.

    Just one thing I'd like to check:
    ."Just make sure there is no move in your pause start/end script that gets send on each pause."
    I assume you mean in the script for run on pause?
    "You have the possibility to define some G-Code scripts for start, end, run on kill, run on pause and..."
    I will double-check that before I do anything.
  • Yes, that is the script I meant. Normally you would move there to a pause position so you get no filament on print during pause.
  • OK. That makes sense. Thanks for your help.
Sign In or Register to comment.