You have an example of a macro bed.g for a cartesian (here an Ormerod ) here :
RepRap_Firmware_macros#bed.g [
reprap.org]
Another possibility is to set the probe points directly in config.g, without creating a bed.g - this is an extract of the Ormerod image on DC42 repository -.
;*** Adjust the XY coordinates in the following M557 commands to suit your build and the position of the IR sensor
M557 P0 X60 Y0 ; Four...
M557 P1 X60 Y165 ; ...probe points...
M557 P2 X222 Y165 ; ...for bed...
M557 P3 X222 Y0 ; ...levelling
;M557 P4 X141 Y82.5 ; 5th probe point for levelling (un-comment this if you are using a dc42 differential IR probe)
;*** If you have a modulated IR probe with on-board microcontroller, change P2 to P1 in the following
M558 P2 ; Use a simple modulated Z probe (change to P1 for an intelligent Z probe)
G31 Z1.20 P500 ; Set the probe height and threshold (put your own values here)
Pierre
- Safety [reprap.org]
- Embedded help system for Duet and RepRap Firmware [forums.reprap.org]
- Enclosed delta printers Lily [rouzeau.net] and Lily Big [rouzeau.net]
- OpenScad delta printer simulator [github.com]
- 3D printing on my site [www.rouzeau.net]