Hello everyone,
Just bumping this up—can anyone help with my Y-axis homing process issue? Any guidance would be greatly appreciated!
Thank you!
Hello everyone,
Just bumping this up—can anyone help with my Y-axis homing process issue? Any guidance would be greatly appreciated!
Thank you!
Hello everyone,
I need some advice and help regarding the homing process of the Y-axis for my 3D printer. My setup involves two independent Y-motors, each with its own end stop for homing. Here’s a brief overview of the current homing process:
This setup works well for me, but I would like to enhance it by adding a feature that reports if the adjustment made by the second motor is larger than 0.5 mm. This would help in identifying when the motion system may require adjustment.
Here is the script I have so far. The commented-out portion is my attempt to calculate the deviation (dd
), but it isn’t working correctly.
if state.status == "off"
M80 ; Turn on power
G4 S3
M98 P"0:/sys/led/homeall.g"
M98 P"tfree3.g"
T0 P0
M280 P0 S0 ; Take probe holder out of the way
M204 T2000
;=== Move X & U ===
G91
G1 H2 Z20 F18000
G1 H2 X10 U-10 F18000
;=== Home with Y End Stops ===
G90
G1 H1 Y-500 F3000
G91
G1 Y5 F1200
G1 H1 Y-10 F240
G92 Y0
G4 P260
var ll = move.axes[1].machinePosition
;=== Home with Right end stop ===
M584 Y0.1
M574 Y1 S1 P"io1.in"
G1 H4 Y-5 F240
;=== Home with Left end stop ===
M584 Y0.4
M574 Y1 S1 P"io2.in"
G1 H4 Y-5 F240
G4 P260
var rr = move.axes[1].machinePosition
var dd = var.rr - var.ll
;if abs(var.dd) > 0.5
;echo "RR is "^{var.rr}^" mm"
;echo "LL is "^{var.ll}^" mm"
;echo "DD is "^{var.dd}^" mm"
G92 Y-999
M584 Y0.1:0.4
M574 Y1 S1 P"io1.in+io2.in" ; configure endstop
G90
G1 Y150 F18000
; Lower Z
if !exists(param.L)
G91
G1 H2 Z-20 F18000
G90
; Reset parameters
M400 ; make sure everything has stopped before we make changes
G90 ; absolute positioning
M913 Y100 ; return current to 100%
M204 T5000 ; return the accelerations
Thank you,
Nazar
@dc42, thank you for your prompt reply, I highly apreciate it!
Macro runs automatically after machine’s restart
Printer is now online.
Done!
WiFi is disabled.
Executing runonce.g...
Network stopped
Error: Failed to configure access point parameters: SPI timeout
Error: Failed to configure access point parameters: SPI timeout
Turn off the current WiFi mode before selecting a new one
Done!
Error: Cannot delete file 0:/sys/runonce.g because it is open
Error: Cannot delete file 0:/sys/runonce.g because it is open
RepRapFirmware for Duet 3 MB6HC is up and running.
Calling Macro through Pronterface
>>> M98 P"0:/sys/networktest.g"
SENDING:M98 P"0:/SYS/NETWORKTEST.G"
WiFi module stopped
Error: Failed to configure access point parameters: SPI timeout
Error: Failed to configure access point parameters: SPI timeout
Turn off the current WiFi mode before selecting a new one
- Connection was not established -
WiFi module was automatically switched to Access Point Mode
Send M292 to continue
Calling Macro through Pronterface but before turning off WiFi and Ethernet
>>> m552i0s0
SENDING:M552I0S0
>>> m552i1s-1
SENDING:M552I1S-1
WiFi module stopped
>>> M98 P"0:/sys/networktest.g"
SENDING:M98 P"0:/SYS/NETWORKTEST.G"
Error: Failed to configure access point parameters: SPI timeout
Error: Failed to configure access point parameters: SPI timeout
Turn off the current WiFi mode before selecting a new one
- Connection was not established -
WiFi module was automatically switched to Access Point Mode
Send M292 to continue
Disconnected.
Unfortunately neither worked.
@droftarts Thank you for your reply and trying to help!
Here is a console screenshot from Pronterface:
All responses from turning machine ON. Unfortunately we can see that macro doesn't work.
Disconnected.
Connecting...
Printer is now online.
HTTP is enabled on port 80
FTP is disabled
TELNET is disabled
Done!
WiFi is disabled.
Executing runonce.g...
Network stopped
Error: Failed to configure access point parameters: SPI timeout
Error: Failed to configure access point parameters: SPI timeout
Turn off the current WiFi mode before selecting a new one
Done!
Error: Cannot delete file 0:/sys/runonce.g because it is open
Error: Cannot delete file 0:/sys/runonce.g because it is open
RepRapFirmware for Duet 3 MB6HC is up and running.
>>> m552i0
SENDING:M552I0
Ethernet is disabled, configured IP address: 0.0.0.0, actual IP address: 0.0.0.0
>>> m552i1
SENDING:M552I1
WiFi module is being started
>>> m552i1
SENDING:M552I1
WiFi module is being started
Sending the same commands manually through Pronterface:
SENDING:M552I0
Ethernet is disabled, configured IP address: 0.0.0.0, actual IP address: 0.0.0.0
>>> m552i1
SENDING:M552I1
WiFi module is being started
>>> m552i1
SENDING:M552I1
WiFi module is being started
>>> M552 I0 S0
SENDING:M552 I0 S0
>>> M552 I1 S-1
SENDING:M552 I1 S-1
WiFi module stopped
>>> M552 I1 S0
SENDING:M552 I1 S0
WiFi module started
>>> M589 S"Printer" P"1234567890" I192.168.0.1
SENDING:M589 S"Printer" P"1234567890" I192.168.0.1
>>> M552 I1 S2
SENDING:M552 I1 S2
WiFi module is providing access point Printer, IP address 192.168.0.1
Sending commands manually works.
Macro that is used to test the network:
;echo >"0:/macros/report.txt" "Start"
var it = 0
;while network.interfaces[0].actualIP = "0.0.0.0" && iterations <= 30
while network.interfaces[0].actualIP = "0.0.0.0" && network.interfaces[1].actualIP = "0.0.0.0" && iterations < 30
set var.it = var.it + 1
;echo >>"0:/macros/report.txt" "1st Loop Iteration: "^var.it
G4 S1
;echo >>"0:/macros/report.txt" "1st Loop Out"
;if network.interfaces[0].actualIP != "0.0.0.0"
if network.interfaces[0].actualIP != "0.0.0.0" || network.interfaces[1].actualIP != "0.0.0.0"
;echo >>"0:/macros/report.txt" "IF - Network Connected"
M99
abort
else
;echo >>"0:/macros/report.txt" "Else - Network not Connected"
M98 P"0:/sys/led/statusoff.g"
M98 P"0:/sys/led/dimmwhite.g"
M98 P"0:/sys/led/red.g"
;echo >>"0:/macros/report.txt" " "
;echo >>"0:/macros/report.txt" "After LED"
;echo >>"0:/macros/report.txt" " "
M552 I0 S0 ; disable Ethernet (no pause after needed)
;echo >>"0:/macros/report.txt" "Result: "^result
M552 I1 S-1 ; turn off WiFi
;echo >>"0:/macros/report.txt" "Result: "^result
G4 S2 ; pause
M552 I1 S0 ; turn on WiFi to idle
;echo >>"0:/macros/report.txt" "Result: "^result
G4 S2 ; pause
M589 S"Printer" P"1234567890" I192.168.0.1 ; configure AP
;echo >>"0:/macros/report.txt" "Result: "^result
G4 S2 ; pause
M552 I1 S2 ; turn on WiFi in AP mode
;echo >>"0:/macros/report.txt" "Result: "^result
M291 S2 R"Connection was not established" P"WiFi module was automatically switched to Access Point Mode"
Thank you for all the help! I hope to resolve this ASAP.
Dear @droftarts,
Thank you for your reply and advice regarding the M552 commands order, I have changed the script accordingly and rerun the test. Unfortunately, it didn't work, so I have added echo to see where it failed. It failed at the same place as before at the M589 command line.
Thank you for your advice regarding the wait time to obtain the IP address, I set it to 0.1 sec on purpose to speed up the process of testing.
echo >"0:/macros/report.txt" "Start"
var it = 0
while network.interfaces[0].actualIP = "0.0.0.0" && iterations <= 30
set var.it = var.it + 1
echo >>"0:/macros/report.txt" "1st Loop Iteration: "^var.it
G4 S.1
echo >>"0:/macros/report.txt" "1st Loop Out"
if network.interfaces[0].actualIP != "0.0.0.0"
echo >>"0:/macros/report.txt" "IF - Network Connected"
M99
abort
else
echo >>"0:/macros/report.txt" "Else - Network not Connected"
M98 P"0:/sys/led/statusoff.g"
M98 P"0:/sys/led/dimmwhite.g"
M98 P"0:/sys/led/red.g"
echo >>"0:/macros/report.txt" " "
echo >>"0:/macros/report.txt" "After LED"
echo >>"0:/macros/report.txt" " "
M552 I0 S0 ; disable Ethernet (no pause after needed)
echo >>"0:/macros/report.txt" "Result: "^result
M552 I1 S-1 ; turn off WiFi
echo >>"0:/macros/report.txt" "Result: "^result
G4 S2 ; pause
M552 I1 S0 ; turn on WiFi to idle
echo >>"0:/macros/report.txt" "Result: "^result
G4 S2 ; pause
M589 S"Printer" P"1234567890" I192.168.0.1 ; configure AP
echo >>"0:/macros/report.txt" "Result: "^result
G4 S2 ; pause
M552 I1 S2 ; turn on WiFi in AP mode
echo >>"0:/macros/report.txt" "Result: "^result
M291 S2 R"Connection was not established" P"WiFi module was automatically switched to Access Point Mode"
Start
1st Loop Iteration: 1
1st Loop Iteration: 2
1st Loop Iteration: 3
1st Loop Iteration: 4
1st Loop Iteration: 5
1st Loop Iteration: 6
1st Loop Iteration: 7
1st Loop Iteration: 8
1st Loop Iteration: 9
1st Loop Iteration: 10
1st Loop Iteration: 11
1st Loop Iteration: 12
1st Loop Iteration: 13
1st Loop Iteration: 14
1st Loop Iteration: 15
1st Loop Iteration: 16
1st Loop Iteration: 17
1st Loop Iteration: 18
1st Loop Iteration: 19
1st Loop Iteration: 20
1st Loop Iteration: 21
1st Loop Iteration: 22
1st Loop Iteration: 23
1st Loop Iteration: 24
1st Loop Iteration: 25
1st Loop Iteration: 26
1st Loop Iteration: 27
1st Loop Iteration: 28
1st Loop Iteration: 29
1st Loop Iteration: 30
1st Loop Iteration: 31
1st Loop Out
Else - Network not Connected
After LED
Result: 0
Result: 0
Result: 0
Result: 2
Result: 0
Dear Tony,
Thank you for your reply, I have added echo commands to the script and ran it as a separate macro from DWC, the machine was not able to send the M589 command, the WiFi module did not switch to AP mode as was commanded and I have manually restarted it.
During the test machine was connected through WiFi and I was testing network.interfaces[0] (Ethernet)
Please let me know if there is any other test I should perform.
Thank you for your help!
The Macro:
echo >"0:/macros/report.txt" "Start"
var it = 0
;while network.interfaces[0].actualIP = "0.0.0.0" && network.interfaces[1].actualIP = "0.0.0.0" && iterations < 30
while network.interfaces[0].actualIP = "0.0.0.0" && iterations <= 30
set var.it = var.it + 1
echo >>"0:/macros/report.txt" "1st Loop Iteration: "^var.it
G4 S.1
echo >>"0:/macros/report.txt" "1st Loop Out"
;if network.interfaces[0].actualIP != "0.0.0.0" || network.interfaces[1].actualIP != "0.0.0.0"
if network.interfaces[0].actualIP != "0.0.0.0"
echo >>"0:/macros/report.txt" "IF - Network Connected"
M99
abort
else
echo >>"0:/macros/report.txt" "Else - Network not Connected"
echo >>"0:/macros/report.txt" " "
echo >>"0:/macros/report.txt" "After IF"
echo >>"0:/macros/report.txt" " "
M98 P"0:/sys/led/statusoff.g"
M98 P"0:/sys/led/dimmwhite.g"
M98 P"0:/sys/led/red.g"
M552 I1 S-1
echo >>"0:/macros/report.txt" "Line 35 "^result
M552 I1 S0
echo >>"0:/macros/report.txt" "Line 37 "^result
M552 I1 S2
echo >>"0:/macros/report.txt" "Line 39 "^result
M552 I0 S0
echo >>"0:/macros/report.txt" "Line 44 "^result
G4 S1
M552 I1 S-1
echo >>"0:/macros/report.txt" "Line 48 "^result
G4 S2
M552 I1 S0
echo >>"0:/macros/report.txt" "Line 52 "^result
G4 S1
M589 S"Printer" P"1234567890" I192.168.0.1
echo >>"0:/macros/report.txt" "Line 56 "^result
G4 S1
M552 I1 S2
echo >>"0:/macros/report.txt" "Line 60 "^result
M291 S2 R"Connection was not established" P"WiFi module was automatically switched to Access Point Mode"
report.txt:
Start
1st Loop Iteration: 1
1st Loop Iteration: 2
1st Loop Iteration: 3
1st Loop Iteration: 4
1st Loop Iteration: 5
1st Loop Iteration: 6
1st Loop Iteration: 7
1st Loop Iteration: 8
1st Loop Iteration: 9
1st Loop Iteration: 10
1st Loop Iteration: 11
1st Loop Iteration: 12
1st Loop Iteration: 13
1st Loop Iteration: 14
1st Loop Iteration: 15
1st Loop Iteration: 16
1st Loop Iteration: 17
1st Loop Iteration: 18
1st Loop Iteration: 19
1st Loop Iteration: 20
1st Loop Iteration: 21
1st Loop Iteration: 22
1st Loop Iteration: 23
1st Loop Iteration: 24
1st Loop Iteration: 25
1st Loop Iteration: 26
1st Loop Iteration: 27
1st Loop Iteration: 28
1st Loop Iteration: 29
1st Loop Iteration: 30
1st Loop Iteration: 31
1st Loop Out
Else - Network not Connected
After IF
Line 35 0
Line 37 0
Line 39 0
Line 44 0
Line 48 0
Line 52 0
Line 56 2
Line 60 0
Hello,
I am hoping to get some assistance with creating a macro for my Duet 3 mainboard. The macro should do the following:
This Macro is called from config.g through runonce.g:
echo >"0:/sys/runonce.g" "M98 P""0:/sys/networktest.g"""
However, when attempting to run this macro, I am encountering an error message that says "SPI timeout".
I would greatly appreciate any help or guidance on how to properly write this macro and resolve the SPI timeout error at line 17 (M589).
Thank you
while network.interfaces[0].actualIP = "0.0.0.0" && network.interfaces[1].actualIP = "0.0.0.0" && iterations < 30
G4 S1
if network.interfaces[0].actualIP != "0.0.0.0" || network.interfaces[1].actualIP != "0.0.0.0"
M99
abort
M552 I0 S0
G4 S1
M552 I1 S-1
G4 S2
M552 I1 S0
G4 S1
M589 S"Printer" P"1234567890" I192.168.0.1
G4 S1
M552 I1 S2
M291 S2 R"Connection was not established" P"WiFi module was automatically switched to Access Point Mode"
Hello,
I have been having issues with my IDEX machine when I print using both heads (multi-materials)
The problem is that the Z position is not consistent. I understand that there must be something wrong with my tool change macros, but I just can't find what. I would appreciate the help.
tpre1.g
M98 P"0:/user/tooloffset.g"
tpost0.g
;M204 T5000
; Lower Z to 10mm if lower than that for safety
if move.axes[2].machinePosition < 10 && state.status != "processing" && state.status != "pausing" && state.status != "resuming"
G90
G1 F18000 Z10
G90
G1 Y-70 X-999 U999 F18000
M98 P"0:/user/toolchangeretraction.g" E1
G91
G1 X30 F12000
G1 X-30
G1 X30
G1 X-30
G90
M106 R2
G1 R2 Z0
;M204 T5000
tpost1.g
;M204 T5000
; Lower Z to 10mm if lower than that for safety
if move.axes[2].machinePosition < 10 && state.status != "processing" && state.status != "pausing" && state.status != "resuming"
G90
G1 F18000 Z10
G90
G1 Y-70 X-999 U999 F18000
M98 P"0:/user/toolchangeretraction.g" E1
G91
G1 X-30 F12000
G1 X30
G1 X-30
G1 X30
G90
M106 R2
G1 R2 Z0
;M204 T5000
tfree0.g and tfree1.g are identical
G90
;M204 T2000
M98 P"0:/user/toolchangeretraction.g" R1
G60 S2
M106 S0
; Move Z to 10mm if lower than that for safety
if move.axes[2].machinePosition < 10 && state.status != "processing" && state.status != "pausing" && state.status != "resuming"
G90
G1 F18000 Z10
G90
G1 X-999 U999 F18000
;M204 T5000
0:/user/tooloffset.g
; Set tool offsets
G10 P1 U0.4166641 Y-2.2636795 Z0
0:/user/toolchangeretraction.g
; ToolChange Retraction Disabled
Hello,
I would like to revisit a topic that was raised and closed back in 2016. I would like to clarify about the current support for HTTPS.
Upon reviewing the documentation, it's indicated that there is an option to select between HTTP and HTTPS protocols. However, despite my efforts, I've found myself unable to switch to HTTPS. Could anyone provide clarity on whether this functionality is now fully supported and, if so, guide me on how to activate HTTPS for our operations?
Additionally, there's mention of TLS support. The documentation hints at this feature not being fully implemented yet. Could someone update me on the current status of TLS support as for now?
I appreciate any updates you can provide regarding HTTPS and TLS support. Thank you.
Kind regards,
Nazar
Hello,
I have an old Duet 6HC V1.01 and I purchased your WiFi module and then discovered that it is only compatible with newer boards. Since the main processor is the same I suppose it is relatively easy to wire it to alternative pins and configure custom firmware, isn't it?
I would greatly appreciate any guidance or insights from the community on how to approach this.
Thank you in advance for your time and assistance.