Add LED control and several other macros

This commit is contained in:
2021-06-03 22:09:42 +00:00
parent b86b210c9b
commit b0288dccc5
90 changed files with 19723 additions and 1 deletions

View File

@@ -0,0 +1 @@
M302 P1

View File

@@ -0,0 +1 @@
M564 S0 ; allow out of bounds movement

View File

@@ -0,0 +1 @@
M564 H0

View File

@@ -0,0 +1 @@
M562

View File

@@ -0,0 +1 @@
M302 P0

View File

@@ -0,0 +1 @@
M564 S1 ; prevent out of bounds movement

View File

@@ -0,0 +1 @@
M564 H1

View File

@@ -0,0 +1 @@
M98 P"config.g"

View File

@@ -0,0 +1 @@
M84 E0:1:2:3

View File

@@ -0,0 +1,12 @@
; Commissioning
; During commissioning, you can test the X and Y motors independently by using the S2 modifier on the G1 command, like this:
;
M291 S3 R"Are you sure?" P"Commissioning: Testing X and Y motors."
M291 S3 R"Ensure clearance." P"This will move the motors in all directions."
M291 S1 T10 R"Testing..." P"Motors should move 10mm back and forth."
G91 ; relative mode
G1 S2 X10 ; move the X motor forward 10mm
G1 S2 X-10 ; move the X motor back 10mm
G1 S2 Y10 ; move the Y motor forward 10mm
G1 S2 Y-10 ; move the Y motor back 10mm
G90 ; back to absolute mode

View File

@@ -0,0 +1 @@
M84

View File

@@ -0,0 +1,3 @@
M291 S3 R"Are you sure?" P"This will reset motor currents to max."
M906 X2000 Y2000 Z2000 E1400 I20
M906

View File

@@ -0,0 +1,4 @@
; Calls M39 to get details of inserted SD Card.
M117 "Check Console for SD Card Details"
M39
M122 P104

View File

@@ -0,0 +1,6 @@
; SystemDump.g
;
; Dumps a bunch of system information to the console with M122.
;
M291 S3 R"Are you sure?" P"This will run M122 and report system status to console."
M122

View File

@@ -0,0 +1,11 @@
; Configure Access Point Mode
;
M291 R"Create Duet Access Point? Y/N" P"This will create duetwifi-AP SSID to connect to." S3 T10
M552 S0 ; Disable network module
G4 S5 ; wait 5 seconds
M589 S"duetwifi-AP" P"duetwifi" I192.168.1.1 C1 ; Add duet wifi SSID to remembered networks list
G4 S5 ; wait 5 seconds
M552 S2 ; reenable wifi module
M291 R"duetwifi-AP SSID added." P"SSID password is duetwifi."

View File

@@ -0,0 +1,11 @@
; Add default wifi network
;
M291 R"Add default WIFI network? Y/N" P"This will add duetwifi access point." S3 T10
M552 S0 ; Disable network module
G4 S5 ; wait 5 seconds
M587 S"NETWORKNAME" P"PASSWORD" ; Add duet wifi SSID to remembered networks list
G4 S5 ; wait 5 seconds
M552 S1 ; reenable wifi module
M291 R"duetwifi SSID added." P"Check console to verify IP address."

View File

@@ -0,0 +1,9 @@
; Clear all wifi networks
;
M291 R"Clear WIFI networks? Y/N" P"Caution. New network must be added." S3 T10
M552 S0 ; Disable network module
G4 S5 ; wait 5 seconds
M588 S"*" ; Clear all saved wifi networls
M291 R"WIFI networks forgotten." P"You must add a new WIFI network."

View File

@@ -0,0 +1,9 @@
; Use in case wifi module is not running. (Blue light off)
;
M291 R"Reset wifi module? Y/N" P"Caution. Will cause pause in print" S3 T10
M552 S0 ; Disable network module
G4 S5 ; wait 5 seconds
M552 S1 ; Enable network module
M291 P"Wifi module reset. Check console or DWC."