-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathset_pa.cfg
56 lines (52 loc) · 2.15 KB
/
set_pa.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[gcode_macro SET_PA]
#
# SET_PA
#
# Use SET_PA to set pressure advance for a particular matieral, nozzle size, and printer.
# This lets you use just one filament profile for each material no matter how many printers you have!
#
# Use this in your SuperSlicer Custom G-code Start G-code for Filament:
#
# SET_PA MATERIAL=[filament_type] NOZZLE={nozzle_diameter[0]} PRINTER={tool_name[0]}
#
# This requires having
# - [filament_type] set in Filament Settings > Filament > Filament Properties > Filament type
# - [nozzle_diameter] set in Printer Settings > Extruder 1 > Name and Size > Nozzle diameter
# - [tool_name] set in Printer Settings > Extruder 1 > Name and Size > Tool name
#
description: Sets pressure advance from a filament profile table
gcode:
{% set MATERIAL = params.MATERIAL|default("material") %}
{% set NOZZLE = params.NOZZLE|default("nozzle") %}
# {% set PRINTER = params.PRINTER|default("printer") %}
{% set PA_VAL = 0 %}
# {action_respond_info ("MATERIAL=%s NOZZLE=%s PRINTER=%s" % ( MATERIAL , NOZZLE ,PRINTER)) }
{action_respond_info ("MATERIAL=%s NOZZLE=%s" % ( MATERIAL , NOZZLE)) }
# {% if PRINTER == 'Huginn' %}
{% if NOZZLE == "0.4" %}
{% if MATERIAL == "PLA" %}
{% set PA_VAL = 0.0300 %}
{% elif MATERIAL == "ASA" %}
{% set PA_VAL = 0.0310 %}
{% elif MATERIAL == "PETG" %}
{% set PA_VAL = 0.035250 %}
{% elif MATERIAL == "ABS" %}
{% set PA_VAL = 0.031 %}
{% elif MATERIAL == "PC" %}
{% set PA_VAL = 0.031 %}
{% endif %}
{% elif NOZZLE == "0.6" %}
{% if MATERIAL == "PLA" %}
{% set PA_VAL = 0.0320 %}
{% elif MATERIAL == "ASA" %}
{% set PA_VAL = 0.0201 %}
{% elif MATERIAL == "PETG" %}
{% set PA_VAL = 0.02950 %}
{% elif MATERIAL == "ABS" %}
{% set PA_VAL = 0.015 %}
{% elif MATERIAL == "PC" %}
{% set PA_VAL = 0.015 %}
{% endif %}
{% endif %}
# {% endif %}
SET_PRESSURE_ADVANCE ADVANCE={PA_VAL}