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

    BLT Manual deploy +HomeZ ok ~ Auto HomeZ = no?

    Scheduled Pinned Locked Moved
    General Discussion
    2
    9
    354
    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.
    • BDubsundefined
      BDubs
      last edited by

      For some reason, I can't seem to get my BLT working as expected. I followed the online example for wiring, Config.g et al, but I have something either transposed or wrong. Can someone take a look and see if anything sticks out?

      FYI - It seems to be wired up correctly. The probe will not automatically deploy when functioning as a Z end stop/Zzero switch. However - If I manually deploy the probe via my 'deployprobe' macro, it does in fact deploy & if I command the Z to home, it does in fact work as expected. Just not sure where my code is messed up.

      Yes...there's cleanup to be done deleting extra comments in the code. Thank you in advance for looking...

      ;BLT Config 1/1/21

      ; Configuration file for Duet WiFi (firmware version 3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.1.10 on Wed Dec 09 2020 11:04:02 GMT-0500 (Eastern Standard Time)

      ; General preferences
      G90 ; send absolute coordinates...
      M83 ; ...but relative extruder moves
      M550 P"CR10S6" ; set printer name

      ; Network
      M552 S1 ; enable network
      M586 P0 S1 ; enable HTTP
      M586 P1 S0 ; disable FTP
      M586 P2 S0 ; disable Telnet

      ; Drives
      M569 P0 S0 ; physical drive 0 goes backwards
      M569 P1 S0 ; physical drive 1 goes backwards
      M569 P2 S1 ; physical drive 2 goes forwards
      M569 P3 S1 ; physical drive 3 goes forwards
      M584 X0 Y1 Z2 E3 ; set drive mapping
      M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
      M92 X80.00 Y80.00 Z400.00 E420.00 ; set steps per mm
      M566 X900.00 Y900.00 Z60.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
      M203 X6000.00 Y6000.00 Z1250.00 E1200.00 ; set maximum speeds (mm/min)
      M201 X500.00 Y500.00 Z40.00 E250.00 ; set accelerations (mm/s^2)
      M906 X1000 Y1000 Z1000 E900 I30 ; set motor currents (mA) and motor idle factor in per cent
      M84 S30 ; Set idle timeout

      ; Axis Limits
      M208 X0 Y0 Z0 S1 ; set axis minima
      M208 X500 Y500 Z900 S0 ; set axis maxima

      ; 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
      M591 P1 C"e0stop" S1 D0 ; filament monitor connected to E0 endstop S1=On S0=Off P1=simple sensor (high signal when filament present)

      ; Z-Probe
      M558 P9 C"^zprobe.in" H5 F120 T6000 A10 R0.75 S0.02 ; set Z probe type to bltouch and the dive height + speeds
      M950 S0 C"exp.heater3" ; create servo pin 0 for BLTouch on exp.heater3
      G31 P500 X-33 Y-1 Z1.438 ; set Z probe trigger value, offset and trigger height
      M557 X25:450 Y25:475 S50

      ; IRPROBE M558 P1 C"zprobe.in" H5 F120 T6000 ; set Z probe type to unmodulated and the dive height + speeds
      ; IRPROBE G31 P500 X-48 Y-10 Z2.55 ; set Z probe trigger value, offset and trigger height
      ; IRPROBE M557 X25:450 Y25:475 S50 ; define mesh grid

      ; Heaters
      M140 H-1 ; disable heated bed (overrides default heater mapping)
      M308 S0 P"spi.cs1" Y"rtd-max31865" ; configure sensor 0 as thermocouple via CS pin spi.cs1
      M950 H0 C"e1heat" T0 ; create nozzle heater output on e1heat and map it to sensor 0
      M307 H0 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
      M143 H0 S290 ; set temperature limit for heater 0 to 290C

      ; 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
      M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
      M106 P1 S1 H T45 ; set fan 1 value. Thermostatic control is turned on

      ; Tools
      M563 P0 D0 H0 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

      ; Custom settings are not defined

      ; Miscellaneous
      M575 P1 S1 B57600 ; enable support for PanelDue
      M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
      T0 ;Start up with tool 0 selected in the console


      ; homez.g
      ; called to home the Z axis
      ;
      ; generated by RepRapFirmware Configuration Tool v3.1.10 on Wed Dec 09 2020 11:04:02 GMT-0500 (Eastern Standard Time)
      G91 ; relative positioning
      G1 H2 Z5 F6000 ; lift Z relative to current position
      G90 ; absolute positioning
      G1 X63 Y25 F6000 ; go to first probe point
      ;M98 P"^deployprobe.g"
      M401 P1; Lower Z probe (BLTouch)
      G30 ; home Z by probing the bed
      M402 P1; Retract Probe
      ;M98 P"^retractprobe.g"
      ; Uncomment the following lines to lift Z after probing
      G91 ; relative positioning
      G1 Z5 F100 ; lift Z relative to current position
      G90 ; absolute positioning


      ; homeall.g
      ; called to home all axes
      ;
      ; generated by RepRapFirmware Configuration Tool v3.1.10 on Wed Dec 09 2020 11:04:02 GMT-0500 (Eastern Standard Time)
      G91 ; relative positioning
      G1 H2 Z5 F6000 ; lift Z relative to current position
      G1 H1 X-505 Y-505 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
      G1 H2 X5 Y5 F6000 ; go back a few mm
      G1 H1 X-505 Y-505 F360 ; move slowly to X and Y axis endstops once more (second pass)
      G90 ; absolute positioning
      G1 X63 Y25 F6000 ; go to first bed probe point and home Z
      G30 ; home Z by probing the bed

      ; Uncomment the following lines to lift Z after probing
      ;G91 ; relative positioning
      ;G1 Z5 F100 ; lift Z relative to current position
      ;G90 ; absolute positioning


      ;deployprobe.g

      M280 P0 S10 ; deploy BLTouch


      ;retractprobe.g

      M280 P0 S90 ; retract BLTouch

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        @BDubs said in BLT Manual deploy +HomeZ ok ~ Auto HomeZ = no?:

        The probe will not automatically deploy when functioning as a Z end stop/Zzero switch. However - If I manually deploy the probe via my 'deployprobe' macro, it does in fact deploy & if I command the Z to home,

        Sorry but I don't understand what that means.

        What do you do to make it work, and what do you do when it doesn't work?

        Does sending G28 (homeall.g) work?

        If you send G30 does it deploy the pin?

        @BDubs said in BLT Manual deploy +HomeZ ok ~ Auto HomeZ = no?:

        ;M98 P"^deployprobe.g"
        M401 P1; Lower Z probe (BLTouch)
        G30 ; home Z by probing the bed
        M402 P1; Retract Probe
        ;M98 P"^retractprobe.g"

        Remove all that deploy retract cruft. It just needs G30.

        Can you send M122 and M98 P"config.g" and share the results?

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • BDubsundefined
          BDubs
          last edited by

          Basically, If tell it to HomeZ (after homing X & Y individually) - it runs the nozzle into the bed.

          However...If I deploy the probe pin and then run homeZ, it works as you'd expect. It touches off twice and raises the Z up. It does not retract the pin though...I have to do that manually.

          Not running home all until homeZ is good - for obvious reasons.

          (More on the other stuff you asked in a few min...)

          1 Reply Last reply Reply Quote 0
          • BDubsundefined
            BDubs
            last edited by

            @Phaedrux said in BLT Manual deploy +HomeZ ok ~ Auto HomeZ = no?:

            M122 and M98 P"config.g"

            1/1/2021, 5:45:51 PM M122
            === Diagnostics ===
            RepRapFirmware for Duet 2 WiFi/Ethernet version 3.1.1 running on Duet WiFi 1.02 or later
            Board ID: 08DGM-9568A-F23SD-6J1F2-3S86Q-KBN7D
            Used output buffers: 3 of 24 (12 max)
            === RTOS ===
            Static ram: 27980
            Dynamic ram: 93708 of which 44 recycled
            Exception stack ram used: 496
            Never used ram: 8844
            Tasks: NETWORK(blocked,384) HEAT(blocked,1224) MAIN(running,1848) IDLE(ready,80)
            Owned mutexes: WiFi(NETWORK)
            === Platform ===
            Last reset 00:01:31 ago, cause: software
            Last software reset time unknown, reason: User, spinning module GCodes, available RAM 9076 bytes (slot 0)
            Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task MAIN
            Error status: 0
            MCU temperature: min 30.6, current 32.1, max 32.2
            Supply voltage: min 24.0, current 24.1, max 24.4, under voltage events: 0, over voltage events: 0, power good: yes
            Driver 0: standstill, SG min/max 0/289
            Driver 1: standstill, SG min/max 214/383
            Driver 2: standstill, SG min/max 0/257
            Driver 3: standstill, SG min/max not available
            Driver 4: standstill, SG min/max not available
            Date/time: 2021-01-01 17:45:47
            Cache data hit count 151460176
            Slowest loop: 6.25ms; fastest: 0.13ms
            I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
            === Storage ===
            Free file entries: 10
            SD card 0 detected, interface speed: 20.0MBytes/sec
            SD card longest read time 1.0ms, write time 0.0ms, max retries 0
            === Move ===
            Hiccups: 0(0), FreeDm: 169, MinFreeDm: 167, MaxWait: 24574ms
            Bed compensation in use: none, comp offset 0.000
            === MainDDARing ===
            Scheduled moves: 17, completed moves: 17, StepErrors: 0, LaErrors: 0, Underruns: 0, 0 CDDA state: -1
            === AuxDDARing ===
            Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0 CDDA state: -1
            === Heat ===
            Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
            Heater 0 is on, I-accum = 0.0
            === GCodes ===
            Segments left: 0
            Movement lock held by null
            HTTP is idle in state(s) 0
            Telnet is idle in state(s) 0
            File is idle in state(s) 0
            USB is idle in state(s) 0
            Aux is idle in state(s) 0
            Trigger is idle in state(s) 0
            Queue is idle in state(s) 0
            Daemon is idle in state(s) 0
            Autopause is idle in state(s) 0
            Code queue is empty.
            === Network ===
            Slowest loop: 15.72ms; fastest: 0.00ms
            Responder states: HTTP(2) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
            HTTP sessions: 1 of 8

            • WiFi -
              Network state is active
              WiFi module is connected to access point
              Failed messages: pending 0, notready 0, noresp 0
              WiFi firmware version 1.23
              WiFi MAC address 2c:3a:e8:0b:1b:7b
              WiFi Vcc 3.40, reset reason Unknown
              WiFi flash size 4194304, free heap 25672
              WiFi IP address 192.168.3.105
              WiFi signal strength -55dBm, reconnections 0, sleep mode modem
              Socket states: 4 0 0 0 0 0 0 0
              === Filament sensors ===
              Extruder 0 sensor: ok

            FYI - M98 P"config.g" does nothing when I enter it in & execute

            Phaedruxundefined 1 Reply Last reply Reply Quote 0
            • BDubsundefined
              BDubs
              last edited by

              Do I need another M307 command for the BLT?

              RE: https://forum.duet3d.com/topic/20344/probe-points-with-bltouch/2

              M307 H3 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator @BDubs
                last edited by

                If you send M401 and M402 does it deploy and retract the pin?

                If you send G30 does it deploy the pin?

                @BDubs said in BLT Manual deploy +HomeZ ok ~ Auto HomeZ = no?:

                Do I need another M307 command for the BLT?

                No, that's for RRF2.

                Z-Bot CoreXY Build | Thingiverse Profile

                1 Reply Last reply Reply Quote 0
                • BDubsundefined
                  BDubs
                  last edited by

                  That's a negative on all 3 counts.

                  However, If I click on my deployprobe macro, it deploys. Clicking on retractprobe macro, it retracts.

                  1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator
                    last edited by

                    Where are those macros? They should be in the system folder

                    Z-Bot CoreXY Build | Thingiverse Profile

                    BDubsundefined 1 Reply Last reply Reply Quote 0
                    • BDubsundefined
                      BDubs @Phaedrux
                      last edited by

                      @Phaedrux Wow dude...You rock! That was it!

                      I thought I uploaded them to the System folder...not sure where they got loaded to. The Macro folder?

                      HUGE THANK YOU!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Unless otherwise noted, all forum content is licensed under CC-BY-SA