Config Reference
[foci <stepper>]
Section titled “[foci <stepper>]”Turns on the TMC4671 driver for one stepper channel. The section name
must match an existing Klipper stepper section, for example
[foci stepper_x] pairs with [stepper_x]. See
Configuration.
[foci stepper_x]run_current:# Run current in amps. Must be provided. Must not exceed the board's# limit (10 A on the Ouroboros, 20 A on the OpenFFBoard); a higher# value is a config error at startup.encoder_ppr:# Encoder pulses per revolution. Must be provided.#voltage_limit: 16000# Raw TMC4671 voltage-limit register value, 0 to 32767. Caps the# voltage the driver can apply to the motor. The default of 16000 is# about 49% of the full scale. While the motor is idle the firmware# holds the limit at a safe-state value of 1024 (3.1%), so DUMP_FOCI# shows 1024 at rest.#encoder_direction: default# Set to `reversed` if FOCI_SELFTEST reports "encoder_direction# looks inverted".#homing_current:# Reduced current in amps used while homing. Optional with a# physical endstop, where omitting it homes at run_current. Required# for sensorless homing. Must be above 0 and at least 0.05 below# run_current. Since homing_current must be below run_current, the# board's run current limit bounds it too; a run_current above the# board limit stops Klipper at startup.#stall_ceiling_mm: 1.0# Sensorless-homing stall detection. A fixed following-error limit# in mm. Crossing it always counts as a stall, from the first moment# of the move.#stall_margin_mm: 0.15# How far above the axis's own normal following error, in mm, counts# as a stall once the move is underway. Must be less than# stall_ceiling_mm.#stall_persistence: 3# How many times in a row the error has to stay past either# threshold before it's called a stall and motion stops.#pid_torque_p:#pid_torque_i:#pid_flux_p:#pid_flux_i:# Inner current-loop gains, 0 to 32767 each. Written automatically# by FOCI_SETUP. Set all four together if overriding manually.#pid_position_p:#pid_position_i:#pid_velocity_p:#pid_velocity_i:#pid_velocity_limit:# Outer position/velocity loop gains, 0 to 32767 each# (pid_velocity_limit up to 2147483647). Written by FOCI_SETUP, and# a commissioned axis runs on these values. The foci-tune result# block holds the four gains (not pid_velocity_limit); pasting it over# them takes effect after a restart. Re-running# FOCI_SETUP replaces them with its own. Set all four gains together# if overriding manually.#commissioning_status:# Written by FOCI_SETUP as `commissioned`. FOCI runs the axis on its# pid_* values only when this is `commissioned` and every pid_* and# identified_* value FOCI_SETUP writes is present. If the status is# missing, unknown, or a field is missing, FOCI logs a warning and# the motor cannot be enabled until FOCI_SETUP runs.#commissioning_profile:# The FOCI_SETUP profile that produced the stored values# (`conservative`, `balanced` or `stiff`). Written by FOCI_SETUP.#torque_filter_hz:#flux_filter_hz:#velocity_filter_hz:#position_filter_hz:# Current-loop input filter cutoffs, in Hz. Omitted or 0 disables# each filter. torque_filter_hz/flux_filter_hz accept 10-10000,# velocity_filter_hz/position_filter_hz accept 10-1000.#velocity_feedforward: False#velocity_feedforward_gain: 1.0# Feed-forward correction for position-loop cruise lag, gain 0.0 to# 8.0.[foci]
Section titled “[foci]”Optional, workspace-wide settings shared by every [foci <stepper>]
section. Omit this section entirely if you don’t need it.
[foci]#debug: False# Writes extra detail to klippy.log, never to the console. FOCI_SETUP,# FOCI_SELFTEST and homing each add detail lines, including the error# name behind a failure and safety-fault details. Restart Klipper# after changing it.