Difference between revisions of "SETTINGS/Printer/Custom G-Code/Write Filters"

From MatterControl Manual
Jump to: navigation, search
Line 7: Line 7:
 
=== Data Format ===
 
=== Data Format ===
  
*Command to replace: C
+
Example variables:
 +
 
 +
*Command to be replaced: C
 
*Replacement command: R
 
*Replacement command: R
  
 
"^(C)","R"|In this example, the command 'G28' is replaced with 'G28,M280 P0 S160,G4...'.}}
 
"^(C)","R"|In this example, the command 'G28' is replaced with 'G28,M280 P0 S160,G4...'.}}

Revision as of 10:32, 2 August 2017

A screenshot of the Write Filters setting as seen in MatterControl's SETTINGS pane.

Function

A set of regular expressions to apply to lines prior to sending to a printer. They will be applied in the order listed before sending. To return more than one instruction separate them with a comma.

Used to replace G-Code commands with other commands.

Parameters

  • Regular Expressions

Data Format

Example variables:

  • Command to be replaced: C
  • Replacement command: R

"^(C)","R"

Example(s)

In this example, the command 'G28' is replaced with 'G28,M280 P0 S160,G4...'.

Write Filters-ss-ex.png