G92 X0 Y0 Z380 defines the position when homed - required while there is no endstops beware max carriage travel > max height G1 S2 X520 Y520 Z520 F4000 move all carriages up 520mm S2 no stop detection resulting current shall be above 30% of stepper RATED current. M913 X50 Y50 Z50 Reduce current to a percentage on the current as defined by M906 (here 50%) macro /sys/homedelta.g Homing file without stop switches (board with digipots) The new G-code M913 defining current percentage is available from DC42 v1.14. The precision is not very good (0.2 to 0.5 mm) but that shall be corrected by the calibration run.įor any reason, the S2 parameters don’t effectively prevent stop detection, so the below routine only works on machine NOT equipped with switches. Also, the mechanical stop shall not be too springy e.g. You shall experiment for own steppers, with minimum current values around 30% of nominal current. Increasing current to a minimal value reduce the rebound. Experience show that a too low current drive to difficulties for the stepper to ‘re-hook’ to steps and large rebounds. With digital potentiometer allowing stepper current adjustment by software, it is possible to stall the motors on movement mechanical stops, so removing need for end stops switches and improving reliability. Homex.g, homey.g and homez.g Homing without end switches There are also standard system macros for independent axis: G1 Z-10ğ2000 down a few mm so that we can centre the head G1 S1 X8 Y8 Z8 F500 move carriages up 8mm, stopping at the endstops G1 S2 X-4 Y-4 Z-4 F1000 move all tower carriage down 4mm, no stop detection G1 S1 X520 Y520 Z520 F8000 move all carriages up 520mm – S1 moves X,Y,Z carriages and detect stops use F500 for commissioning (low speed) - beware max carriage travel > max height macro /sys/homedelta.g Homing file for RepRapFirmware on delta printer G30 home Z, using values from G31 in config.g G1 Y0 F2000 move Y, ADJUST the Y value to get Z probe over target G1 Y3 F2000 ADJUST the Y value to put the nozzle on the edge of the bed G1 X45 F2000 move X, ADJUST the X value to get Z probe over target G1 X15 F2000 ADJUST the X value to put the nozzle on the edge of the bed macro /sys/homeall.g homing for a cartesian The homedelta.g macro is called if the printer configuration is defined as delta ( M665 command).Įxample for a cartesian printer (here an Ormerod). This macro is called by G28 and home the printer.
The printer configuration is defined in the main macro config.g.Ĭonfiguration and update of this file is detailed in other pages. It is recommended to create you whole macros set before starting the commissioning. It is a sort of always available documentation.
Some listed macros are single line and fairly basic, but creating these macros once prevent searching the documentation month later when you will have to redo part of the commissioning or calibration and forgot the commands. SD images of RepRapPro (Fisher image missing).The below macros are given as examples, but you shall have a look on specific SD images to establish your own macro set. Note that many listed command may not work with the firmware as delivered with your board (notably Replikeo boards) and you may update the firmware for proper operation. The G-codes set of RepRap Firmware is evolving and the description below apply to the most recent firmwares, from DC42 or Chrishamm forks. A mistake in the syntax of a macro may hold the printer.A macro can call another macro located in any directory.User defined macros could be set in any directory, including /sys.Files located in /macros directory are presented to user in DWC panel, whatever their extension.Firmware use macros with predefined names located in /sys directory.A macro is a text file containing a sequence of G-codes.Most RepRap Firmware board operations are handled by macros files stored on the SD card.
Principle of RepRap Firmware macros operation