User Tools

Site Tools


extended_g-code_table

Extended G-code Table

Standard Marlin compatible G-codes can be found at the RepRap wiki: G-code.
Not all standard G-code are supported by the MP Select Mini.
See Sending G-code for more information on how to send the commands below.

Command Description
M550 Get/Set SSID
M551 Get/Set Password
M552 Display IP address
M555 P1 Reset WiFi interface (reboots WiFi module)
M556 Display network status
M560 Update firmware using update.bin in microSD card
M561 Change thermistor type (Hotend and/or Heat bed)
M562 Invert stepper motor direction
M563 Enable faster WiFi file uploads
M564 Download gcode from remote server
M565 Print cached file cache.gc
M566 Rename cache.gc

*Some of the above commands may not work with firmware versions 22.39 & older. They have been implemented in 26.42 & higher. M561 B - Change beat bed thermistor type is included in motion firmware version 27 & higher.


Example Uses

See Sending G-code for more information on how to send the commands below.

M550 & M551 - Connect to WiFi

M550 SSID         ;SSID = Name of WiFi network (case sensitive)
M551 PASSWORD     ;PASSWORD = Password for WiFi network (case sensitive)

M561 - Change thermistor type

Type P0 = Default or EPCOS 100K
Type P1 = 104GT-2 or 104NT-4-R025H42G (may report as 104GT)
Motion Controller firmware version 26 must be installed to change the hotend thermistor type.
Motion Controller firmware version 27 must be installed to change the bed thermistor type.

M561 - Hotend thermistor type

M561 P0         ;Change to Default or EPCOS 100K
M500            ;Save EEPROM
Reboot printer to complete the process
             Or
M561 P1         ;Change to 104GT-2 or 104NT-4-R025H42G (may report as 104GT)
M500            ;Save EEPROM
Reboot printer to complete the process

M561 - Heat bed thermistor type

M561 B P0       ;Change to Default or EPCOS 100K
M500            ;Save EEPROM
Reboot printer to complete the process
             Or
M561 B P1       ;Change to 104GT-2 or 104NT-4-R025H42G (may report as 104GT)
M500            ;Save EEPROM
Reboot printer to complete the process

Type P0 = Default or EPCOS 100K
EPCOS 100K Thermistors B57540G0104F000, B57560G104F, and B57560G1104F have similar Beta values compared to the stocks Beta value of 3950. Because of this you can use B57540G0104F000, B57560G104F, or B57560G1104F as replacement thermistors and use the stock thermistor setting of Type P0.

Type P1 = 104GT-2 or 104NT-4-R025H42G
Characteristics of 104GT-2 and 104NT-4-R025H42G are nearly identical so Type P1 can be used for either thermistor.


M562 - Invert Stepper Motor Direction

M562 E          ;Inverts Extruder motor direction
M562 X          ;Inverts X-Axis motor direction
M562 Y          ;Inverts Y-Axis motor direction
M562 Z          ;Inverts Z-Axis motor direction
M500            ;Saves changes to EEPROM
Reboot printer to complete the process

M563 - Enable faster WiFi file uploads

M563 S6         ;S value can be 2-6

Web Browser Address Bar

http://PRINTERS_IP_ADDRESS/set?code=M563 S6

http://192.168.20.113/set?code=M563 S6

This setting doesn't persist after the printer has been powered off, i.e., “M563 S6” must be sent at least once after turning the printer on. I gather “M500” doesn't save changes that are made to settings that are related to the UI Controller firmware.


M564 - Download file from remote server

M564 ip_address_of_file_server/file.gcode    ;Download file.gcode from server
M564 123.45.67.89/cat.gcode                  ;Download cat.gcode from 123.45.67.89

M565 - Print cache file cache.gc

M565

Or using a web browsers URL bar

http://PRINTERS_IP_ADDRESS/set?code=M565 Example:

http://192.168.1.120/set?code=M565

M566 - Rename cache file

M21                    ;Initialize SD card 
M20                    ;List SD card 
M566 new_file_name.gc  ;renames cache.gc to a user given file name
M20                    ;List SD card (to verify file was renamed)
extended_g-code_table.txt · Last modified: 2017/04/10 11:34 by Matthew Upp