thwhitfield
Posts: 3
Joined: Mon Mar 21, 2016 11:27 pm

Engage Stepper Motors after build finish

I'd like to add a line of g-code to my ending script which keeps the stepper motors engaged after the build is finished. I've got a Flashforge creator pro, and after each print is done I always have to go into jog mode and raise up the build plate so that it's at a better angle to stick a paint scraper underneath the builds and wedge them off. Going into jog mode enables the stepper motors, so that when I push down on the build plate with the paint scraper the whole thing doesn't get pushed down.

Here's my current g-code ending script. I added a G1 Z100 F000 line and a M17, which raises up the build plate to the right height but for some reason the M17 command isn't leaving the stepper motors engaged after the build is done.

; **** Replicator 1 dual end.gcode ****
M73 P100 ; end build progress
G1 Z150 F1000 ; send Z axis to bottom of machine
M140 S0 T0 ; cool down HBP
M104 S0 T0 ; cool down right extruder
M104 S0 T1 ; cool down left extruder
M127 ; stop blower fan
G162 X Y F3000 ; home XY maximum
G1 Z100 F1000; send z axis 1/3 of the way up
G162 X Y F3000 ; home XY maximum
M17; Power on all stepper motors
M72 P1 ; play Ta-Da song
; **** end of end.gcode ****
CompoundCarl
Posts: 2005
Joined: Wed Aug 05, 2015 7:23 am

Re: Engage Stepper Motors after build finish

I'm pretty sure these machines have hard-coded routines that they run at the start and end of the print. For example, if you ever click Stop while a print is running, you will notice that is does some automated things like lowering the bed and disabling the motors. I don't think you can change some of these things..
thwhitfield
Posts: 3
Joined: Mon Mar 21, 2016 11:27 pm

Re: Engage Stepper Motors after build finish

Would there be a way in gcode to have the stepper motors engaged and dwell on for a minute or two before the machine thinks that print is quite done?
CompoundCarl
Posts: 2005
Joined: Wed Aug 05, 2015 7:23 am

Re: Engage Stepper Motors after build finish

You could just do some very slow G1 movements back and forth. That would keep the steppers engaged but still essentially delay for a few seconds.

Return to “General Discussion and Tips”