Z axis end stop active low trigger



  • I'm setting up a active low trigger sensor that has a closed loop when unactivated and completely disconnects when it's activated (I'm not sure if this is standard, but I don't want to miss any important details). I though I set it up properly in the firmware but there seems to be no communication between motor controls and the switch, even though the light is turning on. Current set up has the sensor wired to the E0 switch, running V18.1 firmware. Firmware and test code shown below:

    Firmware:
    M574 Z1 S1 ; set endstop configuration (Z endstops at high end, active Low, probe)
    M574 X1 Y1 S0 ; set endstop configuration (X and Y endstops at high end, active high)

    ; Z probe
    M558 P4 I1 X0 Y0 Z1 ; Z probe used for Z stop. active low (inverted current?)
    G31 X6 Y0 Z2 P500 ; offset 6mm from X and 2mm from Z

    test code:

    M561 ; clear any existing bed transform
    G30 P0 X0 Y0 Z-99999 ;Probe 4 corners and one point in center
    G30 P1 X0 Y70 Z-99999
    G30 P2 X45 Y70 Z-99999
    G30 P3 X45 Y0 Z-99999
    G30 P4 X22.5 Y35 Z-99999 S0 ;probe bed center, and calculate compensation

    G1 X0 Y0 Z4 ; move the head to the home corner

    I also used a dummy code to just move back and forth with an S1 parameter and got no response. To note is that the switch has a 3 MOhm resistance when closed, which may be important. Any help is greatly appreciated.


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.