v3.7

E3D Revo Config Plugin

Third-party
Download v1.3.1

RepRapFirmware configuration macros for the E3D Revo hotend ยท by chrishamm

E3D Revo Tool Configuration Plugin

This plugin provides RepRapFirmware macro files for persistent storage of Revo tool configurations (variable nozzle diameters). It can be used both in SBC and standalone mode, however currently only a single tool is supported (not suitable for tool changers). RepRapFirmware 3.5 or newer is required to use them.

This script set is licensed under the terms of the MIT license. Use at your own risk.

Installation

To install this plugin, open DWC, go to Settings -> Plugins -> External Plugins and click on "Install Plugin". Then select the plugin ZIP file and confirm the following steps.

Once installed, remove your existing tool definition from config.g (typically the Tools section) but write down the configured heater, fan, and extruder numbers mapped to your existing tool (typically D0, H1, F0). Pass F-1 if your tool has no fan.

Instead of this section, you should invoke revo/config.g with the corresponding parameters:

; Revo tool config
M98 P"revo/config.g" D0 H1 F0

This will restore the last configured Revo insert on the next restart of the firmware. Tool offsets are kept when the insert is changed, so a G10 P0 ... line may follow the M98 call if your tool needs one.

The last configured insert is stored in revo/restore-tool.g, which is not part of the plugin, so updating or reinstalling the plugin keeps it. Upgrading from version 1.3.0 or older removes it once, so select your insert again after that upgrade.

Usage

Upon installation, you can see a new Revo directory in the Macros list which contains the following items:

  • High Flow (0.4mm to 1.4mm)
  • ObXidian (0.25mm to 0.8mm)
  • ObXidian High Flow (0.4mm to 1.4mm)
  • 0.15mm Nozzle (Pink)
  • 0.25mm Nozzle (Yellow)
  • 0.4mm Nozzle (Red)
  • 0.6mm Nozzle (Blue)
  • 0.8mm Nozzle (Green)

Using these macros you can reconfigure your Revo hotend whenever you've changed the nozzle insert. Changes are saved permanently on the SD card for your convenience and the last configuration is restored on reboot. The plain brass inserts sit at the top level and each of the other product lines has its own sub-directory.

The configured insert is reflected in the tool name, so DWC shows e.g. Revo ObXidian HF Nozzle 0.6mm for the 0.6mm ObXidian High Flow insert.

Global variables

In order to fine-tune filament instances, you can reference these globals in your filament configuration macros to set up the right PA, firmware retraction and volumetric limits:

Variable Type Description
global.nozzleDiameter float Diameter of the configured insert in mm
global.nozzleHighFlow bool Whether a high flow insert is configured
global.nozzleHardened bool Whether a hardened ObXidian insert is configured

The two flags are independent, because an ObXidian insert may be a high flow one as well.

Demo configuration for custom filaments

Here is my demo configuration for a PETG filament definition that uses different PA and firmware retraction values for the 0.4 and 0.8mm nozzles. The corresponding load.g script uses StallGuard when loading a filament. Bear in mind that these files are only demos and further fine-tuning may be required for your setup.

Main config.g

At the end of config.g, you can add something like

; Filament config
global filamentType = ""
T0
M703

to restore the last filament.

Filament config.g

set global.filamentType = "PETG"
M221 D0 S87

if global.nozzleDiameter == 0.4
  M572 D0 S0.55
  M207 P0 S4 F3600 Z0
elif global.nozzleDiameter == 0.8
  M572 D0 S0.325
  M207 P0 S5 F3000 Z0
else
  M572 D0 S0
  M207 P0 S5 F3000 Z0
  echo "Warning: Unsupported nozzle diameter"

Filament load.g

M98 P"load.g"

Filament unload.g

M98 P"unload.g" T160

/sys/check-filament.g

if global.filamentType != param.F
  abort "Incorrect filament! Expected " ^ param.F ^ " but " ^ global.filamentType ^ " is loaded."

/sys/load.g

; load filament using SG at 75% motor current
T0
M83
M913 E75
M302 P1
G1 H1 E750 F1800 
M913 E100
M302 P0

/sys/unload.g

; heat up to the given temperature if necessary (as passed via the T parameter)
var hadToHeat = false
if sensors.analog[1].lastReading < param.T
  set var.hadToHeat = true
  T0
  M568 S{param.T}
  M116

; retract 500mm of filament
G1 E-500 F6000

; turn off the nozzle again if we enabled it before
if var.hadToHeat == true
  M568 S0

Sample start G-code (PrusaSlicer)

To check if the right filament and nozzle is used, you can run these commands as part of your slicer start G-code:

M98 P"check-filament.g" F"[filament_type]"
M98 P"revo/check-nozzle.g" S0.6

If either the loaded filament type or the nozzle widths (0.6mm in this case) don't match, the print is aborted immediately. In the case of the previously mentioned PETG filament, make sure to set Filament type in the slicer to PETG.

check-nozzle.g accepts two more optional parameters to verify the insert type as well, H1 for a high flow insert and O1 for a hardened ObXidian one:

M98 P"revo/check-nozzle.g" S0.6 H1 O0

Both are only checked when they are present, so existing job files that pass S alone keep working. PrusaSlicer 2.9 and newer can derive the high flow flag from the printer profile and demand a hardened insert for abrasive filaments:

M98 P"revo/check-nozzle.g" S[nozzle_diameter] H{if nozzle_high_flow[0]}1{else}0{endif}{if filament_abrasive[0]} O1{endif}

PrusaSlicer has no printer setting for a hardened nozzle, so O1 is only passed for abrasive filaments and other filaments may still print with an ObXidian insert.

Details
1666 downloads
13 this week
MIT
Licence
2022-12-09
Listed since
config
revo

Listed plugins are made and maintained by third parties. Duet3D Plugin Repository(38 plugins, updated 2026-12-01, site v1.1.0, 9c088c6)