As I'm working through tweaking my tool-change gcode for Prusaslicer, anytime there is a movement on the Y axis - which is where my 3D Chameleon switch is mounted - after about 4-5 seconds, the stepper motor disengages and no longer holds tension on the belt - so the bed pushes back off the button, which screws up the rest of the routine because now the position of build plate is off by about 3-4mm and will no longer push the button. To get around this, I've sprinkled "M117 Y" (engage stepper motors) throughout the tool-change g-code to try and keep in engage anytime there is a pause of more than 3 seconds - but I'm still missing some because I get up to where the 3dC is trying to back out the 2nd filament, and by that time, the position is off.
I am trying to figure out if this is a setting in the ancient version of Marlin my printer is using or something I can correct with a gcode setting.
Any insight would be appreciated.
Yep... I was just going to post a similar answer. Here's Marlin's commands for that. https://marlinfw.org/docs/gcode/M018.html
I may have just answered my own question - in looking at my printer's firmware, the manufacture set the DEFAULT_STEPPER_DEACTIVE_TIME setting in Configuration_adv.h to 5 seconds!!! (default is 60!). It looks like I can fix this either by editing the firmware (still not quite comfortable with that - don't want to brick my only printer), or via G-Code with the M84 command and an S parameter to set the timeout. For example; M84 S300 would set the motors to disable 5 minutes after the last move.