Marlin G38.2-G38.5 - Probe target
GrblPlotter, form-probe
The Probe Target commands are used to probe towards (or away from) a workpiece to determine its precise position. You might, for example, use a grounded metal workpiece, with a metal probe spliced into the bed probe circuit. All G38-Commands use by default the current homing feedrate. G38.2 - Example: 'G38.2 Z-25 F100' probes towards a target and stops on contact, signaling an error if it reaches the target position without triggering the probe. G38.3 probes towards a target and stops on contact. No error is given if it fails to trigger the probe. G38.4 probes away from a target and stops on contact break. An error is signaled if the target position is reached without triggering the probe. G38.5 probes away from a target and stops on contact break. No error is given if it fails to trigger the probe.
Touch Probe Commands Guide The 3 commands below should each go under a separate macro in the macro tab in Universal G-Code Sender - Classic. Z Probe G38.2 Z-25 F100; G10 P0 L20 Z5; G21 G91 G0 Z3 XYZ Probe 1/4 bit G38.2 Z-25 F100; G91 G0 Z3; G91 G0 X-50; G91 G0 Z-8.2; G38.2 X30 F100; G91 G0 X-3; G91 G0 Z8.2; G91 G0 Y-50; G91 G0 X50; G91 G0 Z-8.2; G38.2 Y30 F100; G91 G0 Y-3; G91 G0 Z8.2; G10 P0 L20 X34.355 Y-17.255 Z8 XYZ Probe 1/8 bit G38.2 Z-25 F100; G91 G0 Z3; G91 G0 X-50; G91 G0 Z-8.2; G38.2 X30 F100; G91 G0 X-3; G91 G0 Z8.2; G91 G0 Y-50; G91 G0 X50; G91 G0 Z-8.2; G38.2 Y30 F100; G91 G0 Y-3; G91 G0 Z8.2; G10 P0 L20 X35.943 Y-15.667 Z8 Command meanings: (Semi colons separate command sets) G38.2 Z-25 F100 G38.2 is a probe command which means, seek until the probe circuit is closed (Arduino ground to pin A5). Z-25 means drop the Z axis down a maximum of 25mm (metric in this case). Of course, this travel should be interrupted by probe contacting the plate surface. F100 is the probe travel speed. You may want to slow yours down, but 100 works fine. G91 G0 Z3 G91 G0 Is a rapid move, the Z axis 3mm up or positive direction. G91 G0 X-50 Then rapid move 50mm left, or negative X direction. G91 G0 Z-8.2 And drop Z down 8.2mm in preparation for X probing. G38.2 X25 F100 Now probe for X side of the calibration plate. G91 G0 X-3 Pull bit away from the cal plate 3mm. G91 G0 Z8.2 Raise bit up 8.2mm before moving to the front of the plateG91 G0 Y-50 Move toward front of the plate 50mm. G91 G0 X50 Move right, in the X positive direction, 50mm. G91 G0 Z-8.2 Drop the bit back down 8.2mm in preparation for Y probing. G38.2 Y25 F100 Probe Y axis. G91 G0 Y-3 Pull forward off work, 3mm G91 G0 Z8.2 Raise bit 8.2mm. G10 P0 L20 X? Y? Z? Store probe offset's in co-ordinates system (Use offset calculator)
G91 F800 G01 Z-30
G91 F800 G01 Z-42
G91 F800 G01 Z+30
G91 F800 G01 X100 Y100
Commands mit UniversalGCodeSender:
$H G91 F800 G01 X20 Y10 Z-42 G90 F800 G92 X0 Y0 Z0
Grbl 1.1h ['$' for help] [MSG:'$H'|'$X' to unlock]
#define HOMING_CYCLE_0 ((1<<Z_AXIS)) #define HOMING_CYCLE_1 ((1<<X_AXIS)|(1<<Y_AXIS)) #define N_HOMING_LOCATE_CYCLE 2 // Integer (1-128) #define FORCE_INITIALIZATION_ALARM #define CHECK_LIMITS_AT_INIT #define VARIABLE_SPINDLE //
G91 F800
G01 Z+10.0
G01 Z-10.0
G01 X+10.0 Y+10.0
G01 X-10.0 Y-10.0
wichtige Links für Grbl-Handhabung(Install, Commands, LimitSwitches…):
Install:
Commands:
LimitSwitches:
Software: