Status reference¶
Questo documento è un riferimento alle informazioni sullo stato della stampante disponibili in Klipper macro, display fields e tramite API Server.
I campi in questo documento sono soggetti a modifiche: se si utilizza un attributo, assicurarsi di rivedere il documento Modifiche alla configurazione durante l'aggiornamento del software Klipper.
angle¶
The following information is available in angle some_name objects:
temperature: The last temperature reading (in Celsius) from a tle5012b magnetic hall sensor. This value is only available if the angle sensor is a tle5012b chip and if measurements are in progress (otherwise it reportsNone).
bed_mesh¶
Le seguenti informazioni sono disponibili in bed_mesh:
profile_name,mesh_min,mesh_max,probed_matrix,mesh_matrix: informazioni sulla bed_mesh attualmente attiva.profiles: The set of currently defined profiles as setup using BED_MESH_PROFILE.
bed_screws¶
The following information is available in the Config_Reference.md#bed_screws object:
is_active: Returns True if the bed screws adjustment tool is currently active.state: The bed screws adjustment tool state. It is one of the following strings: "adjust", "fine".current_screw: The index for the current screw being adjusted.accepted_screws: The number of accepted screws.
configfile¶
Le seguenti informazioni sono disponibili nell'oggetto configfile (questo oggetto è sempre disponibile):
settings.<section>.<option>: Restituisce l'impostazione del file di configurazione data (o il valore predefinito) durante l'ultimo avvio o riavvio del software. (Qualsiasi impostazione modificata in fase di esecuzione non si rifletterà qui.)config.<section>.<option>: Restituisce l'impostazione del file di configurazione non elaborato come letta da Klipper durante l'ultimo avvio o riavvio del software. (Qualsiasi impostazione modificata in fase di esecuzione non si rifletterà qui.) Tutti i valori vengono restituiti come stringhe.save_config_pending: Returns true if there are updates that aSAVE_CONFIGcommand may persist to disk.save_config_pending_items: Contains the sections and options that were changed and would be persisted by aSAVE_CONFIG.warnings: A list of warnings about config options. Each entry in the list will be a dictionary containing atypeandmessagefield (both strings). Additional fields may be available depending on the type of warning.
display_status¶
Le seguenti informazioni sono disponibili nell'oggetto display_status (questo oggetto è automaticamente disponibile se è definita una sezione di configurazione display):
progress: il valore di avanzamento dell'ultimo comando G-CodeM73(ovirtual_sdcard.progressse non è stato ricevuto alcunM73recente).message: il messaggio contenuto nell'ultimo comando G-CodeM117.
endstop_phase¶
Le seguenti informazioni sono disponibili nell'oggetto endstop_phase:
last_home.<nome stepper>.phase: La fase del motore passo-passo al termine dell'ultimo tentativo di home.last_home.<stepper name>.phases: il numero totale di fasi disponibili sul motore passo-passo.last_home.<stepper name>.mcu_position: la posizione (tracciata dal microcontrollore) del motore passo-passo alla fine dell'ultimo tentativo di home. La posizione è il numero totale di passi effettuati in avanti meno il numero totale di passi effettuati in senso inverso dall'ultimo riavvio del microcontrollore.
exclude_object¶
The following information is available in the exclude_object object:
objects: An array of the known objects as provided by theEXCLUDE_OBJECT_DEFINEcommand. This is the same information provided by theEXCLUDE_OBJECT VERBOSE=1command. Thecenterandpolygonfields will only be present if provided in the originalEXCLUDE_OBJECT_DEFINEHere is a JSON sample:
[
{
"polygon": [
[ 156.25, 146.2511675 ],
[ 156.25, 153.7488325 ],
[ 163.75, 153.7488325 ],
[ 163.75, 146.2511675 ]
],
"name": "CYLINDER_2_STL_ID_2_COPY_0",
"center": [ 160, 150 ]
},
{
"polygon": [
[ 146.25, 146.2511675 ],
[ 146.25, 153.7488325 ],
[ 153.75, 153.7488325 ],
[ 153.75, 146.2511675 ]
],
"name": "CYLINDER_2_STL_ID_1_COPY_0",
"center": [ 150, 150 ]
}
]
excluded_objects: An array of strings listing the names of excluded objects.current_object: The name of the object currently being printed.
fan¶
Le seguenti informazioni sono disponibili negli oggetti fan, heater_fan some_name e controller_fan some_name:
speed: La velocità della ventola come float tra 0.0 e 1.0.rpm: la velocità della ventola misurata in rotazioni al minuto se la ventola ha un pin tachimetro definito.
filament_switch_sensor¶
Le seguenti informazioni sono disponibili negli oggetti filament_switch_sensor some_name:
enabled: Restituisce True se il sensore interruttore è attualmente abilitato.filament_detected: restituisce True se il sensore è in uno stato attivato.
filament_motion_sensor¶
Le seguenti informazioni sono disponibili negli oggetti filament_motion_sensor some_name:
abilitato: Restituisce True se il sensore di movimento è attualmente abilitato.filament_detected: restituisce True se il sensore è in uno stato attivato.
firmware_retraction¶
Le seguenti informazioni sono disponibili nell'oggetto firmware_retraction:
retract_length,retract_speed,unretract_extra_length,unretract_speed: le impostazioni correnti per il modulo firmware_retraction. Queste impostazioni possono differire dal file di configurazione se un comandoSET_RETRACTIONle altera.
gcode_macro¶
Le seguenti informazioni sono disponibili negli oggetti gcode_macro some_name:
<variabile>: il valore corrente di una variabile gcode_macro.
gcode_move¶
Le seguenti informazioni sono disponibili nell'oggetto gcode_move (questo oggetto è sempre disponibile):
gcode_position: la posizione corrente della testa di stampa rispetto all'origine del Gcode corrente. Cioè, posizioni che si potrebbero inviare direttamente a un comandoG1. È possibile accedere ai componenti x, y, z ed e di questa posizione (ad esempio,gcode_position.x).position: l'ultima posizione comandata della testina utilizzando il sistema di coordinate specificato nel file di configurazione. È possibile accedere alle componenti x, y, z ed e di questa posizione (ad esempio,position.x).homing_origin: l'origine del sistema di coordinate gcode (relativo al sistema di coordinate specificato nel file di configurazione) da utilizzare dopo un comandoG28. Il comandoSET_GCODE_OFFSETpuò alterare questa posizione. È possibile accedere ai componenti x, y e z di questa posizione (ad esempio,homing_origin.x).speed: l'ultima velocità impostata in un comandoG1(in mm/s).speed_factor: La"speed factor override" come impostato da un comandoM220. Questo è un valore in virgola mobile tale che 1,0 significa nessun override e, ad esempio, 2,0 raddoppierebbe la velocità richiesta.extrude_factor: L'"extrude factor override" come impostato da un comandoM221. Questo è un valore in virgola mobile tale che 1,0 significa nessun override ad esempio 2,0 raddoppierebbe le estrusioni richieste.absolute_coordinates: restituisce True se in modalità coordinate assoluteG90o False se in modalità relativaG91.absolute_extrude: restituisce True se in modalità di estrusione assolutaM82o False se in modalità relativaM83.
hall_filament_width_sensor¶
Le seguenti informazioni sono disponibili nell'oggetto hall_filament_width_sensor:
is_active: Restituisce True se il sensore è attualmente attivo.Diameter: The last reading from the sensor in mm.Raw: The last raw ADC reading from the sensor.
Riscaldatore¶
Le seguenti informazioni sono disponibili per oggetti riscaldatore come extruder, heater_bed e heater_generic:
temperature: l'ultima temperatura riportata (in gradi Celsius come float) per il dato riscaldatore.target: la temperatura target attuale (in gradi Celsius come float) per il riscaldatore dato.power: l'ultima impostazione del pin PWM (un valore compreso tra 0.0 e 1.0) associato al riscaldatore.can_extrude: Se l'estrusore può estrudere (definito damin_extrude_temp), disponibile solo per extruder
Riscaldatori¶
Le seguenti informazioni sono disponibili nell'oggetto heaters (questo oggetto è disponibile se è definito un riscaldatore):
disponibili_riscaldatori: restituisce un elenco di tutti i riscaldatori attualmente disponibili in base ai nomi completi delle sezioni di configurazione, ad es.["extruder", "heater_bed", "heater_generic my_custom_heater"].available_sensors: restituisce un elenco di tutti i riscaldatori attualmente disponibili in base ai nomi completi delle sezioni di configurazione, ad es.["extruder", "heater_bed", "heater_generic my_custom_heater"].
idle_timeout¶
Le seguenti informazioni sono disponibili nell'oggetto idle_timeout (questo oggetto è sempre disponibile):
state: lo stato corrente della stampante monitorato dal modulo idle_timeout. È una delle seguenti stringhe: "Idle", "Printing", "Ready".printing_time: la quantità di tempo (in secondi) in cui la stampante è rimasta nello stato "Printing" (come tracciato dal modulo idle_timeout).
led¶
The following information is available for each [led led_name], [neopixel led_name], [dotstar led_name], [pca9533 led_name], and [pca9632 led_name] config section defined in printer.cfg:
color_data: A list of color lists containing the RGBW values for a led in the chain. Each value is represented as a float from 0.0 to 1.0. Each color list contains 4 items (red, green, blue, white) even if the underyling LED supports fewer color channels. For example, the blue value (3rd item in color list) of the second neopixel in a chain could be accessed atprinter["neopixel <config_name>"].color_data[1][2].
manual_probe¶
The following information is available in the manual_probe object:
is_active: Returns True if a manual probing helper script is currently active.z_position: The current height of the nozzle (as the printer currently understands it).z_position_lower: Last probe attempt just lower than the current height.z_position_upper: ultimo tentativo di sonda appena maggiore dell'altezza corrente.
mcu¶
Le seguenti informazioni sono disponibili negli oggetti mcu e mcu some_name:
mcu_version: la versione del codice Klipper riportata dal microcontrollore.mcu_build_versions: informazioni sugli strumenti di compilazione utilizzati per generare il codice del microcontrollore (come riportato dal microcontrollore).mcu_constants.<constant_name>: Elenca le costanti di tempo riportate dal microcontrollore. Le costanti disponibili possono differire tra le architetture del microcontrollore e con ogni revisione del codice.last_stats.<statistics_name>: informazioni statistiche sulla connessione del microcontrollore.
motion_report¶
The following information is available in the motion_report object (this object is automatically available if any stepper config section is defined):
live_position: The requested toolhead position interpolated to the current time.live_velocity: The requested toolhead velocity (in mm/s) at the current time.live_extruder_velocity: The requested extruder velocity (in mm/s) at the current time.
output_pin¶
Le seguenti informazioni sono disponibili negli oggetti output_pin some_name:
value: Il "valore" del pin, come impostato da un comandoSET_PIN.
palette2¶
Le seguenti informazioni sono disponibili nell'oggetto palette2:
ping: Valore dell'ultimo ping di Palette 2 riportato in percentuale.remaining_load_length: Quando si avvia una stampa della Palette 2, questa sarà la quantità di filamento da caricare nell'estrusore.is_splicing: Vero quando la Palette 2 sta giuntando il filamento.
pause_resume¶
Le seguenti informazioni sono disponibili nell'oggetto pause_resume:
is_paused: Restituisce vero se un comando PAUSE è stato eseguito senza un corrispondente RESUME.
print_stats¶
Le seguenti informazioni sono disponibili nell'oggetto print_stats (questo oggetto è automaticamente disponibile se è definita una sezione di configurazione virtual_sdcard):
filename,total_duration,print_duration,filament_used,state,message: informazioni stimate sulla stampa corrente quando è attiva una stampa da virtual_sdcard.
probe¶
The following information is available in the probe object (this object is also available if a bltouch config section is defined):
last_query: Returns True if the probe was reported as "triggered" during the last QUERY_PROBE command. Note, if this is used in a macro, due to the order of template expansion, the QUERY_PROBE command must be run prior to the macro containing this reference.last_z_result: Returns the Z result value of the last PROBE command. Note, if this is used in a macro, due to the order of template expansion, the PROBE (or similar) command must be run prior to the macro containing this reference.
quad_gantry_level¶
The following information is available in the quad_gantry_level object (this object is available if quad_gantry_level is defined):
applied: True if the gantry leveling process has been run and completed successfully.
query_endstops¶
The following information is available in the query_endstops object (this object is available if any endstop is defined):
last_query["<endstop>"]: Returns True if the given endstop was reported as "triggered" during the last QUERY_ENDSTOP command. Note, if this is used in a macro, due to the order of template expansion, the QUERY_ENDSTOP command must be run prior to the macro containing this reference.
servo¶
The following information is available in servo some_name objects:
printer["servo <config_name>"].value: The last setting of the PWM pin (a value between 0.0 and 1.0) associated with the servo.
system_stats¶
The following information is available in the system_stats object (this object is always available):
sysload,cputime,memavail: Information on the host operating system and process load.
temperature sensors¶
The following information is available in
bme280 config_section_name, htu21d config_section_name, lm75 config_section_name, and temperature_host config_section_name objects:
temperature: The last read temperature from the sensor.humidity,pressure,gas: The last read values from the sensor (only on bme280, htu21d, and lm75 sensors).
temperature_fan¶
The following information is available in temperature_fan some_name objects:
temperature: The last read temperature from the sensor.target: The target temperature for the fan.
temperature_sensor¶
The following information is available in temperature_sensor some_name objects:
temperature: The last read temperature from the sensor.measured_min_temp,measured_max_temp: The lowest and highest temperature seen by the sensor since the Klipper host software was last restarted.
tmc drivers¶
The following information is available in TMC stepper driver objects (eg, [tmc2208 stepper_x]):
mcu_phase_offset: The micro-controller stepper position corresponding with the driver's "zero" phase. This field may be null if the phase offset is not known.phase_offset_position: The "commanded position" corresponding to the driver's "zero" phase. This field may be null if the phase offset is not known.drv_status: The results of the last driver status query. (Only non-zero fields are reported.) This field will be null if the driver is not enabled (and thus is not periodically queried).run_current: The currently set run current.hold_current: The currently set hold current.
toolhead¶
The following information is available in the toolhead object (this object is always available):
position: The last commanded position of the toolhead relative to the coordinate system specified in the config file. It is possible to access the x, y, z, and e components of this position (eg,position.x).extruder: The name of the currently active extruder. For example, in a macro one could useprinter[printer.toolhead.extruder].targetto get the target temperature of the current extruder.homed_axes: The current cartesian axes considered to be in a "homed" state. This is a string containing one or more of "x", "y", "z".axis_minimum,axis_maximum: The axis travel limits (mm) after homing. It is possible to access the x, y, z components of this limit value (eg,axis_minimum.x,axis_maximum.z).max_velocity,max_accel,max_accel_to_decel,square_corner_velocity: The current printing limits that are in effect. This may differ from the config file settings if aSET_VELOCITY_LIMIT(orM204) command alters them at run-time.stalls: The total number of times (since the last restart) that the printer had to be paused because the toolhead moved faster than moves could be read from the G-Code input.
dual_carriage¶
The following information is available in dual_carriage on a hybrid_corexy or hybrid_corexz robot
mode: The current mode. Possible values are: "FULL_CONTROL"active_carriage: The current active carriage. Possible values are: "CARRIAGE_0", "CARRIAGE_1"
virtual_sdcard¶
The following information is available in the virtual_sdcard object:
is_active: Returns True if a print from file is currently active.progress: An estimate of the current print progress (based of file size and file position).file_path: A full path to the file of currently loaded file.file_position: The current position (in bytes) of an active print.file_size: The file size (in bytes) of currently loaded file.
webhooks¶
The following information is available in the webhooks object (this object is always available):
state: Returns a string indicating the current Klipper state. Possible values are: "ready", "startup", "shutdown", "error".state_message: A human readable string giving additional context on the current Klipper state.
z_tilt¶
The following information is available in the z_tilt object (this object is available if z_tilt is defined):
applied: True if the z-tilt leveling process has been run and completed successfully.