M98 issue from S3D
trying to setup a routine for before printing and after print finished
I created start.g and printend.g inside macro folder
in S3D under the script I added M98 Pstart.g and M98Pprintend.g respectively under starting and ending script
but when I start the print, it immediately heat up tool0, which is not what I wanted here's my start.g
; run before print job
G10 P0 S215 ; set tool0 temp
T0 ; heat up tool0
M116 ; wait until tool0 fully heated
G90 ; set absolute
G1 F1500 ; set feedrate
G1 Z0.2 ; drop z to printing 1st layer height
G1 X100 E10 ; purge 10mm filament while running 100mm in X direction
so I called for homeall.g first but it didn't happen... I'm unsure what happened am I using the macro incorrectly?
You can't just put "homeall.g" in a macro file and expect it to run, because it needs to be a GCode. So use either G28 or M98 Phomeall.g.
K fixed it now it is M98 Phomeall.g but still problem persist…. Starting the print it would ignore everything just heating up and start printing...
It would even ignore whether x y z have been homed or not...
I think you will find that S3D is inserting your startup script after the heating commands that it generates. AFAIR you can prevent it doing that by including something like this in your startup script (the script you enter in S3D, not the macro file):
This may not be exactly the right syntax for S3D. The idea is that if the slicer see temperature-setting commands in your start script, it won't generate them itself.
Do I still call for my start.g in S3D start script? So
Anyway I'll try that later but last night I did manual homeall before starting print and it was apparent that the end script I put in S3D was ignored I have
Instead of moving the head and turn off heater and fan like the usual print end routine, the head just stopped at top layer and sit there with everything on…. Had to unplugged the printer.
Is S3D not recognizing M98?
Open the generated GCode file in a text editor to see exactly what S3D has put at the start and end.
hmm you are right it did not insert any of the M98 parameter in the beginning and end…
maybe I did something wrong in S3D. but where else should I put M98 if not in the starting and ending script...
Ok I sliced another test and apparently only M98 did not make it to the gcode other code made it.
Edit: M98 did not make it
number40fan last edited by
Can you take a screen shot of your S3D Scripts tab? Upload it to imgbb.com and post the BBCode.
AndreS last edited by
I have this in my end script, and after slicing with S3D 4.0 its in the print file:
start script works too.
Hmm ok I didn't use the directory location in my P parameter. Maybe that's causing the issue will try adding directory
The default folder that M98 looks in is /sys. If you put your scripts in /macros or anywhere else, you need to specify the path to the file in the M98 command.