Welcome! Log In Create A New Profile

Advanced

Run commands at startup?

Posted by fotomas 
Run commands at startup?
January 10, 2015 07:13AM
I would like to have the Ormerod do home all and bed compensation at startup.
(Firmware RepRapFirmware-0.78za-dc42.bin)

I tried this at the end of config.g

...
...
M566 X500 Y500 Z30 E500 ; Minimum speeds mm/minute
M563 P1 D0 H1 ; Define tool 1
G10 P1 S40 R-273 ; Set tool 1 operating and standby temperatures
G28
G32


But nothing happens, is there a way this could be done?
Re: Run commands at startup?
January 10, 2015 07:43AM
Hi,
I use the setbed.g file, which I run after switch on. This file starts the bed heating, homes X and Y, sets the operating and standby temperatures, carries out the bed compensation routine and finally waits for the file to print.
This is my setbed.g file, just put it in your gcodes directory on the SD card:-

M140 S65 ; start heating the bed to 65C
M561 ; clear bed height transform
G91 ; relative positioning
G1 Z5 ; raise 5mm
G90 ; absolute positioning
G28 X0 Y0 ; home the X and Y axes
G1 X35 Y200 F5000 ; get the head out of the way so we can clean the bed
M116 ; wait for bed temp to stabilise
G10 P1 S195 R155 ; Set tool 1 operating and standby temperatures
G10 P2 S195 R155 ; Set tool 2 operating and standby temperatures
M116 P1 ; wait for tool 1 temp to stabilise
G32 ; execute bed plane measurement procedure
G91 ; relative positioning
G1 Z5 ; raise 5mm
G90 ; absolute positioning
G1 X30 Y50 F6000

Hope that helps


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Re: Run commands at startup?
January 10, 2015 07:53AM
Are you starting the setbed.g manually or is it run automatically?
Re: Run commands at startup?
January 10, 2015 08:05AM
Start manually from the web interface, Gcode Files tab


appjaws - Core XYUV Duet Ethernet Duex5
firmware 3.1.1 Web Interface 3.1.1
Ormerod 1-converted to laser engraver, Duet wifi
OpenSCAD version 2020.07
slic3r-1.3.0, Simplify3D 4.1.2, Cura-4.4.1
Re: Run commands at startup?
January 10, 2015 08:29AM
It is not generally a good idea to have any machine make movements at powerup without being specifically commanded. If the machine is inadvertently powered up (plugging in or switching on the wrong mains plug/socket, for example), the unexpected movement could cause damage or injury. Besides which bed homing and compensation is best done after the bed has reached its working temperature.

Dave
Re: Run commands at startup?
January 10, 2015 09:59AM
Good point.
Sorry, only registered users may post in this forum.

Click here to login