Updating RepRap Firmware config.g file

From RepRap
Revision as of 12:48, 9 March 2016 by PRZ (talk | contribs) (First issue)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The 'config.g' file

To configure a Duet board for a given machine, you have only to edit a file names 'config.g', located on the SD card in the /sys directory. This file is read and executed at startup, but the configuration can be modified later, either by executing a macro or entering commands in the web interface.

All configuration parameters are entered via 'G' and 'M' parameters, so the reprap firmware G-Code set is relatively extended. A config.g file could be reexecuted via the 'M999' command or an emergency stop.

It shall be noted that a malformed file may hang your board, and this apply to all macros executed by the config.g file.

The first configuration, which shall define name, password and net configuration, will probably be done while writing the file on the SD card, as it is not wise to start a machine with an unverified file, except if you can independantly supply logic and power on your board.

Any text editor could be used for modification.

After uploading the file in the SD card, inserting it in the board (while powered is shutdown) and connecting to the board, you have other solutions to modify the config.g file without removing the SD card.

Updating config.g

For the updating of the config.g file, you have two solutions if your board connect properly: - Using the incorporated editor in the web interface, but that doesn't work with all browsers, notably not with Microsoft browsers.

That editor is accessed in the "configuration" window, sub-panel "configuration file".

- Editing the config.g file and uploading it via FTP. This have the advantage that you always have an up to date copy of your configuration file in your computer. To log in FTP, you shall use the machine name as defined in the config.g file, for the user name any name e.g. 'whatever' and the password as defined in the config.g file (the leading 'P' is not part of the name nor password) You could be simultaneously be logged in FTP and in http (web interface). If you have difficulties to connect directly in FTP, connect first with the web interface, this helps FTP connection. There are many FTP software available on miscellaneous platform. On Windows, you could use the FTP function of the file viewer 'Total Commander'.

How to configure this file

There are a few links which may help to configure your board

How do I know that my config.g have been properly executed

Without a LED and if you do not succed in connecting your board, you can check that the config.g is properly executed by making 'music' with your steppers. You shall execute a file (or inserting commands it in the config file itself).