<p>I was just about to start using my 3D printers heated bed to warm a chemical reaction in a container and was thinking it would be great to be able to get the bed stepping back and forth to stir the pot.
Can anyone already up to speed in programming G-code walk me through a quick and dirty way to get the X-axis on my old Printrbot metal doing a couple of micro-steps either way in an endless loop? Or suggest some software out there that could achieve the same effect? </p>

[{'answer_id': 13527, 'author': 'norlesh', 'author_id': 20889, 'author_profile': 'https://3dprinting.stackexchange.com/users/20889', 'pm_score': 0, 'selected': False, 'text': '<p>Never mind, figured the quickest dirtiest way myself - created a tall thin cylinder shape model in Blender and positioned it in Repetier so the printer head will be clear of the table as it moves. Then just broke off the filament that was currently in the printer so it will stop feeding once the current piece gets to the end of the feeder wheel. - not an endless loop but should give me a good 10 or 20 minutes of agitation before I need to restart the print if necessary.</p>\n'}, {'answer_id': 13528, 'author': '0scar', 'author_id': 5740, 'author_profile': 'https://3dprinting.stackexchange.com/users/5740', 'pm_score': 3, 'selected': True, 'text': '<p>Basically you need to write a G-code file yourself. This is a plain text file with a <code>.g</code> extension.</p>\n\n<p>You need to home the printer with <code>G28</code>, then move the Y axis all the way forward (for a Prusa style printer) with <code>G1 F1500 Y{ymax}</code> (where <code>{ymax}</code> is the length of the bed). Now raise the head with a similar command <code>G1 F500 Z{zmax}</code> (where <code>{zmax}</code> is the height of the printer volume).</p>\n\n<p>Heating the bed is done with <a href="https://reprap.org/wiki/G-code#M190:_Wait_for_bed_temperature_to_reach_target_temp" rel="nofollow noreferrer"><code>M190 S60</code></a> (set and wait to reach 60&nbsp;&deg;C).</p>\n\n<p>You can now rock the Y axis by moving it fast, e.g. with <code>G1 F5000 Y{ymax-5}</code>, <code>G1 Y{ymax-1}</code>, <code>Y{ymax-5}</code>, <code>Y{ymax-1}</code>, etc.</p>\n'}, {'answer_id': 13540, 'author': 'FarO', 'author_id': 2338, 'author_profile': 'https://3dprinting.stackexchange.com/users/2338', 'pm_score': 1, 'selected': False, 'text': '<p>Stefan from CNC kitchen already did it: <a href="https://github.com/CNCKitchen/3D-Printer-Vibration" rel="nofollow noreferrer">https://github.com/CNCKitchen/3D-Printer-Vibration</a></p>\n'}]
['https://3dprinting.stackexchange.com/questions/13526', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/20889/']