Printing and pusing for an amount of time then resuming the print while in an infinit prining loop

I am using crealiry CR-30 printer.

I am trying to print a chain in an infinit loop but puse the printer after 8 houres then resume the print.
as a test, before the loop ends (M808 in the gcode) I placed:

M25 ; Pause the print
G4 S60 ; Wait for 1 minutes (60 seconds)
M24 ; Resume the print

what I am getting is a print of one loop, puse for 60 seconds, and then the print starts form the very beginning, not the start of the loop.

please advice

per this page the resume command requires you to put a line in the file. without that it’s probably interpreted as a start command.

the CR-30 with Marlin firmware may not be able to do what you expect here.

Thanks Stewart, I’ll try that.