Hello friends,
I made the Euclid recording with Brush myself and wrote the code.
Since I have only been working with configuration G-code for a few days, it does not work properly yet.
When I trigger Brush Out Macro it goes out and with Brush in it goes in.
When I press Probe load, the X & Y axis should be homed first, then the arm is extended and the Euclid is picked up.
After picking up, the arm should be retracted again.
With Probe Stow, I wanted the arm to extend, the Euclid to be brought into the park position, the separation to take place and then the arm to be retracted again.
Can you help me with the macro?
#Euclid with brush Macro Configuration
5 messages · Page 1 of 1 (latest)
##############################################-EUCLID-#########################################
#Servo Motor.
[servo NozzleBrush]
pin: PE9 #Servo Connection on Manta M8P V2
initial_angle: 0
maximum_servo_angle = 180
minimum_pulse_width = 0.0005
maximum_pulse_width = 0.0024 #0.0024
[gcode_macro BRUSH_OUT] #Debug Deploy Arm
gcode:
SET_SERVO SERVO=NozzleBrush ANGLE=115
[gcode_macro BRUSH_IN] #Debug Retract Arm
gcode:
SET_SERVO SERVO=NozzleBrush ANGLE=-0
SET_SERVO SERVO=NozzleBrush WIDTH=-110
[gcode_macro CLEAN_NOZZLE]
gcode:
SAVE_GCODE_STATE
G28 X0 Y0 Z0
G90
G1 X220 Y440 Z25 F5000
BRUSH_OUT ;set brush servo to up position
G1 Y450 F3600 ;toolhead moves back and fourth across the brush
G1 Y410 F5000 ;speed increase
G1 X220 F5000
G1 Y450 F5000
G1 Y410 F5000 ;speed decrease
G1 X240 F3600
G1 Y440 F3600
BRUSH_IN ;set brush servo to down position
RESTORE_GCODE_STATE MOVE=1 MOVE_SPEED=5000 ;return to starting position
[gcode_macro PROBE_LOAD]
gcode:
SAVE_GCODE_STATE NAME=PROBELOAD
G28 X0 Y0 Z0
G90
G1 X240 Y450 Z25 F5000 ; Position to side of magnets
BRUSH_OUT ;set brush servo to up position
G1 X240 Y500 Z25 F5000 ; Grab magnets
G1 X280 Y500 Z25 F600
BRUSH_IN
RESTORE_GCODE_STATE NAME=PROBE_LOAD MOVE=1 MOVE_SPEED=5000 ;return to starting position
[gcode_macro PROBE_STOW]
gcode:
SAVE_GCODE_STATE NAME=PROBESTORE
G90
G1 X240 Y450 Z25 F5000 ; Ready to reinsert
BRUSH_OUT
G1 X240 Y500 Z25 F500 ; Move back in
G1 X280 Y500 Z25 F500 ; Pull away to side
G1 X250 Y250 Z25 F5000 ; Circle to front
#G1 X55 Y70 Z25 F5000
#G1 X55 Y95 Z25 F500 ; Slow forward to push in
#G1 X85 Y95 Z25 F700 ; Move to side to get away
BRUSH_IN
RESTORE_GCODE_STATE NAME=PROBESTORE MOVE=1 MOVE_SPEED=5000 ;return to starting position
##########################################################-EUCLID- END-#######################################################