after setting up using the instructions for klipper when i type t0 or t1 the servo always moves tot he same hotend. using install arm will send it to 90 degrees but it is not moving to 10 degrees when i say t0. any one have a fix for this
top of page
To see this working, head to your live site.
t0 t1 command always switching to the left hotend (klipper)
t0 t1 command always switching to the left hotend (klipper)
10 answers0 replies
Like
Comments (10)
I'm having the same problem with my DSH servo.
Note: In MainSail v2.4.1, the "variables fix" does not work.
I received errors with this;
# filename: ~/klipper_config/variables.cfg
I had to change it to this;
filename: variables.cfg
Clicking "Extruders" T0 or T1 or "Macros" T0 or T1 always moves the servo to T0.
Setting the angle via "Arm Install" or "Arm Position" with manual angle moves the servo correctly.
Here's my Macros.cfg (for the servo only)
[gcode_macro ARM_INSTALL] gcode: SET_PIN PIN=servo_power VALUE=1 # Power on servo via relay switch SET_SERVO SERVO=extruder ANGLE=90 # Set servo position to 90 degrees [gcode_macro SERVO_OFF] gcode: SET_PIN PIN=servo_power VALUE=0 # Power down servo via relay switch [gcode_macro ARM_POSITION] gcode: SET_PIN PIN=servo_power VALUE=1 # Power on servo via relay switch {% set serv_angle=params.A|default(0)|float %} SET_SERVO SERVO=extruder ANGLE={ serv_angle } # Move servo arm G4 P1500 # Allow time to make move SET_PIN PIN=servo_power VALUE=0 # Power down servo via relay switch [gcode_macro T0] gcode: {% set svv = printer.save_variables.variables %} # Set svv to point to variable.cfg ARM_POSITION A={svv.left_ang} # Switch to T0 {% if "xyz" in printer.toolhead.homed_axes %} SET_GCODE_OFFSET X=0 SET_GCODE_OFFSET Y=0 {% endif %} ACTIVATE_EXTRUDER EXTRUDER=extruder G4 P2500 [gcode_macro T1] gcode: {% set svv = printer.save_variables.variables %} # Set svv to point to variable.cfg ARM_POSITION A={svv.right_ang} # Switch to T1 {% if "xyz" in printer.toolhead.homed_axes %} SET_GCODE_OFFSET X={svv.x_off} # Account for different X offset SET_GCODE_OFFSET Y={svv.y_off} # Account for different X offset {% endif %} ACTIVATE_EXTRUDER EXTRUDER=extruder1 G4 P2500
what slicer are you using?
I've run into this same issue. For now I've manually changed the macros to have the angles themselves rather than pointing to the variables file, although I'm curious what might be causing the problem.
unfortunately that didn't work as i already figured out to add the save file line to the cofig. i do get movement from the servo but only to center and to one side and i will get extruder already active repone when i use t0
Apologies, the build manual needed an additional step, please see below:
https://makertech-3d.dozuki.com/Guide/Stage+05:+Firmware+(Klipper)/115#s1321