• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

endstop trigger and bangbang questions

Scheduled Pinned Locked Moved Unsolved
General Discussion
5
42
1.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    Phaedrux Moderator @deltajegga
    last edited by 30 Jun 2020, 17:26

    @deltajegga said in endstop trigger and bangbang questions:

    ;M950 J1 C"!^duex.e2stop"
    ;M581 P1 T0 C0

    You've uncommented these lines right?

    @deltajegga said in endstop trigger and bangbang questions:

    i get this back
    Error: meta command: array index out of bounds

    means gpIn[1] doesn't exist, so either the M950 J1 command wasn't run or it didn't work

    What do you get if you send just M950 J1 in the console?

    Z-Bot CoreXY Build | Thingiverse Profile

    1 Reply Last reply Reply Quote 0
    • undefined
      deltajegga
      last edited by deltajegga 30 Jun 2020, 19:36

      hahaha, silly me. i guess it would help if i uncommented them.
      ok i get a value of 0 back.

      and if i send the m950 j1 i get back
      Pin !duex.e2stop, active: false

      1 Reply Last reply Reply Quote 0
      • undefined
        Phaedrux Moderator @deltajegga
        last edited by 30 Jun 2020, 19:39

        @deltajegga said in endstop trigger and bangbang questions:

        M950 J1 C"!^duex.e2stop"
        M581 P1 T0 C0 S1

        And with this? Does it work as expected?

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • undefined
          deltajegga
          last edited by 30 Jun 2020, 19:40

          no, it still resetes if i home

          1 Reply Last reply Reply Quote 0
          • undefined
            Phaedrux Moderator
            last edited by 30 Jun 2020, 19:44

            I wonder if having the wiring bundled like that is causing the e stop switch pick up the signal from the endstop.

            Usually when I'm making my looms I always twist the wires to try and prevent cross talk. Can you physically separate the wiring for the e stop from the bundle and test again?

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • undefined
              deltajegga
              last edited by 30 Jun 2020, 20:09

              ok, interesting. so that solved the triggering when it shouldent problem. (i allways thought that only pwm and data lines cared about twisting.)

              but it still wont trigger when i press the button. just a reminder im using a normally open switch.

              undefined 1 Reply Last reply 30 Jun 2020, 20:23 Reply Quote 0
              • undefined
                Phaedrux Moderator @deltajegga
                last edited by 30 Jun 2020, 20:23

                @deltajegga said in endstop trigger and bangbang questions:

                just a reminder im using a normally open switch.

                Try changing it to normally closed. This should be configurable with the S0 S1 switch, but it's worth a shot.

                @deltajegga said in endstop trigger and bangbang questions:

                (i allways thought that only pwm and data lines cared about twisting.)

                I twist or braid everything when using cramped conduits. Just as a matter of habit.

                Z-Bot CoreXY Build | Thingiverse Profile

                1 Reply Last reply Reply Quote 0
                • undefined
                  deltajegga
                  last edited by 30 Jun 2020, 22:48

                  yeah still nothing.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    Phaedrux Moderator
                    last edited by 1 Jul 2020, 00:49

                    And you're sure the switch really works?
                    Do you have a regular endstop microswitch you can connect in its place to test?

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      deltajegga
                      last edited by 1 Jul 2020, 09:49

                      yeah i tested it with a multimeter at the plug on the duex.

                      undefined 1 Reply Last reply 1 Jul 2020, 10:33 Reply Quote 0
                      • undefined
                        droftarts administrators @deltajegga
                        last edited by 1 Jul 2020, 10:33

                        @deltajegga In RRF 3.1.1, the 'C' parameter has changed to 'R'. See https://duet3d.dozuki.com/Wiki/Gcode#Section_M581_RepRapFirmware_3_01RC2_and_later

                        Try changing command to M581 P1 T0 R0 S1

                        Ian

                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          deltajegga
                          last edited by deltajegga 7 Feb 2020, 00:22 2 Jul 2020, 00:15

                          damn, got my hopes up. i tried that with !, ^, and !^ on the pin name but still nothing. here is a refresh of the config.

                          ; Configuration file for Duet WiFi (firmware version 3)
                          ; executed by the firmware on start-up
                          ;
                          ; generated by RepRapFirmware Configuration Tool v3.1.1 on Sun May 31 2020 21:54:40 GMT-0700 (Pacific Daylight Time)
                          ; General preferences
                          G90 ; send absolute coordinates...
                          M83 ; ...but relative extruder moves
                          M550 P"1M" ; set printer name
                          ; Network
                          M552 S1 ; enable network
                          M586 P0 S1 ; enable HTTP
                          M586 P1 S0 ; disable FTP
                          M586 P2 S0 ; disable Telnet
                          M587 S"MTS" P"Judy1985"
                          ; Drives
                          M569 P0 S0 ; physical drive 0 goes backwards X
                          M569 P1 S0 ; physical drive 1 goes forwards RY
                          M569 P2 S0 ; physical drive 2 goes backwards RZ
                          M569 P3 S0 ; physical drive 3 goes forwards E
                          M569 P5 S1 ; physical drive 5 goes forwards LY
                          M569 P6 S0 ; physical drive 6 goes backwards LZ
                          M584 X0 Y1:5 Z6:2 E3 ; set drive mapping
                          M350 X16 Y16:16 Z16:16 E16 I1 ; configure microstepping with interpolation
                          M92 X114.29 Y114.29:114.29 Z400.00:400.00 E420.00 ; set steps per mm
                          M566 X300.00 Y300:300 Z12:12 E120.00 ; set maximum instantaneous speed changes (mm/min)
                          M203 X4000.00 Y4000:4000 Z500:500 E1200.00 ; set maximum speeds (mm/min)
                          M201 X150.00 Y150:150 Z20:20 E250.00 ; set accelerations (mm/s^2)
                          M906 X800 Y1100:1100 Z600:600 E800 I50 ; set motor currents (mA) and motor idle factor in per cent
                          M84 S90 ; Set idle timeout
                          ; Axis Limits
                          M208 X0 Y0 Z0 S1 ; set axis min
                          M208 X1400 Y880 Z900 S0 ; set axis max
                          ; Endstops
                          M574 X1 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop
                          M574 Y1 S1 P"ystop" ; configure active-high endstop for low end on Y via pin ystop
                          M574 Z1 S2 ; configure Z-probe endstop for low end on Z
                          ; Z-Probe
                          M950 S0 C"duex.e2heat" ; create servo pin 0 for BLTouch
                          M558 P9 C"zprobe.in+zprobe.mod" H10 F400 T8000 ; set Z probe type to bltouch and the dive height + speeds
                          G31 P25 X28.3 Y0 Z1.3 ; set Z probe trigger value, offset and trigger height INCREASE Z TO MOVE CLOSER TO BED
                          M557 X50:1380 Y50:870 S100 ; define mesh grid
                          ; Heaters
                          M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
                          M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
                          M307 H0 B0 S1.00 A137 D6.4 C1400 ; enable PID mode for the bed heater and set PWM limit
                          M140 H0 ; map heated bed to heater 0
                          M143 H0 S120 ; set temperature limit for heater 0 to 120C
                          M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
                          M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
                          M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
                          ; Fans
                          M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
                          M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
                          ; Tools
                          M563 P0 D0 H1 F0 ; define tool 0
                          G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
                          G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C
                          ; Miscellaneous
                          M671 X50:1480 Y400:400 S10 ; x gantry leveling
                          M911 S22 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
                          T0 ; select first tool
                          M950 J1 C"duex.e2stop"
                          M581 P1 T0 R0 S1 ;emergency stop
                          1 Reply Last reply Reply Quote 0
                          40 out of 42
                          • First post
                            40/42
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA