3D printer G-code · Marlin
M119: Endstop states (Marlin)
Endstop states — Shows whether each endstop is "open" or "TRIGGERED". The first check when homing fails. Klipper: QUERY_ENDSTOPS.
On this page
| Property | Value |
|---|---|
| Command | M119 |
| Function | Endstop states |
| Firmware | Marlin |
| Group | Status |
| Syntax | M119 |
What does M119 do?
Shows whether each endstop is "open" or "TRIGGERED". The first check when homing fails. Klipper: QUERY_ENDSTOPS.
Example
M119Tips from practice
- Press the switch by hand and send M119 again: the state must change.
Marlin. Many Marlin commands only exist when the feature is enabled in the firmware build. If the printer answers "Unknown command", the feature is missing. Klipper does not understand most of these settings codes; it uses printer.cfg instead.
Related commands
More status commands
| Command | Function | Firmware |
|---|---|---|
M155 | Temperature auto report | Marlin |
M105 | Report temperatures | Marlin and Klipper |
M117 | Display message | Marlin and Klipper |
M73 | Set print progress | Marlin and Klipper |
M114 | Report position | Marlin and Klipper |
M300 | Beep | Marlin |
Test it before you print
Paste your start code or a whole file into the 3D printer simulator. It plans every move, shows the time and finds missing waits, cold extrusion and moves outside the bed.
Open the simulatorFrequently asked questions
What does M119 do on a 3D printer?
M119 is endstop states. Shows whether each endstop is "open" or "TRIGGERED". The first check when homing fails. Klipper: QUERY_ENDSTOPS.
Does M119 work in Klipper and Marlin?
M119 is a Marlin command. Klipper uses its own commands and printer.cfg settings for this task.
Was this page helpful?