not running pause.g, start, resume,...
-
Hi,
My duet doesn't run macro start.g, resume.g, pause.g,....
I configure my end-stop, motor,... in the file runonce.g
I'm running the 3.4 beta5
My config :
; General preferences
G90 ; send absolute coordinates...
M550 P"Laser"
M452 C"out9" R255 S1 F200 ;; Drives
M92 X320 Y320 Z160 ; set steps per mm
M566 X250 Y250 Z50 ; set maximum instantaneous speed changes (mm/min)
M203 X9000 Y9000 Z1500 ; set maximum speeds (mm/min)
M201 X250 Y250 Z50 ; set accelerations (mm/s^2); Axis Limits
M208 X0:1030 Y0:505 Z0:550; Endstops
; Custom settings are not defined
M375;Input
M950 J10 C"!10.io0.in" ; Detection
M581 T10 P10 S0 R0 ; Trigger10.gM950 J11 C"!20.io0.in" ; Detection
M581 T11 P11 S0 R0 ; Trigger11.gM150 X0 ; set LED type to NeoPixel and set SPI frequency to 3MHz
; Other Settings
M564 S1 H1 ; Disable jog commands when not homed;;Miscellaneous ; load saved parameters from non-volatile memory
M911 S22.0 R22.5 P"G91 G1 Z3 F1000" ; Configure power loss resume
M501runonce.g :
M552 P192.168.1.100 S1 ; Enable Networking)
M553 P255.255.0.0
M586 P0 S1 ; Enable HTTP)
M586 P1 S0 ; Disable FTP)
M586 P2 S0 ; Disable Telnet)M550 P"No Tool - Démarrage"
; Drives
G4 S5
M569 P10.0 S0 R0 T5:2.5:5:0 ; Driver 10.0 Axe X )
M569 P20.0 S0 R0 T5:2.5:5:0 ; Driver 20.0 Axe Y - Gauche )
M569 P25.0 S0 R0 T5:2.5:5:0 ; Driver 25.0 Axe V - Droit)
M569 P30.0 S1 R1 T5:2.5:5:0 ; Driver 30.0 Axe Z - Gauche)
M569 P35.0 S1 R1 T5:2.5:5:0 ; Driver 35.0 Axe W - Droit )
G4 S5; set drive mapping
M584 X10.0 Y20.0:25.0 Z30.0:35.0 V25.0 W35.0M92 X320 Y320 Z160 U320 W160 ; set steps per mm)
M566 X450 Y450 Z25 U450 W50 ; set maximum instantaneous speed changes mm/min))
M203 X12000 Y12000 Z3000 U12000 W3000 ; set maximum speeds (mm/min))
M201 X350 Y350 Z25 U350 W50 ; set accelerations (mm/s^2))
M84 S0 ; Set idle timeout); Axis Limits
M208 X0:1030 Y0:515 Z0:550 V0:515 W0:550
M671 X0:1040 Y250:250 ; Défini la position des vis à bille); Endstops
M574 X2 S1 P"!10.io2.in" ; Fin de course axe X)
M574 Y2 S1 P"!20.io2.in" ; Fin de course axe Y )
M574 Z2 S1 P"!35.io1.in" ; Fin de course axe Z)
M574 V2 S1 P"!25.io0.in" ; Fin de course axe V)
M574 W2 S1 P"!30.io2.in" ; Fin de course axe W);Input
M950 J0 C"io0.in" ; Arret d'urgence)
M581 T0 P0 S1 R0 ; Trigger0.g --> M112 Arret d'urgence)M950 J15 C"35.io0.in" ; Défaut Moteur
M581 T0 P15 S0 R0M950 J2 C"io1.in" ; Pause / Play trigger 2.g)
M581 T2 P2 S0 R0 ; Trigger2.g --> M25 Pause / Play)M950 J3 C"io2.in" ; Pause / Stop trigger 3.g)
M581 T3 P3 S0 R0 ; Trigger3.g Stop)M950 J4 C"25.io2.in" ; Ouverture porte)
M581 T4 P4 S0 R0 ; Trigger4.g Door)M950 J5 C"25.io1.in" ; Porte ouverte
M581 T5 P5 S0 R0 ; Trigger5.g Door)M950 J10 C"!10.io0.in" ; Detection Outils
M581 T10 P10 S1 R0 ; Trigger10.gM950 J11 C"!20.io0.in" ; Detection
M581 T11 P11 S1 R0 ; Trigger11.gM950 J12 C"!30.io0.in" ; Detection
M581 T12 P12 S1 R0 ; Trigger12.g );Output
M950 P0 C"20.out0" ; Verrouillage porte)
M150 X0 ; set LED type to NeoPixel and set SPI frequency to 3MHz)M98 P/macros/Tools/01_Detection.g
-
@tom33 Using runonce.g for config purposes is a bad idea unless you put in M587 (configure WiFi network) because it is deleted when it has been executed.
pause.g and resume.g are only executed if your axes are homed but AFAIR it should not matter for start.g. Is that the case on your setup? Also, please upgrade to 3.4 beta 6 first and check if the problem persists.
-
@chrishamm Thanks, my U and W axis were not initialized.
Hi can switch between differents configurations with my machine (due to different toolhead laser, 3D printer). What is the best way to do this ?
For exemple I would like a config for all the machine specification (E/S, driver, trigger,...) and a different configurations for the different tool head.
Now I have the runonce and one folder by toolhead
-
@tom33 said in not running pause.g, start, resume,...:
Hi can switch between differents configurations with my machine (due to different toolhead laser, 3D printer). What is the best way to do this ?
https://duet3d.dozuki.com/Wiki/M505
This will let you have different config folders with their own files and macros and let you switch between them. Each could be configured as a different role.