<p><em>Assuming that your <code>M119</code> command has been executed for non-depressed endstop switches, it could be concluded that the firmware is incorrectly configured.</em></p>
<hr />
<p>If you execute the <code>M119</code> G-code command and get <code>TRIGGERED</code> status values for endstops, even when the nozzle head is not pressing the endstop switches, then you have incorrectly configured the endstops in the Marlin configuration.h file.</p>
<p>The most common setup is to have the <code>COM</code> go to ground and <code>NC</code> to Signal, this requires the following values to be <code>false</code>, otherwise you need to use true.</p>
<pre><code>#define X_MIN_ENDSTOP_INVERTING true// Set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING true// Set to true to invert the logic of the endstop.
</code></pre>
<p>When an endstop is reported to be triggered while the switch is not depressed, the logic needs to be reversed. Marlin firmware will only allow movement to go away from the endstop when it is triggered, never against a triggered endstop (as this might damage the printer).</p>

CC BY-SA 4.0
2021-05-27T23:47:41.583Z
sorry for the delay in responding, i had little time these days. Anyway, here I left it configured like this

#define X_MIN_ENDSTOP_INVERTING true
#define Y_MIN_ENDSTOP_INVERTING true
#define Z_MIN_ENDSTOP_INVERTING true
#define X_MAX_ENDSTOP_INVERTING false
#define Y_MAX_ENDSTOP_INVERTING false 
#define Z_MAX_ENDSTOP_INVERTING false 
#define Z_MIN_PROBE_ENDSTOP_INVERTING false
Blk Games News
CC BY-SA 4.0
2021-05-20T12:24:22.047Z
2023-02-04T23:32:06.103Z
2023-02-04T23:32:06.103Z
0scar
<p>I come through this post, rescue a problem with my printer. It uses Arduino 2560 Mega, RAMPS 1.4, and Marlin 1.1.9, which had configured it left it working as follows: on the RAMPS the Y-axis is connected to the Z-axis pins, as it has two stepper motors on the Y-axis and the Z-axis is connected to the pins of E1.</p>
<p>I did all the basic and necessary configurations in the firmware and sent it to the Arduino, eliminating the previous configuration, so that I can configure the steps of the motor correctly, as they were out of calibration. Before the reset, the motors moved to both sides, positive and negative. However, when I sent the firmware to the Arduino, I can only rotate the motors on all axes only to one side.</p>
<p>On the printer display, I go to the option to move the axis, rotate it 10 mm and the axis moves. However when I move it backwards, it does not come back, it is stopped. This happens with all the axes after I did the reset. Is there any way to configure the rotation of the motors by the firmware in relation to pins A1, A2, B1, and B2 in the same way that the axis change on the RAMPS was configured?</p>
<p>I apologize for the mistakes, I speak Portuguese and I used a translator.</p>
<hr />
<p><em>I executed the command <code>M119</code> on the console of the Marlin IDE and the printer did nothing, it is correctly connected to the PC via the USB cable
this appeared on the console screen:</em></p>
<pre><code>x_min: TRIGGERED
y_min: TRIGGERED
z_min: open
ok
</code></pre>

CC BY-SA 4.0
2021-05-17T17:12:21.237Z
Do you have minimum endstops enabled? Did you check state of endstops?
octopus8
CC BY-SA 4.0
2021-05-17T18:54:34.017Z
Presumably, you need to home an axis before it will move in both directions.
Mick
CC BY-SA 4.0
2021-05-20T11:40:33.993Z
Yes, the endstops are active, following a tutorial that I was following on configuration, it is this configuration, leave the options of the mechanical endstop in true
Blk Games News
<marlin><firmware><stepper><axis><ramps>
Stepper motor moving only to one side after reset
Blk Games News
# Stepper motor moving only to one side after reset

(Asked by: username_0 on 2021-05-17)

I come through this post, rescue a problem with my printer. It uses Arduino 2560 Mega, RAMPS 1.4, and Marlin 1.1.9, which had configured it left it working as follows: on the RAMPS the Y-axis is connected to the Z-axis pins, as it has two stepper motors on the Y-axis and the Z-axis is connected to the pins of E1.

I did all the basic and necessary configurations in the firmware and sent it to the Arduino, eliminating the previous configuration, so that I can configure the steps of the motor correctly, as they were out of calibration. Before the reset, the motors moved to both sides, positive and negative. However, when I sent the firmware to the Arduino, I can only rotate the motors on all axes only to one side.

On the printer display, I go to the option to move the axis, rotate it 10 mm and the axis moves. However when I move it backwards, it does not come back, it is stopped. This happens with all the axes after I did the reset. Is there any way to configure the rotation of the motors by the firmware in relation to pins A1, A2, B1, and B2 in the same way that the axis change on the RAMPS was configured?

I apologize for the mistakes, I speak Portuguese and I used a translator.

---

*I executed the command `M119` on the console of the Marlin IDE and the printer did nothing, it is correctly connected to the PC via the USB cable
this appeared on the console screen:*

```
x_min: TRIGGERED
y_min: TRIGGERED
z_min: open
ok

```

**Tags:** marlin, firmware, stepper, axis, ramps

> **Comments:**
> **username_1**: Do you have minimum endstops enabled? Did you check state of endstops?  
> **username_2**: Presumably, you need to home an axis before it will move in both directions.  
> **username_0**: Yes, the endstops are active, following a tutorial that I was following on configuration, it is this configuration, leave the options of the mechanical endstop in true  

---

## 1 answers

### Answer by username_3 on 2021-05-20. Score: 1

*Assuming that your `M119` command has been executed for non-depressed endstop switches, it could be concluded that the firmware is incorrectly configured.*

---

If you execute the `M119` G-code command and get `TRIGGERED` status values for endstops, even when the nozzle head is not pressing the endstop switches, then you have incorrectly configured the endstops in the Marlin configuration.h file.

The most common setup is to have the `COM` go to ground and `NC` to Signal, this requires the following values to be `false`, otherwise you need to use true.

```
#define X_MIN_ENDSTOP_INVERTING true// Set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING true// Set to true to invert the logic of the endstop.

```

When an endstop is reported to be triggered while the switch is not depressed, the logic needs to be reversed. Marlin firmware will only allow movement to go away from the endstop when it is triggered, never against a triggered endstop (as this might damage the printer).

> **Comments:**
> **username_0**: sorry for the delay in responding, i had little time these days. Anyway, here I left it configured like this  #define X_MIN_ENDSTOP_INVERTING true #define Y_MIN_ENDSTOP_INVERTING true #define Z_MIN_ENDSTOP_INVERTING true #define X_MAX_ENDSTOP_INVERTING false #define Y_MAX_ENDSTOP_INVERTING false  #define Z_MAX_ENDSTOP_INVERTING false  #define Z_MIN_PROBE_ENDSTOP_INVERTING false  

---

