This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
extended_g-code_table [2017/07/03 09:21] Matthew Upp |
extended_g-code_table [2019/11/30 04:03] (current) Matthew Upp |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | ====== Extended G-code Table ====== | + | ====== Custom G-code Commands Table ====== |
<wrap lo>//Standard Marlin compatible G-codes can be found at the [[http://reprap.org/wiki/G-code|RepRap wiki: G-code]]. \\ | <wrap lo>//Standard Marlin compatible G-codes can be found at the [[http://reprap.org/wiki/G-code|RepRap wiki: G-code]]. \\ | ||
Not all standard G-code are supported by the MP Select Mini.//</wrap> \\ | Not all standard G-code are supported by the MP Select Mini.//</wrap> \\ | ||
See [[g-code#sending_g-code|Sending G-code]] for more information on how to send the commands below. | See [[g-code#sending_g-code|Sending G-code]] for more information on how to send the commands below. | ||
- | ^ Command ^ Description ^ | + | |
- | | [[extended_g-code_table#m550_m551_-_connect_to_wifi|M550]] | Get/Set SSID | | + | |
- | | [[extended_g-code_table#m550_m551_-_connect_to_wifi|M551]] | Get/Set Password | | + | ^ Command ^ Description ^ |
- | | M552 | Display IP address | | + | | [[extended_g-code_table#m550_m551_-_connect_to_wifi|M550]] | Get/Set SSID | |
- | | M555 P1 | Reset WiFi interface (reboots WiFi module) | | + | | [[extended_g-code_table#m550_m551_-_connect_to_wifi|M551]] | Get/Set Password | |
- | | M556 | Display network status | | + | | M552 | Display IP address | |
- | | [[motion_controller#g-code_-_m560|M560]] | Update firmware using update.bin in microSD card | | + | | M555 P1 | Reset WiFi interface (reboots WiFi module) | |
- | | [[extended_g-code_table#m561_-_change_thermistor_type|M561]] | Change thermistor type (Hotend and/or Heat bed) | | + | | M556 | Display network status | |
- | | [[extended_g-code_table#m562_-_invert_stepper_motor_direction|M562]] | Invert stepper motor direction | | + | | [[firmware:motion_controller#g-code_-_m560|M560]] | Update firmware using update.bin in microSD card | |
- | | [[extended_g-code_table#m563_-_enable faster_wifi_file_uploads|M563]] | Enable faster WiFi file uploads | | + | | [[extended_g-code_table#m561_-_change_thermistor_type|M561]] | Change thermistor type (Hotend and/or Heat bed) | |
- | | [[extended_g-code_table#m564_-_download_file_from remote_server|M564]] | Download gcode from remote server | | + | | [[extended_g-code_table#m562_-_invert_stepper_motor_direction|M562]] | Invert stepper motor direction | |
- | | [[extended_g-code_table#m565_-_print_cache_file_cache.gc|M565]] | Print cached file cache.gc | | + | | [[extended_g-code_table#m563_-_enable faster_wifi_file_uploads|M563]] | Enable faster WiFi file uploads<color red>*</color> | |
- | | [[extended_g-code_table#m566_-_rename_cache_file|M566]] | Rename cache.gc | | + | | [[extended_g-code_table#m564_-_download_file_from remote_server|M564]] | Download gcode from remote server | |
+ | | [[extended_g-code_table#m565_-_print_cache_file_cache.gc|M565]] | Print cached file cache.gc | | ||
+ | | [[extended_g-code_table#m566_-_rename_cache_file|M566]] | Rename cache.gc | | ||
+ | | M600 | Pause/Resume | | ||
*//Some of the above commands may not work with firmware versions 22.39 & older. \\ | *//Some of the above commands may not work with firmware versions 22.39 & older. \\ | ||
They have been implemented in 26.42 & higher. \\ | They have been implemented in 26.42 & higher. \\ | ||
Line 38: | Line 41: | ||
---- | ---- | ||
- | ===== M561 - Change thermistor type ===== | + | ===== M561 - Change Thermistor Type ===== |
- | <wrap lo>[[thermistors|Thermistor information and replacement options can be found here.]]</wrap> \\ | + | <wrap lo>[[parts:thermistors|Thermistor information and replacement options can be found here.]]</wrap> \\ |
//Type **P0** = Default or EPCOS 100K// \\ | //Type **P0** = Default or EPCOS 100K// \\ | ||
//Type **P1** = 104GT-2 or 104NT-4-R025H42G (may report as 104GT) // \\ | //Type **P1** = 104GT-2 or 104NT-4-R025H42G (may report as 104GT) // \\ | ||
Line 45: | Line 48: | ||
<wrap lo><wrap em>Motion Controller firmware version 27 must be installed to change the bed thermistor type.</wrap></wrap> | <wrap lo><wrap em>Motion Controller firmware version 27 must be installed to change the bed thermistor type.</wrap></wrap> | ||
- | ==== M561 - Hotend thermistor type ==== | + | ==== M561 - Change Hotend Thermistor Type ==== |
- | <code> | + | === Default === |
- | M561 P0 ;Change to Default or EPCOS 100K | + | <file gcode change_hotend_thermistor_type_default.gcode> |
- | M500 ;Save EEPROM | + | ; G-Code generated by Matthew Upp |
- | Reboot printer to complete the process | + | ; Change thermistor type to Default or EPCOS 100K and saves to EEPROM |
- | Or | + | ; Please add a blank line to the end of the file while editing. DokuWiki Code Blocks deletes blank lines at the end of the block but g-code files should end with a single blank line at the end. |
- | M561 P1 ;Change to 104GT-2 or 104NT-4-R025H42G (may report as 104GT) | + | ; |
- | M500 ;Save EEPROM | + | M561 P0 ; Change to Default or EPCOS 100K |
- | Reboot printer to complete the process | + | M500 ; Save to EEPROM |
- | </code> | + | ; Reboot the printer to complete the process |
+ | </file> | ||
+ | |||
+ | === 104GT-2 === | ||
+ | <file gcode change_hotend_thermistor_type_104gt-2.gcode> | ||
+ | ; G-Code generated by Matthew Upp | ||
+ | ; Change thermistor type to 104GT-2 or 104NT-4-R025H42G (may report as 104GT) and saves to EEPROM | ||
+ | ; Please add a blank line to the end of the file while editing. DokuWiki Code Blocks deletes blank lines at the end of the block but g-code files should end with a single blank line at the end. | ||
+ | ; | ||
+ | M561 P1 ;Change to 104GT-2 or 104NT-4-R025H42G (may report as 104GT) | ||
+ | M500 ; Save to EEPROM | ||
+ | ; | ||
+ | ; Reboot the printer to complete the process | ||
+ | </file> | ||
- | ==== M561 B - Heat bed thermistor type ==== | + | ==== M561 B - Change Heat Bed Thermistor Type ==== |
<code> | <code> | ||
M561 B P0 ;Change to Default or EPCOS 100K | M561 B P0 ;Change to Default or EPCOS 100K | ||
Line 79: | Line 95: | ||
===== M562 - Invert Stepper Motor Direction ===== | ===== M562 - Invert Stepper Motor Direction ===== | ||
+ | [[invert_motor_direction|M562 - Invert Stepper Motor Direction]] | ||
<code> | <code> | ||
M562 E ;Inverts Extruder motor direction | M562 E ;Inverts Extruder motor direction | ||
Line 87: | Line 104: | ||
Reboot printer to complete the process | Reboot printer to complete the process | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | ==== M562 X ==== | ||
+ | <file gcode invert_X-axis.gcode> | ||
+ | ; G-Code generated by Matthew Upp | ||
+ | ; Invert X-Axis | ||
+ | ; for Malyan M200 & MP Select Mini | ||
+ | ; | ||
+ | ; Lines with only a semicolon are for making line separations only | ||
+ | ; Please add a blank line to the end of the file while editing. DokuWiki Code Blocks deletes blank lines at the end of the block but g-code files should end with a single blank line at the end. | ||
+ | ; | ||
+ | ; | ||
+ | M107 ; turn fan off in case it was already on | ||
+ | M106 S245 ; turn fan on to signify start | ||
+ | ; | ||
+ | ; | ||
+ | M562 X ; invert X-Axis | ||
+ | M500 ; save currently loaded settings to EEPROM | ||
+ | ; | ||
+ | ; | ||
+ | G28 X ; home X to verify the X-axis is inverted | ||
+ | G1 X60 F1000 ; Move X-Axis to center of the bed to signify completion | ||
+ | M400 ; Wait for current moves to finish | ||
+ | M107 ; turn fan off to signify completion | ||
+ | M84 ; disable motors | ||
+ | </file> | ||
+ | |||
+ | |||
+ | ==== M562 Y ==== | ||
+ | <file gcode invert_y-axis.gcode> | ||
+ | ; G-Code generated by Matthew Upp | ||
+ | ; Invert Y-Axis | ||
+ | ; for Malyan M200 & MP Select Mini | ||
+ | ; | ||
+ | ; Lines with only a semicolon are for making line separations only | ||
+ | ; Please add a blank line to the end of the file while editing. DokuWiki Code Blocks deletes blank lines at the end of the block but g-code files should end with a single blank line at the end. | ||
+ | ; | ||
+ | ; | ||
+ | M107 ; turn fan off in case it was already on | ||
+ | M106 S245 ; turn fan on to signify start | ||
+ | ; | ||
+ | ; | ||
+ | M562 Y ; Invert Y-Axis | ||
+ | M500 ; Save currently loaded settings to EEPROM | ||
+ | ; | ||
+ | ; | ||
+ | G28 Y ; home Y to verify the Y-axis is inverted | ||
+ | G1 Y60 F1000 ; Move Y-Axis to center of the bed to signify completion | ||
+ | M400 ; Wait for current moves to finish | ||
+ | M107 ; turn fan off to signify completion | ||
+ | M84 ; disable motors | ||
+ | </file> | ||
+ | |||
+ | |||
+ | ==== M562 Z ==== | ||
+ | <file gcode invert_z-axis.gcode> | ||
+ | ; G-Code generated by Matthew Upp | ||
+ | ; Invert Z-Axis | ||
+ | ; Possibly helpful if you need to invert the Z-axis after switching to a NEMA 17 motor and lead screw | ||
+ | ; for Malyan M200 & MP Select Mini | ||
+ | ; | ||
+ | ; Lines with only a semicolon are for making line separations only | ||
+ | ; Please add a blank line to the end of the file while editing. DokuWiki Code Blocks deletes blank lines at the end of the block but g-code files should end with a single blank line at the end. | ||
+ | ; | ||
+ | ; | ||
+ | M107 ; turn fan off in case it was already on | ||
+ | M106 S245 ; turn fan on to signify start | ||
+ | ; | ||
+ | ; | ||
+ | M562 Z ; Invert Z-Axis | ||
+ | M500 ; Save currently loaded settings to EEPROM | ||
+ | ; | ||
+ | ; | ||
+ | G28 Z ; home Z to verify the Z-axis is inverted | ||
+ | G1 Z10 F1000 ; Move Z-Axis up 10mm to signify completion | ||
+ | M400 ; Wait for current moves to finish | ||
+ | M107 ; turn fan off to signify completion | ||
+ | M84 ; disable motors | ||
+ | </file> | ||
---- | ---- | ||
- | ===== M563 - Enable faster WiFi file uploads ===== | + | ===== M563 - Enable Faster WiFi File Uploads ===== |
<code> | <code> | ||
M563 S6 ;S value can be 2-6 | M563 S6 ;S value can be 2-6 | ||
+ | </code> | ||
+ | |||
+ | |||
+ | **<color red>*</color>****M563 S6 is currently broken with V2 firmware. Try:** | ||
+ | |||
+ | <code> | ||
+ | M563 S5 | ||
+ | </code> | ||
+ | |||
+ | Or | ||
+ | |||
+ | <code> | ||
+ | M563 S4 | ||
</code> | </code> | ||
Line 102: | Line 211: | ||
</code> | </code> | ||
- | <wrap lo><wrap hi>//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.//</wrap></wrap> | + | Or |
+ | |||
+ | <code> | ||
+ | http://192.168.20.113/set?code=M563 S4 | ||
+ | </code> | ||
+ | |||
+ | |||
+ | <wrap lo><wrap hi>//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. "M500" doesn't save changes that are made to settings that are related to the UI Controller firmware.//</wrap></wrap> | ||
---- | ---- | ||
- | ===== M564 - Download file from remote server ===== | + | ===== M564 - Download File from Remote Server ===== |
+ | |||
+ | ''%%M564 http://server/file.gcode%%'' \\ | ||
<code> | <code> | ||
M564 ip_address_of_file_server/file.gcode ;Download file.gcode from server | M564 ip_address_of_file_server/file.gcode ;Download file.gcode from server | ||
Line 114: | Line 232: | ||
---- | ---- | ||
- | ===== M565 - Print cache file cache.gc ===== | + | ===== M565 - Print Cache File cache.gc ===== |
<code> | <code> | ||
M565 | M565 | ||
Line 129: | Line 247: | ||
---- | ---- | ||
- | ===== M566 - Rename cache file ===== | + | ===== M566 - Rename Cache File ===== |
<code> | <code> | ||
M21 ;Initialize SD card | M21 ;Initialize SD card |