Euclid facility
-
@r4ffers I understand but it's hard for me I'm a novice so there are a lot of things that I have trouble understanding. Thanks for line 558.
-
@sgk have a look in duet docs at M558 and G31 so you know what each element does. Also look at the Euclid link I posted earlier which will take you through the commissioning side of it. Pretty sure there's macro examples for deploy and retract posted there too.
-
@r4ffers Yes thank you indeed I have already configured everything on config bed home z but when I launch home The bed does not go up and the probe does not stop the bed going up.
-
bed
M561 ; clear any bed transform
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G90 ; absolute positioning
G28 ; home all
G30 P0 X10 Y175 Z-99999 ; probe near a leadscrew, half way along Y axis
G30 P1 X330 Y175 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
G29 S0 ; probe the bed and enable compensation
M291 P"Leveling finished !" R"Probing.." S1 T2; ***********************************************************
; Euclid Probe Independant Screw Leveling Macro
; RRF3.X Firmware Example
; saveas system/bed4point.g
; could save it as conventional bed.g but for illustration purposes
; the name is purposefully altered
; comments and echo statements throughout are provided for convenience
; ***********************************************************
; probe is -16.4 in X -29.4 in Y bed is 290 in X 325 in Y
; locations of probe points are at
; (18, 285) (270,285)
;
; (18,65) (270,65)
;
; adjust coords so that probe hits symmetric points on the bed and avoids dock
;
; echo "Running bed4point.g"
M558 F60 A3 ; fix probe speed to 1mm/s
G90
G4 P250G30 P0 X18.0 Y65.0 F9000.0 Z-99999 ; probe front left PEI
G30 P1 X18.0 Y285.0 F9000.0 Z-99999 ; probe back left PEI
G30 P2 X270.0 Y285.0 F9000.0 Z-99999 ; probe back right PEI
G30 P3 X270.0 Y65.0 F9000.0 Z-99999 S3 ; probe near front right leadscrew and calibrate 3 motors PEI
; echo "bed4point.g complete"
-
config
M208 X-3.50 Y0 Z0 S1 ; Set axis minima
M208 X330 Y320 Z350 S0 ; Set axis maxima; ================ Endstops =======================
M574 X1 S1 P"io0.in" ; configure active-high endstop for low end on X via pin io0.in
M574 Y2 S1 P"io1.in" ; configure active-high endstop for low end on Y via pin io1.in
M574 Z1 S2 ; configure Z-probe endstop for low end on Z; ================ Z-Probe ========================
;M558 P8 C"io2.in" A5 H5 F120 T15000 ; set Z probe type to unmodulated and the dive height + speeds (for Mini IR sensor M558 P8 C"io2.in" A2 H5 F120 T15000)
M558 K0 P5 C"io8.in" H8 F300 T9000 A3 S0.01
; K0 for probe 0, P5 for NC switch, C for input pin,
; ^ for enabling the native pullup resistor on Duet 2
; hardware running RRF3
; H dive height of 8mm, F300 probing speed 6mm/sec,
; T9000 travel speed 150mm/sec,
; A3 number of probes 1, S0.01 max tolerance of 0.01
;G31 P50 X-1 Y-20 Z1.444 ; Set Z probe trigger value, offset and trigger height
G31 K0 P500 X-27.955 Y-18.716 Z1.033 ; CHECK for LOOSE things first! set Z probe trigger
; value, offset and trigger height. Higher numbers
; makes nozzle closer to bed
; switch plunger is 16.4mm to the LEFT and 29.27mm in
; FRONT of the nozzle. Switch triggers 0.9mm BELOW nozzle
; https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe#Secti
M556 S50 X0 Y0 Z0 ; set orthogonal axis compensation parametersM557 X20:270 Y20:270 P3 ; Define mesh grid
-
deploy
; ***********************************************************
; Euclid Probe Fixed Dock M401 Deploy Probe Macro
; RRF3.X Firmware Example
; saveas system/deployprobe.g
; comments and echo statements throughout are provided for convenience
; ***********************************************************
; __________________________________________________________________________
; | |
; | |
; | |
; | |
; | |
; | |
; | |
; | |
; | |
; | |
; | * Probe Ready Position |
; | X150 Y150 |
; | |
; | |
; | * Dock staging position |
; | X0 Y70 |
; | |
; | |
; | * Dock Exit Position |
; | X0 Y40 |
; | |
; | |
; | |
; | |
; | |
; | X0 Y0 X30 Y0 X100 Y0 |
; | * Dock * Dock Side * Dock Preflight |
; |________________________________________________________________________|
;
; Above is example 300x300 bed to coorelate with macros and movements below.
; This example is for a fixed dock, fixed gantry/carraige and moving bed motion system.
; RailCore, Ender5, V-Core3, etc...
; coordinates are re-written below above the macrosecho "Running deployprobe.g"
if !move.axes[0].homed || !move.axes[1].homed ; If the printer hasn't been homed, home it
M98 P"0:/sys/homexy.g"; uncomment next line to echo the probe deploy state
; echo "Object Model Deployuser token =" ^sensors.probes[0].deployedByUserM564 H1 S0 ; Allow movement BEYOND axes boundaries (for Y to reach probe dock)
G91 ; relative positioning
echo "Lift Z in advance of deploy"
G0 H2 Z15 F3000 ; move Z 15 for clearance above dock.
; ; need to figure out some safety check on this
G90 ; absolute positioning; uncomment next line to echo the probe value
; echo "Probe Value =" ^sensors.probes[0].value[0]if sensors.probes[0].value[0]!=1000 ; if sensor is value other than 1000 do this
; uncomment next line to echo the probe deploy state
; echo "deployuser token = " ^sensors.probes[0].deployedByUser
; echo "Probe State = " ^sensors.probes[0].value[0]
abort "deployprobe start value Probe already picked up. Manually return probe to the dock"; if we're here we know it's becasue the above is true which I assume is because you have an NC switch as a probe.
; echo "Passed first logic test to deploy probe";Preflight position is X100 Y8.5
;Dock Side position is at X30 Y8.5
;Docked probe postion is at X0 Y8.5
;Dock exit point is at X0 Y40
;Dock Re-Entry Staging Position is at X0 Y70
;Probe Ready Position X150 Y150; echo "Probe Pickup macro running"
G0 X100 Y8.5 F6000 ; move to Preflight Position
M400 ; wait for moves to finishG0 X30 Y8.5 F6000 ; move to Dock Side dock location
M400 ; wait for moves to finish; uncomment next line to echo the probe deplot state
; echo "Object Model Deployuser token (before while loop) = " ^sensors.probes[0].deployedByUserG0 X0 Y8.5 F3000 ; move over Dock
G4 P500 ; pause 0.5 seconds
M400 ; wait for moves to finish; uncomment next line to echo the probe value
; echo "Probe Value =" ^sensors.probes[0].value[0]G0 X0 Y40 F300 ; slide probe out of dock - slowly
G0 X170 Y170 F3000 ; move to re-entry position
M400 ; wait for moves to finishecho "Probe Pickup complete"
; uncomment to echo the probe deploy state
; echo "Object Model Deployuser token (after while loop) = " ^sensors.probes[0].deployedByUserG90 ; absolute positioning
G0 X170 Y170 G3000 ; move to the center of the bed
M400 ; wait for moves to finishif sensors.probes[0].value[0]!=0
; uncomment to echo the probe deploy state
echo "Object Model Deployuser token (in abort if section)= " ^sensors.probes[0].deployedByUser
abort "Deployprobe endvalue not 0 Probe not picked up! Deployt cancelled."M564 H1 S1 ; Restrict movement to within axes boundaries (for normal Y movement)
echo "Macro deployprobe.g complete"
-
retract
; ***********************************************************
; Euclid Probe Fixed Dock Retract Probe Macro M402
; RRF3.x Firmware Example
; saveas system/retractprobe.g
; comments and echo statements throughout are provided for convenience
; ***********************************************************
; __________________________________________________________________________
; | |
; | |
; | |
; | |
; | |
; | |
; | |
; | |
; | |
; | |
; | * Probe Ready Position |
; | X150 Y150 |
; | |
; | |
; | * Dock Re-entry staging position |
; | X0 Y70 |
; | |
; | |
; | * Dock Exit Position |
; | X0 Y40 |
; | |
; | |
; | |
; | |
; | |
; | X0 Y0 X30 Y0 X100 Y0 |
; | * Dock * Dock Side * Dock Preflight |
; |________________________________________________________________________|
;
; Above is example 300x300 bed to coorelate with macros and movements below.
; This example is for a fixed dock, fixed gantry/carraige and moving bed motion system.
; RailCore, Ender5, V-Core3, etc...
; coordinates are re-written below above the macrosecho "running retractprobe.g macro"
; uncomment next line to echo the probe deploy state
; echo "Object Model Deployuser token =" ^sensors.probes[0].deployedByUser; Preflight position is X100 Y0
; Dock Side position is at X30 Y0
; Docked probe postion is at X0 Y0
; Dock exit point is at X65 Y0
; Dock Re-Entry Staging Position is at X0 Y70
; Probe Ready Position X150 Y150G90 ; absolute positioning
M564 S0 ; allow beyond limit axis to print area
if sensors.probes[0].value[0]!= 0
echo "Probe Value =" ^sensors.probes[0].value[0]
echo "Object Model Deployuser token =" ^sensors.probes[0].deployedByUser
abort "retractprobe: Probe not currently picked up!"; echo "pass first logic loop"
; uncomment next line to echo the probe value and probe deploy state
; echo "Probe Value =" ^sensors.probes[0].value[0]
; echo "Object Model Deployuser token =" ^sensors.probes[0].deployedByUserG0 X0 Y70 F3000 ; move to ready position
M400 ; wait for moves to finishG0 X0 Y30 F3000 ; move to the entry position for the dock
M400 ; wait for moves to finishG0 X0 Y8.5 F300 ; move into the dock position
M400 ; wait for moves to finish
G4 P250 ; pause 250 usecsG0 X30 Y8.5 F6000 ; move to the side adjacent to the dock swiping the probe off
G0 X100 Y8.5 F3000 ; move to the side adjacent to the dock swiping the probe off
M400 ; wait for moves to finish; uncomment next line to echo the probe value and probe deploy state
; echo "Probe Value =" ^sensors.probes[0].value[0]
; echo "Object Model Deployuser token =" ^sensors.probes[0].deployedByUserG0 X170.0 Y170.0 F6000 ; move to the center of the bed
M400 ; wait for moves to finishM564 S1 ; limit axis to print area
; echo "complete movement commands"
if sensors.probes[0].value[0]!= 1000
; echo "Probe Value =" ^sensors.probes[0].value[0]
; echo "Object Model Deployuser token =" ^sensors.probes[0].deployedByUser
abort "retractprobe.g Probe not correctly dropped off in dock!"M564 H1 S1 ; Restrict movement to within axes boundaries (for normal Y movement)
echo "Macro retractprobe.g complete"
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-
homez
G91 ; relative positioning
G1 H2 Z5 F6000 S2 ; lift Z relative to current position
G90 ; absolute positioning
G1 X152 Y166.4 F6000 ; go to first probe point
G30 ; home Z by probing the bed; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z5 F100 ; lift Z relative to current position
;G90 ; absolute positioning; ***********************************************************
; Euclid Probe homez.g Example Macro
; RRF3.X Firmware Example
; saveas system/homez.g
; comments and echo statements throughout are provided for convenience
; ***********************************************************if !move.axes[0].homed || !move.axes[1].homed ; If the printer hasn't been homed, home it
M98 P"0:/sys/homexy.g"
M561 ; clear any bed transform
M290 S0 R0 ; clear baby steps
G91 ; relative positioning
G1 H2 Z6 F6000 ; lift Z relative to current position to clear any obstructions
M400
G90 ; absolute positioning
; echo "Call deployprobe.g macro"
M401 P0 ; This runs macro file deployprobe
; echo "Return"
G1 X145 Y162.5 F9000 ; go to center of bed in advance of probe that point
M400
; echo "G30 Command"
G30 ; Probe the bed at the current XY position. When the probe is triggered,
; adjust the Z offset of the current tool to make the current position Z=0.
G1 Z10 ; raise Z=10
M400
G4 P500
; echo "Call bed4point.g macro"
M98 P"0:/sys/bed4point.g" ; tram bed
; echo "Return"
G1 X145 Y162.5 F9000 ; go back to the first probe point and reprobe 0 in case it moved
G30
; echo "Call retractprobe.g macro"
M402 P0 ; retract probe
; echo "Return"
G1 Z10 F600 ; lift Z relative to current position
G90 ; absolute positioning
M564 S1 H0 ; reset the bounding limits
; G1 X150 Y0 F9000 ; move carraige to center front -
homeall
G91 ; relative positioning
G1 H2 Z5 F6000 S2 ; lift Z relative to current position
G1 H1 X-355 Y355 F6000 ; move quickly to X or Y endstop and stop there (first pass)
G1 H1 X-355 ; home X axis
G1 H1 Y355 ; home Y axis
G1 X5 Y-5 F6000 ; go back a few mm
G1 H1 X-355 F400 ; move slowly to X axis endstop once more (second pass)
G1 H1 Y355 ; then move slowly to Y axis endstop
G90 ; absolute positioning
G1 X170 Y180 F6000 ; go to first probe point X11.5 Y65.8 Z0 The coordinate put the Z sensor in the center of the bed.
G30 ; Probe; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z5 F100 ; lift Z relative to current position
;G90 ; absolute positioning -
m401
-
Firstly I would make sure the probe works correctly.
Get the EndStops Monitor plugin from Here
Click the 'Plugins' button on left toolbar
Then click
Select the file you just downloaded, and install it.When it is installed, you need to enable it by clicking the green 'Start' button
Press 'F5' on your keyboard to refresh the printers webpage.
go here
Click the 'Endstops' tab and it will display the status of your endstops
With the Euclid NOT connected it should say 'Yes' under triggered
With the Euclid connected and the switch NOT activated your screen should look like this.
Also note the 'Z-Probe' field in the 'Status' box at the top of the screen
When the Euclid is connected and the switch is NOT depressed it should read 0
When Euclid not connected it should read 1000 and be high lighted in RED
If this is not the case, add a '^' to this line, like mine.
M558 K0 P8 C"^io0.in" H8 F300 60 T9000 A3 S0.01
Let us know how you get on.
Regards,
Paul. -
@paulhew
no it did not work when the bed goes up and it coughs the probe sensor the bed does not stop -
-
-
but i get this error when i do home
10/09/2022 10:07:04 G28
Error: Probe already triggered at start of probing move
Error: Probe already triggered at start of probing move -
@sgk why are you using 2 io's?
Please post your config.g, not just bits of it.
Also a picture like below, WITHOUT the Euclid connected.
P. -
@paulhew
; ================ Drives mapping =================M569 P1 S0 ; physical drive 0.1 goes forwards - X driver
M569 P2 S0 ; physical drive 0.2 goes forwards - Y driver
M569 P3 S1 ; physical drive 0.3 goes forwards - Z1 Right driver
M569 P4 S0 ; physical drive 0.4 goes forwards - Z2 Left driver
M569 P0 S1 ; physical drive 0.0 goes forwards - extruder driverM584 X1 Y2 Z4:3 E0 ; set drive mapping
; ================ Drives settings ================
M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
M92 X200.00 Y200.00 Z800.00 E693.55 ; set steps per mm - for Matrix extruder:E324.214M566 X500 Y500 Z800 E600 ; Set maximum instantaneous speed changes (Jerk) (mm/min)
M203 X20000 Y20000 Z600 E3600 ; Set maximum speeds (mm/min)M201 X1000 Y1000 Z100 E600 ; Set accelerations (mm/s^2)
M906 X1350 Y1350 Z1200 E700 I10 ; Set motor currents (mA) and motor idle factor in per cent
M84 S60 ; Set idle timeout; ================ Independent Z leveling (original 2 z-axis) =================
M671 X-45.0:364.0 Y165.0:165.0 S5.0 ;bed compensation
; ================ Axis Limits ====================
M208 X-3.50 Y0 Z0 S1 ; Set axis minima
M208 X330 Y320 Z350 S0 ; Set axis maxima; ================ Endstops =======================
M574 X1 S1 P"io0.in" ; configure active-high endstop for low end on X via pin io0.in
M574 Y2 S1 P"io1.in" ; configure active-high endstop for low end on Y via pin io1.in
M574 Z1 S2 ; configure Z-probe endstop for low end on Z; ================ Z-Probe ========================
;M558 P8 C"io2.in" A5 H5 F120 T15000 ; set Z probe type to unmodulated and the dive height + speeds (for Mini IR sensor M558 P8 C"io2.in" A2 H5 F120 T15000)
;M558 K0 P5 C"io8.in" H8 F300 60 T9000 A3 S0.01
M558 K0 P5 C"^io2.in" H8 F300 60 T9000 A3 S0.01 ;
;M558 K0 P5 C"^io2.in" H8 F300 T9000 A3 S0.01 ; K0 for probe 0, P5 for NC switch, C for input pin,;G31 P50 X-1 Y-20 Z1.444 ; Set Z probe trigger value, offset and trigger height
G31 K0 P500 X-27.955 Y-18.716 Z1.033 ; CHECK for LOOSE things first! set Z probe triggerM556 S50 X0 Y0 Z0 ; set orthogonal axis compensation parameters
M557 X20:270 Y20:270 P3 ; Define mesh grid
; ================ Heaters ==============================================
M308 S0 P"temp0" Y"thermistor" A"Bed" T100000 B3950 ; configure sensor 0 as thermistor on pin temp0
M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0 (if NOT using SSR - delete Q10)
M307 H0 R0.312 K0.313:0.000 D13.50 E1.35 S1.00 B0 ; disable bang-bang mode for the bed heater and set PWM limit
M140 H0 ; map heated bed to heater 0
M143 H0 S100 ; set temperature limit for heater 0 to 100CM308 S1 P"temp1" Y"thermistor" A"Hotend" T107537 B4725 C7.06e-8 ; configure sensor 1 as thermistor on pin temp1
M950 H1 C"out2" T1 ; create nozzle heater output on out1 and map it to sensor 1
M307 H1 R2.451 K0.445:0.102 D5.36 E1.35 S1.00 B0 V24.1 ; disable bang-bang mode for heater and set PWM limit
M143 H1 S280 ; set temperature limit for heater 1 to 280C; ================ Fans & Lights ==================
M950 F0 C"out7" Q500 ; create fan 0 on pin out7 and set its frequency
M106 P0 S0 H1 T35 ; set fan 0 value. Thermostatic control is turned on
M950 F1 C"out8" Q500 ; create fan 1 on pin out8 and set its frequency
M106 P1 S0 H-1 C"Layers Fan" ; set fan 1 value. Thermostatic control is turned off
M950 F2 C"out9" Q500 ; create fan 2 on pin out9 and set its frequency (lights)
M106 P2 S0.2 H-1 C"Lights" ; set fan 2 value. Thermostatic control is turned off (lights); ================ Tools ==========================
M563 P0 D0 H1 F1 ; define tool 0
G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C; ===================== Custom settings ====================
M572 D0 S0.05 ;pressure advance Set bowden extruder elasticity compensation for E0
M207 S1.5 F3600 Z0.01 ; Set firmware retraction parameters
M564 H0 ; Let the Jog buttons work blv: added to allow jog buttons
; ================ Miscellaneous ==================
;M575 P1 S1 B57600 ; enable support for PanelDue
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss -
when you MANUALLY connect the probe to its dock, does Z-Probe in the dashboard change from a Red 1000 to 0?
-
@paulhew YES
-
now it works but when I launch home I have this error and the probe does not feel the bed I would like to make a video but in this forum I cannot put a video