Difference between revisions of "G-Code Filtering"

From MatterControl Manual
Jump to: navigation, search
(Created page with "__NOTOC__MatterControl filters G-Code as it sends it to the printer via serial USB communication to maintain compatibility with a large range of printer types. == Automatic C...")
 
Line 3: Line 3:
 
== Automatic Changes ==
 
== Automatic Changes ==
  
=== M190 ===
+
=== M109 ===
  
M190 commands are automatically converted to M109 commands.
+
MatterControl automatically converts [http://reprap.org/wiki/G-code#M109:_Set_Extruder_Temperature_and_Wait M109] commands to [http://reprap.org/wiki/G-code#M190:_Wait_for_bed_temperature_to_reach_target_temp M190] commands.
  
=== M140 ===
+
=== M104 ===
  
M140 commands are automatically converted to M104 commands...
+
MatterControl automatically converts [http://reprap.org/wiki/G-code#M104:_Set_Extruder_Temperature M104] commands to [http://reprap.org/wiki/G-code#M140:_Set_Bed_Temperature_.28Fast.29 M140] commands...
  
 
=== G91 ===
 
=== G91 ===
  
MatterControl accepts commands for relative positioning, but instead of just allowing them straight through it interprets them as absolute coordinates and feeds those to the printer.
+
MatterControl accepts [http://reprap.org/wiki/G-code#G91:_Set_to_Relative_Positioning G91] commands for relative positioning, but instead of just allowing them straight through it interprets them as absolute coordinates and feeds those to the printer.
  
 
=== G0 ===
 
=== G0 ===
  
Certain printers do not accept G0 as a valid command for movement, so MatterControl sends the more common G1 command instead.
+
Certain printers do not accept [http://reprap.org/wiki/G-code#G0_.26_G1:_Move G0] as a valid command for movement, so MatterControl sends the more common [http://reprap.org/wiki/G-code#G0_.26_G1:_Move G1] command instead.
  
 
Version 1.6 will have a new setting which will allow G0 commands if desired.
 
Version 1.6 will have a new setting which will allow G0 commands if desired.

Revision as of 10:50, 12 October 2016

MatterControl filters G-Code as it sends it to the printer via serial USB communication to maintain compatibility with a large range of printer types.

Automatic Changes

M109

MatterControl automatically converts M109 commands to M190 commands.

M104

MatterControl automatically converts M104 commands to M140 commands...

G91

MatterControl accepts G91 commands for relative positioning, but instead of just allowing them straight through it interprets them as absolute coordinates and feeds those to the printer.

G0

Certain printers do not accept G0 as a valid command for movement, so MatterControl sends the more common G1 command instead.

Version 1.6 will have a new setting which will allow G0 commands if desired.

Coordinate Truncation

To save bandwidth, MatterControl truncates superfluous coordinates in movement commands. For example, if the printer is currently at coordinates X30 Y40 Z50 and the next G-Code command is:

G1 X30 Y70 Z50

then MatterControl will truncate this command to:

G1 Y70

since the X and Z coordinates are the same as the current position.