User Tools

Site Tools


extended_g-code_table

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
extended_g-code_table [2016/09/23 09:45]
Matthew Upp [Table]
extended_g-code_table [2018/12/22 04:16] (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]]. \\ 
 +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.
  
-^ 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 ​                                 | 
-| M552                                                                      | Display IP address ​                               | 
-| M555                                                                      | Reset WiFi interface (?????​) ​                     | 
-| M556                                                                      | Display network status ​                           | 
-| M560                                                                      | Update firmware using update.bin in microSD card  | 
-| [[extended_g-code_table#​m561_-_change_thermistor_type|M561]] ​             | Change thermistor type                            | 
-| [[extended_g-code_table#​m562_-_invert_stepper_motor_direction|M562]] ​     | Invert stepper motor direction ​                   | 
-| [[extended_g-code_table#​m563_-_enable_fast_mode_for_web_uploading|M563]] ​ | Enable fast mode for web uploading ​               | 
-| M564 address_without_http ​                                                | HTTP Download (Unsure how to use)                 | 
-| M565                                                                      | Print cached file cache.gc ​                       | 
-| [[extended_g-code_table#​m566_-_rename_cache_file|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.// 
  
  
----------------------------------------------+^ 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 ​                                    | 
 +| M552                                                                    | Display IP address ​                                  | 
 +| M555 P1                                                                 | Reset WiFi interface (reboots WiFi module) ​          | 
 +| M556                                                                    | Display network status ​                              | 
 +| [[firmware:​motion_controller#​g-code_-_m560|M560]] ​                      | Update firmware using update.bin in microSD card     | 
 +| [[extended_g-code_table#​m561_-_change_thermistor_type|M561]] ​           | Change thermistor type (Hotend and/or Heat bed)      | 
 +| [[extended_g-code_table#​m562_-_invert_stepper_motor_direction|M562]] ​   | Invert stepper motor direction ​                      | 
 +| [[extended_g-code_table#​m563_-_enable faster_wifi_file_uploads|M563]] ​  | Enable faster WiFi file uploads<​color red>​*</​color> ​ | 
 +| [[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. \\ 
 +They have been implemented in 26.42 & higher. \\ 
 +[[extended_g-code_table#​561_b_-_heat_bed_thermistor_type|M561 B Change Heat bed thermistor type]] is included in Motion firmware V27 & higher.//
  
  
-===== Example Uses =====+----
  
-==== M550 & M551 - Connect to WiFi =====+ 
 +====== Example Uses ====== 
 + 
 +See [[g-code#​sending_g-code|Sending G-code]] for more information on how to send the commands below. 
 + 
 +===== M550 & M551 - Connect to WiFi =====
 <​code>​ <​code>​
-M550 SSID             ​;SSID = Name of WiFi network (case sensitive) +M550 SSID         ​;SSID = Name of WiFi network (case sensitive) 
-M551 PASSWORD ​        ​;PASSWORD = Password for WiFi network (case sensitive)+M551 PASSWORD ​    ​;PASSWORD = Password for WiFi network (case sensitive)
 </​code>​ </​code>​
-\\ 
  
 +----
  
-==== M561 - Change thermistor type =====+===== M561 - Change ​Thermistor Type ===== 
 +<wrap lo>​[[parts:​thermistors|Thermistor information and replacement options can be found here.]]</​wrap>​ \\ 
 +//Type **P0** = Default or EPCOS 100K// \\ 
 +//Type **P1** = 104GT-2 or 104NT-4-R025H42G (may report as 104GT) // \\ 
 +<wrap lo><​wrap em>​Motion Controller firmware version 26 must be installed to change the hotend ​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 - Change Hotend Thermistor Type ==== 
 +=== Default === 
 +<file gcode change_hotend_thermistor_type_default.gcode>​ 
 +; G-Code generated by Matthew Upp 
 +; Change thermistor type to Default or EPCOS 100K 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 P0 ; Change to Default or EPCOS 100K 
 +M500 ; Save to EEPROM 
 +; 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 - Change Heat Bed Thermistor Type ====
 <​code>​ <​code>​
-M561 P1               ;Change to 104GT +M561 B P0       ;Change to Default or EPCOS 100K 
-M500                  ;Save EEPROM+M500            ;Save EEPROM
 Reboot printer to complete the process Reboot printer to complete the process
              Or              Or
-M561 P0               ;Change to original/​stock +M561 B P1       ;Change to 104GT-2 or 104NT-4-R025H42G (may report as 104GT) 
-M500                  ;Save EEPROM+M500            ;Save EEPROM
 Reboot printer to complete the process Reboot printer to complete the process
 </​code>​ </​code>​
-\\ 
  
 +=== Type P0 = Default or EPCOS 100K ===
 +<wrap lo>//​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 any of them as replacement thermistors. Use the stock thermistor setting of Type P0.//</​wrap>​ \\
  
-==== M562 - Invert Stepper Motor Direction =====+ 
 + 
 + 
 +=== Type P1 = 104GT-2 or 104NT-4-R025H42G === 
 +<wrap lo>​Characteristics of ''​%%104GT-2%%''​ and ''​%%104NT-4-R025H42G%%''​ are nearly identical. **Type P1** is used for either thermistor.</​wrap>​ 
 + 
 +---- 
 + 
 +===== M562 - Invert Stepper Motor Direction =====
 <​code>​ <​code>​
-M562 E                ;​Inverts ​extruder ​motor direction +M562 E          ;​Inverts ​Extruder motor direction 
-M500                  ;Saves changes to EEPROM+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 Reboot printer to complete the process
 </​code>​ </​code>​
-\\ 
  
  
-==== M563 - Enable ​fast mode for web uploading ​====+==== 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 ​====
 +<​code>​ 
 +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>​ 
 + 
 +==== Web Browser Address Bar ==== 
 + 
 +''​%%http://​PRINTERS_IP_ADDRESS/​set?​code=M563 S6%%''​ \\ 
 +<​code>​ 
 +http://​192.168.20.113/​set?​code=M563 S6 
 +</​code>​ 
 + 
 +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 http://​server/​file.gcode%%''​ \\ 
 +<​code>​ 
 +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 
 +</​code>​ 
 + 
 +---- 
 + 
 +===== M565 - Print Cache File cache.gc ===== 
 +<​code>​ 
 +M565 
 +</​code>​ 
 + 
 +**Or using a web browsers URL bar** \\ 
 + 
 +''​%%http://​PRINTERS_IP_ADDRESS/​set?​code=M565%%''​ \\ 
 +Example:
 <​code>​ <​code>​
-M563 S6               ;S value can be 2-6+http://​192.168.1.120/​set?​code=M565
 </​code>​ </​code>​
-\\ 
  
 +----
  
-==== M566 - Rename ​cache file =====+===== M566 - Rename ​Cache File =====
 <​code>​ <​code>​
-M21                   ​;Initialize SD card  +M21                    ;Initialize SD card  
-M20                   ​;List SD card  +M20                    ;List SD card  
-M566 new_file_name.gc ;renames cache.gc to a user given file name +M566 new_file_name.gc ​ ;renames cache.gc to a user given file name 
-M20                   ​;List SD card (to verify file was renamed)+M20                    ;List SD card (to verify file was renamed)
 </​code>​ </​code>​
  
  
extended_g-code_table.1474623933.txt.gz · Last modified: 2016/09/23 09:45 by Matthew Upp