Difference between revisions of "SETTINGS/Printer/Custom G-Code/Write Filters"
From MatterControl Manual
< SETTINGS | Printer | Custom G-Code
(Created page with "{{Slice Settings |This is 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 mor...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Slice Settings | {{Slice Settings | ||
− | | | + | |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.|*Regular Expressions |
+ | |||
+ | === Typical Data Format === | ||
+ | |||
+ | "^(X)","Y" where X is the G-Code you want to filter or change, and Y is the G-Code command(s) to replace X with.|In this example, the command 'G28' is replaced with 'G28,M280 P0 S160,G4...'.}} |
Latest revision as of 13:38, 2 August 2017
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
Typical Data Format
"^(X)","Y" where X is the G-Code you want to filter or change, and Y is the G-Code command(s) to replace X with.
Example(s)
In this example, the command 'G28' is replaced with 'G28,M280 P0 S160,G4...'.