Sample pause resume GCODE not working

What is the problem?

I pasted the sample pause resume code into octopi. Instead of printing back where it was before the pause, about 30mm is added to the x axis. The Y axis is more difficult to tell during the shape of the part, but I think it is also going further than it should. I'm not printing from SD card and have only a single extruder, so think the code should work. I'm hoing someone will look at the serial log and see someting obvious. Here is the relevant snippet from the serial log.

2022-04-15 20:48:35,752 - Recv: ok
2022-04-15 20:48:35,754 - Send: N11650 G0 X141.174 Y65.275*30
2022-04-15 20:48:35,768 - Recv: ok
2022-04-15 20:48:35,770 - Send: N11651 G0 X139.418 Y59.093*26
2022-04-15 20:48:35,785 - Recv: ok
2022-04-15 20:48:35,786 - Changing monitoring state from "Printing" to "Pausing"
2022-04-15 20:48:35,789 - Send: N11652 M400*38
2022-04-15 20:48:38,166 - Recv: ok
2022-04-15 20:48:38,170 - Send: N11653 M114*39
2022-04-15 20:48:38,181 - Recv: X:139.42Y:59.09Z:2.70E:170.60 Count X:108.22Y:45.88Z:6.09
2022-04-15 20:48:38,217 - Recv: ok
2022-04-15 20:48:38,220 - Send: N11654 G91*22
2022-04-15 20:48:38,245 - Recv: ok
2022-04-15 20:48:38,248 - Send: N11655 M83*30
2022-04-15 20:48:38,262 - Recv: ok
2022-04-15 20:48:38,266 - Send: N11656 G1 Z+5 E-5 F4500*83
2022-04-15 20:48:38,278 - Recv: ok
2022-04-15 20:48:38,279 - Send: N11657 M82*29
2022-04-15 20:48:38,293 - Recv: ok
2022-04-15 20:48:38,295 - Send: N11658 G90*27
2022-04-15 20:48:38,309 - Recv: ok
2022-04-15 20:48:38,311 - Send: N11659 G1 X0 Y0*35
2022-04-15 20:48:38,326 - Recv: ok
2022-04-15 20:48:38,327 - Changing monitoring state from "Pausing" to "Paused"
2022-04-15 20:48:40,323 - Recv: echo:endstops hit:  X:0.05
2022-04-15 20:48:40,550 - Send: M105
2022-04-15 20:48:40,563 - Recv: ok T:200.3 /200.0 B:46.3 /55.0 @:85
2022-04-15 20:48:45,551 - Send: M105
2022-04-15 20:48:45,565 - Recv: ok T:200.9 /200.0 B:46.4 /55.0 @:63
...
2022-04-15 20:49:45,566 - Send: M105
2022-04-15 20:49:45,576 - Recv: ok T:199.6 /200.0 B:50.4 /55.0 @:91
2022-04-15 20:49:49,782 - Changing monitoring state from "Paused" to "Resuming"
2022-04-15 20:49:49,846 - Send: N11660 M83*24
2022-04-15 20:49:49,858 - Recv: ok
2022-04-15 20:49:49,861 - Send: N11661 G1 E-5 F4500*51
2022-04-15 20:49:49,874 - Recv: ok
2022-04-15 20:49:49,876 - Send: N11662 G1 E5 F4500*29
2022-04-15 20:49:49,890 - Recv: ok
2022-04-15 20:49:49,892 - Send: N11663 G1 E5 F4500*28
2022-04-15 20:49:49,905 - Recv: ok
2022-04-15 20:49:49,908 - Send: N11664 M82*29
2022-04-15 20:49:49,922 - Recv: ok
2022-04-15 20:49:49,924 - Send: N11665 G90*21
2022-04-15 20:49:49,938 - Recv: ok
2022-04-15 20:49:49,940 - Send: N11666 G92 E170.6*95
2022-04-15 20:49:49,953 - Recv: ok
2022-04-15 20:49:49,955 - Send: N11667 G1 X139.42 Y59.09 Z2.7 F4500*32
2022-04-15 20:49:49,970 - Recv: ok
2022-04-15 20:49:49,971 - Send: N11668 G1 F7200.0*93
2022-04-15 20:49:49,986 - Recv: ok
2022-04-15 20:49:49,987 - Changing monitoring state from "Resuming" to "Printing"
2022-04-15 20:49:49,990 - Send: N11669 G1 F2400 X140.472 Y62.326 E170.63533*58
2022-04-15 20:49:50,001 - Recv: ok
2022-04-15 20:49:50,003 - Send: N11670 G1 X140.775 Y63.254 E170.64451*81
2022-04-15 20:49:50,017 - Recv: ok
2022-04-15 20:49:50,019 - Send: N11671 G1 X141.584 Y66.399 E170.67506*88
2022-04-15 20:49:50,034 - Recv: ok

What did you already try to solve it?

Originally I altered the code to move to 10,10 so the endstop wouldn't be hit, so I tried changing it to 0,0, but the problem looks about the same. I tried pausing manually and by adding a pause using the "Multi Color" plugin, but also when pressing the pause button.

Have you tried running in safe mode?

Yes

Did running in safe mode solve the problem?

No noticeable change

Systeminfo Bundle

octoprint-systeminfo-20220415205433.zip (305.4 KB)
Attached. I deleted webcamd.log as that is 93m. I'm not using the webcam - I should try to work out how to switch that off.

Additional information about your setup

  • OctoPrint 1.7.3
  • OctoPi 0.18.0
  • Raspberry PI 3B Rev 1.2
  • Printer is Velleman K8200 with the upgraded Z axis threaded rod, glass bed, and e3d extruder
  • Firmware reports it is Marlin V1. It's been several years since I changed it as I'm fairly happy with it. If I find more information I will update.
  • Browser: Firefox 99 on Windows 10. Also tried Firefox on Arch Linux.

I upgraded Marlin on the board, and now it works perfectly.

It was easier than I expected. I downloaded the latest release of Marlin, the sample config for the k8200, compared the config with the updated firmware for the z axis upgrade (Search k8204 on that page), and went through the config as instructed by this useful youtube video. I'm pretty sure I only needed to change the z axis steps per unit, but I tweaked some other settings as well. Mostly setting speed limits and temperature settings to the more conservative of the options between the Velleman firmware, the youtube video and the sample config. I compiled it in the latest Arduino,and uploaded it to the printer.
As I say, it works fine now. I'm really pleased!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.