Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. Flex12
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 9
    • Best 0
    • Controversial 0
    • Groups 0

    Flex12

    @Flex12

    0
    Reputation
    1
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Flex12 Unfollow Follow

    Latest posts made by Flex12

    • RE: Configure Diode Laser in

      @flex12

      This is the code from 122
      M122
      === Diagnostics ===
      RepRapFirmware for Duet 2 WiFi/Ethernet version 3.2.2 running on Duet WiFi 1.02 or later + DueX2
      Board ID: 08DLM-996RU-N85T0-6J9FL-3SD6R-1SS3N
      Used output buffers: 3 of 24 (15 max)
      === RTOS ===
      Static ram: 23460
      Dynamic ram: 73900 of which 24 recycled
      Never used RAM 14696, free system stack 204 words
      Tasks: NETWORK(ready,186) LASER(blocked,67) HEAT(blocked,308) DUEX(blocked,31) MAIN(running,625) IDLE(ready,20)
      Owned mutexes: WiFi(NETWORK)
      === Platform ===
      Last reset 00:13:33 ago, cause: software
      Last software reset at 2021-05-02 21:56, reason: User, GCodes spinning, available RAM 14452, slot 1
      Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
      Error status: 0x00
      Aux0 errors 0,0,0
      MCU temperature: min 36.3, current 36.8, max 37.8
      Supply voltage: min 0.2, current 0.4, max 2.0, under voltage events: 0, over voltage events: 0, power good: no
      Driver 0: position 0, ok, SG min/max not available
      Driver 1: position 0, ok, SG min/max not available
      Driver 2: position 0, ok, SG min/max not available
      Driver 3: position 0, ok, SG min/max not available
      Driver 4: position 0, ok, SG min/max not available
      Driver 5: position 0, ok, SG min/max not available
      Driver 6: position 0, ok, SG min/max not available
      Driver 7: position 0
      Driver 8: position 0
      Driver 9: position 0
      Driver 10: position 0
      Driver 11: position 0
      Date/time: 2021-05-02 22:09:51
      Cache data hit count 1135360814
      Slowest loop: 7.13ms; 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 3.9ms, write time 0.0ms, max retries 0
      === Move ===
      DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000
      === MainDDARing ===
      Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
      === AuxDDARing ===
      Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
      === Heat ===
      Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
      === 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
      LCD 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.76ms; 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.25
        WiFi MAC address 84:0d:8e:b2:f6:52
        WiFi Vcc 3.33, reset reason Turned on by main processor
        WiFi flash size 4194304, free heap 25600
        WiFi IP address 192.168.0.102
        WiFi signal strength -43dBm, mode 802.11n, reconnections 0, sleep mode modem
        Clock register 00002002
        Socket states: 0 0 0 0 0 0 0 0
        === DueX ===
        Read count 1, 0.07 reads/min
      posted in Using Duet Controllers
      Flex12undefined
      Flex12
    • RE: Configure Diode Laser in

      @flex12 In RRF 3

      posted in Using Duet Controllers
      Flex12undefined
      Flex12
    • Configure Diode Laser in

      Hy, I recently tried to get my installed laser up and running.
      I read the following entries on the subject:

      • https://duet3d.dozuki.com/Wiki/Laser_PWM_control#Section_PWM_Circuit
      • https://duet3d.dozuki.com/Wiki/Gcode#Section_M950_Create_heater_fan_spindle_or_GPIO_servo_pin
      • https://duet3d.dozuki.com/Wiki/Gcode#Section_M452_Select_Laser_DeviceMode

      My laser is a neje "20w" (5w) diode laser connected to pwm2 on duex2 and it works quite well as an engraving tool.

      I set up my laser within a new Tool.
      My current config.g file:

      ; Tools
      ......
      .....
      ..
      M563 P3 S"Laser"                                        	; define tool 2
      M950 P1 C"duex.pwm2"										; Allocate type of output
      M452 C"duex.pwm2" R255 F500        							; Enable Laser mode, on duex.pwm2, with max intensity being 255, and a PWM frequency of 500
      G10 P3 X0 Y0 Z0                                             ; set tool 3 axis offsets
      G10 P3 R0 S0                                                ; set initial tool 3 active and standby temperatures to 0C
      

      To work with the laser i typed in the console:

      M3 S255
      **or**
      G1 S100
      **or**
      M42 P"duex.pwm2" S1 (For 100% power)
      

      Unfortunatly not one of the commands was succesfull with activating the laser.

      If i configured the PWM signal to match the one from my bl-touch my laser begun to burn as long as the homing procedure was taking place.

      I don't understand what i can look for in this case. i could really use some hints.

      posted in Using Duet Controllers
      Flex12undefined
      Flex12
    • RE: G28 Z homing failed BL-Touch - No other Z-endstop installed

      Thank you for helping me. My 3D-Printer finally is able to home properly and performe a mesh bed leveling procedure. šŸ‘

      posted in Using Duet Controllers
      Flex12undefined
      Flex12
    • G28 Z homing failed BL-Touch - No other Z-endstop installed

      Hello Everyone

      i'm relatively new to RRF3 and Duet in general. Last time it was possible for me to get homing for X and Y axle done.
      I installed for many reasons a BL-Touch Sensor to get leveling on my large print area done. This seemed like an easy task, but unfortunatly i come to a stall when i encounter always the same error. So i thought i should ask the community again on what exactly to change in the settings or wiring.
      My system is a duet wifi2 in combination with a duex2. I wired the BL-Touch servo to PWM1 on the duex and the Z-Probe to the according port on the DuetWifi2. I found a guide which seems originally written for RRF2 (https://forum.duet3d.com/topic/7972/bl-touch-install-success) and i changed a few things to match up with RRF3. This is where my struggles begun. After changing every nescessary thing to run on RRF3 i startet my machine only to find out that for G30 i need G28 for the axle to be possible to be level. So now im confused if I have to add an additional max Z Switch for my printer. I would rather go foreward with just the BL-Touch installed. I could really use some help.

      Here is my config:

      ; Configuration file for Duet WiFi (firmware version 3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.2.1 on Sat Jan 09 2021 23:47:21 GMT+0100 (MitteleuropƤische Normalzeit)
      
      ; General preferences
      G90                                                         ; send absolute coordinates...
      M83                                                         ; ...but relative extruder moves
      M550 P"xxxxxxx"                                            ; set printer name
      M81															; activate power toggle
      
      ; Network
      M551 P"xxxxxxx"                                               ; set password
      M552 S1                                                     ; enable network
      M586 P0 S1                                                  ; enable HTTP
      M586 P1 S0                                                  ; disable FTP
      M586 P2 S0                                                  ; disable Telnet
      
      ; Drives
      M569 P2 S0                                                  ; physical drive 2 goes backwards
      M569 P5 S1                                                  ; physical drive 5 goes forwards
      M569 P1 S1                                                  ; physical drive 1 goes backwards
      M569 P0 S0                                                  ; physical drive 0 goes forwards
      M569 P4 S1                                                  ; physical drive 3 goes forwards
      M569 P3 S1                                                  ; physical drive 4 goes forwards
      M584 X5:2 Y1:0 Z3 E4                                        ; set drive mapping
      M350 X16 Y16 Z16 E16 I1                                		; configure microstepping with interpolation
      M92 X100.00 Y100.00 Z400.00 E420.00             			; set steps per mm
      M566 X900.00 Y900.00 Z900.00 E900.00            			; set maximum instantaneous speed changes (mm/min)
      M203 X12000.00 Y12000.00 Z300 E12000.00	  					; set maximum speeds (mm/min)
      M201 X500.00 Y500.00 Z20.00 E500.00      		  			; set accelerations (mm/s^2)
      M906 X800 Y800 Z800 E800 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 maxima
      M208 X720 Y420 Z390 S0                                      ; set axis minima
      M574 Z1 S2 													; configure Z-probe endstop for low end on Z
      
      ; Endstops
      M574 X2 S1 P"e1stop+e0stop"                                 ; configure active-high endstop for low end on X via pin e1stop & e0stop
      M574 Y2 S1 P"ystop+xstop"                                   ; configure active-high endstop for low end on Y via pin ystop & xstop
      
      ; Z-Probe
      M950 S0 C"duex.pwm1"               	                        ; create servo pin 1 duex for BLTouch
      M558 P9 C"^zstop.in" H5 F120 T3000                          ; set Z probe type to bltouch and the dive height + speeds
      G31 P25 X0 Y0 Z2.5                                          ; set Z probe trigger value, offset and trigger height
      M557 X10:710 Y10:410 S50                                    ; define mesh grid probe from X=10 to 710, Y=10 to 410 mm with a mesh spacing of 50mm 
      M280 P0 S10													; send control signal to BLTouch through servo lane
      
      ; Heaters
      M140 H-1                                                    ; disable heated bed (overrides default heater mapping)
      M308 S0 P"e0temp" Y"thermistor" T100000 B4138               ; configure sensor 0 as thermistor on pin e0temp
      M950 H0 C"e0heat" T0                                        ; create nozzle heater output on e0heat and map it to sensor 0
      M307 H0 B0 S1.00                                            ; disable bang-bang mode for heater  and set PWM limit
      M143 H0 S280                                                ; set temperature limit for heater 0 to 280C
      
      ; 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 P2 S"Extr1" D1 F0                                      ; define tool 1
      G10 P2 X10 Y10 Z10                                          ; set tool 1 axis offsets
      G10 P2 R0 S0                                                ; set initial tool 1 active and standby temperatures to 0C
      M563 P3 S"Laser" F-1                                        ; define tool 2
      G10 P3 X0 Y0 Z0                                             ; set tool 2 axis offsets
      G10 P3 R0 S0                                                ; set initial tool 2 active and standby temperatures to 0C
      
      ; Custom settings are not defined
      
      

      The result from the Fail Message:

      G28 Z
      Error: in file macro line 9: G30: Z probe 0 not found
      Error: Homing failed
      

      The Macro that still doesnt work:

      ; homez.g
      ; called to home the Z axis
      ;
      ; generated by RepRapFirmware Configuration Tool v3.2.1 on Sat Jan 09 2021 23:47:21 GMT+0100 (MitteleuropƤische Normalzeit)
      G91               	; relative positioning
      G1 H2 Z5 F200     	; lift Z relative to current position
      G90				  	; absolut positioning
      G1 X360 Y210 F2000	; center print head
      G30				  	; lower head, stop when probe triggered and set Z to trigger height
      

      Results from M122:

      M122
      === Diagnostics ===
      RepRapFirmware for Duet 2 WiFi/Ethernet version 3.2.2 running on Duet WiFi 1.02 or later + DueX2
      Board ID: 08DLM-996RU-N85T0-6J9FL-3SD6R-1SS3N
      Used output buffers: 3 of 24 (14 max)
      === RTOS ===
      Static ram: 23460
      Dynamic ram: 73396 of which 252 recycled
      Never used RAM 14972, free system stack 119 words
      Tasks: NETWORK(ready,186) HEAT(blocked,308) DUEX(blocked,31) MAIN(running,619) IDLE(ready,20)
      Owned mutexes: WiFi(NETWORK)
      === Platform ===
      Last reset 00:18:22 ago, cause: software
      Last software reset at 2021-04-18 20:33, reason: User, GCodes spinning, available RAM 15232, slot 0
      Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00400000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
      Error status: 0x00
      Aux0 errors 0,0,0
      MCU temperature: min 34.0, current 36.7, max 36.9
      Supply voltage: min 0.3, current 12.0, max 12.4, under voltage events: 0, over voltage events: 0, power good: yes
      Driver 0: position 36000, standstill, SG min/max 0/264
      Driver 1: position 21000, standstill, SG min/max 0/263
      Driver 2: position 2000, standstill, SG min/max 102/387
      Driver 3: position 0, standstill, SG min/max not available
      Driver 4: position 0, standstill, SG min/max not available
      Driver 5: position 0, standstill, SG min/max 0/250
      Driver 6: position 0, standstill, SG min/max not available
      Driver 7: position 0
      Driver 8: position 0
      Driver 9: position 0
      Driver 10: position 0
      Driver 11: position 0
      Date/time: 2021-04-18 20:52:22
      Cache data hit count 1350640719
      Slowest loop: 9.36ms; 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 3.9ms, write time 0.0ms, max retries 0
      === Move ===
      DMs created 83, maxWait 14329ms, bed compensation in use: none, comp offset 0.000
      === MainDDARing ===
      Scheduled moves 12, completed moves 12, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
      === AuxDDARing ===
      Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
      === Heat ===
      Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
      === 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
      LCD 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.60ms; fastest: 0.00ms
      Responder states: HTTP(0) 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.25
      WiFi MAC address 84:0d:8e:b2:f6:52
      WiFi Vcc 3.33, reset reason Turned on by main processor
      WiFi flash size 4194304, free heap 27064
      WiFi IP address 192.168.0.102
      WiFi signal strength -45dBm, mode 802.11n, reconnections 0, sleep mode modem
      Clock register 00002002
      Socket states: 0 0 0 0 0 0 0 0
      === DueX ===
      Read count 1, 0.05 reads/min
      
      posted in Using Duet Controllers
      Flex12undefined
      Flex12
    • RE: Configuration of MPCNC with Duet Wifi2 & Duex2 on RRF3+

      Finaly i got the time to continue.

      I updatet the Firmware and made some small changes to the syntax (endstop flipping)

      Now everything regarding the axles works fine.

      Thanks again for helping me out. Now im confident i'll finish the Project soon.
      šŸ™Œ

      posted in General Discussion
      Flex12undefined
      Flex12
    • RE: Configuration of MPCNC with Duet Wifi2 & Duex2 on RRF3+

      So I implemented your recomandation of deleting the additional ":" .
      Thankfully the Y-Achsle now works flawlessly.
      But there is a catch. I was not able to home the X-Achsle in the same mannor, even when i allocated the same switches to it (in the config). Thus i suspect i have a problem with the allocation of the drives.
      Next time i plan to rearrange the drives to only use some of the ports on the duet board for the axle movement and use the duex only for extrusion. This might eliminate the problem, fingers crossed.
      Thank you agian. Seeing the axle homing correctly was already eleviating my motivation šŸ™Œ

      posted in General Discussion
      Flex12undefined
      Flex12
    • RE: Configuration of MPCNC with Duet Wifi2 & Duex2 on RRF3+

      @Phaedrux said in Configuration of MPCNC with Duet Wifi2 & Duex2 on RRF3+:

      M98 P"config.g

      Hey Phaedrux, thaks for the support.
      Here is the current status. This is before i changed anything you mentioned.

      M98 P"config.g
      HTTP is enabled on port 80
      FTP is disabled
      TELNET is disabled
      Warning: M950 command is not supported
      Warning: M308 command is not supported
      Warning: M950 command is not supported
      Warning: M950 command is not supported
      Warning: M950 command is not supported
      Error: M563: Tool creation: bad drive number
      Error: G10: Attempt to set/report offsets and temperatures for non-existent tool: 1
      Error: G10: Attempt to set/report offsets and temperatures for non-existent tool: 1
      Tool 2 offsets: X0.00 Y0.00 Z0.00
      
      M122
      === Diagnostics ===
      RepRapFirmware for Duet 2 WiFi/Ethernet version 2.03 running on Duet WiFi 1.02 or later + DueX2
      Board ID: 08DLM-996RU-N85T0-6J9FL-3SD6R-1SS3N
      Used output buffers: 3 of 24 (6 max)
      === RTOS ===
      Static ram: 25680
      Dynamic ram: 93952 of which 0 recycled
      Exception stack ram used: 164
      Never used ram: 11276
      Tasks: NETWORK(ready,796) HEAT(blocked,1236) DUEX(suspended,156) MAIN(running,4188) IDLE(ready,160)
      Owned mutexes:
      === Platform ===
      Last reset 00:00:18 ago, cause: software
      Last software reset at 2021-02-27 21:47, reason: User, spinning module GCodes, available RAM 11240 bytes (slot 2)
      Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0440f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d
      Error status: 0
      Free file entries: 10
      SD card 0 detected, interface speed: 20.0MBytes/sec
      SD card longest block write time: 0.0ms, max retries 0
      MCU temperature: min 33.1, current 33.7, max 33.8
      Supply voltage: min 0.3, current 0.3, max 0.4, under voltage events: 0, over voltage events: 0, power good: no
      Driver 0: ok, SG min/max not available
      Driver 1: ok, SG min/max not available
      Driver 2: ok, SG min/max not available
      Driver 3: ok, SG min/max not available
      Driver 4: ok, SG min/max not available
      Driver 5: ok, SG min/max not available
      Driver 6: ok, SG min/max not available
      Date/time: 2021-02-27 21:47:22
      Cache data hit count 53191622
      Slowest loop: 2.06ms; fastest: 0.06ms
      I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
      === Move ===
      Hiccups: 0, FreeDm: 169, MinFreeDm: 169, MaxWait: 0ms
      Bed compensation in use: none, comp offset 0.000
      === DDARing ===
      Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
      === Heat ===
      Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1
      === GCodes ===
      Segments left: 0
      Stack records: 1 allocated, 0 in use
      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
      serial is idle in state(s) 0
      aux is idle in state(s) 0
      daemon is idle in state(s) 0
      queue is idle in state(s) 0
      autopause is idle in state(s) 0
      Code queue is empty.
      === Network ===
      Slowest loop: 15.53ms; fastest: 0.00ms
      Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
      HTTP sessions: 1 of 8
      - WiFi -
      Network state is running
      WiFi module is connected to access point 
      Failed messages: pending 0, notready 0, noresp 0
      WiFi firmware version 1.23
      WiFi MAC address 84:0d:8e:b2:f6:52
      WiFi Vcc 3.33, reset reason Turned on by main processor
      WiFi flash size 4194304, free heap 24608
      WiFi IP address 192.168.0.101
      WiFi signal strength -36dBm, reconnections 0, sleep mode modem
      Socket states: 0 0 0 0 0 0 0 0
      
      posted in General Discussion
      Flex12undefined
      Flex12
    • Configuration of MPCNC with Duet Wifi2 & Duex2 on RRF3+

      Hello everyone

      I'm struggeling with setting up my MPCNC as an 3D Printer / laser-cutter-engraver.
      I'm using independent endstops.
      So far i was reading and implementing the changes to the Axles from the following website:

      • https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors#Section_Axis_levelling_using_endstops

      I begun with the project under RRF2+ then switched to RRF3+. I noted the changes that were to be undertaken.
      I also rearranged the drives different from the declaration:

      X axle -> Drive 5 & 2 Remark: Drive 5 is on the Duex2
      Y axle -> Drive 1 & 0
      Z axle -> Drive 3
      Extruder -> Drive 4

      my current G-Code who only allows me to drive one stepper motor at the time and also dont stops at the endstop & neither performs the homing correctly.
      i would be really happy if someone with a better understanding of RRF3+ than me could give me some hints what to look for.

      config.g :

      ; Drives
      M569 P2 S0                                                    ; physical drive 1 goes backwards
      M569 P5 S1                                                    ; physical drive 5 goes forwards
      M569 P1 S1                                                    ; physical drive 0 goes backwards
      M569 P0 S0                                                    ; physical drive 2 goes forwards
      M569 P4 S1                                                    ; physical drive 3 goes forwards
      M569 P3 S1                                                    ; physical drive 4 goes forwards
      M584 X5:2 Y1:0 Z3 E4                                          ; set drive mapping
      M350 X16:16 Y16:16 Z16 E16 I1                                 ; configure microstepping with interpolation
      M92 X100.00:100.00 Y100.00:100.00 Z100.00 E420.00             ; set steps per mm
      M566 X900.00:900.00 Y900.00:900.00 Z900.00 E900.00            ; set maximum instantaneous speed changes (mm/min)
      M203 X12000.00:12000.00 Y12000.00:12000.00 Z300 E12000.00	  ; set maximum speeds (mm/min)
      M201 X500.00:500.00 Y500.00:500.00 Z20.00 E500.00      		  ; set accelerations (mm/s^2)
      M906 X800:800 Y800:800 Z800 E800 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 X720 Y420 Z390 S0                                        ; set axis maxima
      
      ; Endstops
      M574 X2 S1 P"e0stop+e1stop"                                   ; configure active-high endstop for low end on X via pin xstop
      M574 Y1 S1 P"ystop+xstop"                                     ; configure active-high endstop for low end on Y via pin null
      
      ; Z-Probe
      M950 S0 C"duex.gp1"                                           ; create servo pin 0 for BLTouch
      M558 P9 C"zstop.in" H5 F120 T6000                             ; set Z probe type to bltouch and the dive height + speeds
      G31 P500 X0 Y0 Z2.5                                           ; set Z probe trigger value, offset and trigger height
      M557 X15:215 Y15:195 S20                                      ; define mesh grid
      

      homeall.g :

      G91                     ; relative positioning
      G1 H2 Z5 F6000          ; lift Z relative to current position
      G1 H1 X-725 Y-425 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-725 Y-425 F360  ; move slowly to X and Y axis endstops once more (second pass)
      G1 H1 Z-395 F360        ; move Z down stopping at the endstop
      G90                     ; absolute positioning
      G92 Z0                  ; set Z position to axis minimum (you may want to adjust this)
      
      ; Uncomment the following lines to lift Z after probing
      ;G91                    ; relative positioning
      ;G1 Z5 F100             ; lift Z relative to current position
      ;G90                    ; absolute positioning
      
      posted in General Discussion
      Flex12undefined
      Flex12