Change all min/max/warning values in fdmprinter to functions

This commit is contained in:
Arjen Hiemstra 2015-09-01 15:18:26 +02:00
parent 7161ed63aa
commit 516c0cd516

View file

@ -109,9 +109,9 @@
"unit": "mm",
"type": "float",
"default": 0.1,
"min_value": 0.0001,
"min_value_warning": 0.04,
"max_value_warning": 0.32
"min_value": "0.0001",
"min_value_warning": "0.04",
"max_value_warning": "0.32"
},
"layer_height_0": {
"label": "Initial Layer Height",
@ -119,18 +119,18 @@
"unit": "mm",
"type": "float",
"default": 0.3,
"min_value": 0.0001,
"min_value_warning": 0.04,
"max_value_warning": 0.32,
"min_value": "0.0001",
"min_value_warning": "0.04",
"max_value_warning": "0.32",
"visible": false
},
"line_width": {
"label": "Line Width",
"description": "Width of a single line. Each line will be printed with this width in mind. Generally the width of each line should correspond to the width of your nozzle, but for the outer wall and top/bottom surface smaller line widths may be chosen, for higher quality.",
"unit": "mm",
"min_value": 0.0001,
"min_value_warning": 0.2,
"max_value_warning": 5,
"min_value": "0.0001",
"min_value_warning": "0.2",
"max_value_warning": "5",
"default": 0.4,
"type": "float",
"visible": false,
@ -140,9 +140,9 @@
"label": "Wall Line Width",
"description": "Width of a single shell line. Each line of the shell will be printed with this width in mind.",
"unit": "mm",
"min_value": 0.0001,
"min_value_warning": 0.2,
"max_value_warning": 5,
"min_value": "0.0001",
"min_value_warning": "0.2",
"max_value_warning": "5",
"default": 0.4,
"type": "float",
"visible": false,
@ -152,9 +152,9 @@
"label": "Outer Wall Line Width",
"description": "Width of the outermost shell line. By printing a thinner outermost wall line you can print higher details with a larger nozzle.",
"unit": "mm",
"min_value": 0.0001,
"min_value_warning": 0.2,
"max_value_warning": 5,
"min_value": "0.0001",
"min_value_warning": "0.2",
"max_value_warning": "5",
"default": 0.4,
"type": "float",
"visible": false
@ -163,9 +163,9 @@
"label": "Other Walls Line Width",
"description": "Width of a single shell line for all shell lines except the outermost one.",
"unit": "mm",
"min_value": 0.0001,
"min_value_warning": 0.2,
"max_value_warning": 5,
"min_value": "0.0001",
"min_value_warning": "0.2",
"max_value_warning": "5",
"default": 0.4,
"type": "float",
"visible": false
@ -176,9 +176,9 @@
"label": "Skirt line width",
"description": "Width of a single skirt line.",
"unit": "mm",
"min_value": 0.0001,
"min_value_warning": 0.2,
"max_value_warning": 5,
"min_value": "0.0001",
"min_value_warning": "0.2",
"max_value_warning": "5",
"default": 0.4,
"type": "float",
"visible": false
@ -187,9 +187,9 @@
"label": "Top/bottom line width",
"description": "Width of a single top/bottom printed line, used to fill up the top/bottom areas of a print.",
"unit": "mm",
"min_value": 0.0001,
"min_value_warning": 0.2,
"max_value_warning": 5,
"min_value": "0.0001",
"min_value_warning": "0.2",
"max_value_warning": "5",
"default": 0.4,
"type": "float",
"visible": false
@ -198,9 +198,9 @@
"label": "Infill line width",
"description": "Width of the inner infill printed lines.",
"unit": "mm",
"min_value": 0.0001,
"min_value_warning": 0.2,
"max_value_warning": 5,
"min_value": "0.0001",
"min_value_warning": "0.2",
"max_value_warning": "5",
"default": 0.4,
"type": "float",
"visible": false
@ -209,9 +209,9 @@
"label": "Support line width",
"description": "Width of the printed support structures lines.",
"unit": "mm",
"min_value": 0.0001,
"min_value_warning": 0.2,
"max_value_warning": 5,
"min_value": "0.0001",
"min_value_warning": "0.2",
"max_value_warning": "5",
"default": 0.4,
"type": "float",
"visible": false,
@ -247,25 +247,25 @@
"unit": "mm",
"type": "float",
"default": 0.8,
"min_value": 0,
"min_value_warning": 0.2,
"max_value_warning": 5,
"min_value": "0",
"min_value_warning": "0.2",
"max_value_warning": "5",
"children": {
"wall_thickness": {
"label": "Wall Thickness",
"description": "The thickness of the outside walls in the horizontal direction. This is used in combination with the nozzle size to define the number of perimeter lines and the thickness of those perimeter lines.",
"unit": "mm",
"default": 0.8,
"min_value": 0,
"min_value_warning": 0.2,
"max_value_warning": 5,
"min_value": "0",
"min_value_warning": "0.2",
"max_value_warning": "5",
"type": "float",
"visible": false,
"children": {
"wall_line_count": {
"label": "Wall Line Count",
"description": "Number of shell lines. This these lines are called perimeter lines in other tools and impact the strength and structural integrity of your print.",
"min_value": 0,
"min_value": "0",
"default": 2,
"type": "int",
"visible": false,
@ -285,10 +285,10 @@
"description": "This controls the thickness of the bottom and top layers, the amount of solid layers put down is calculated by the layer thickness and this value. Having this value a multiple of the layer thickness makes sense. And keep it near your wall thickness to make an evenly strong part.",
"unit": "mm",
"default": 0.8,
"min_value": 0,
"max_value": 5,
"min_value_warning": 0.6,
"max_value_warning": 1,
"min_value": "0",
"max_value": "5",
"min_value_warning": "0.6",
"max_value_warning": "1",
"type": "float",
"visible": false,
"children": {
@ -296,7 +296,7 @@
"label": "Top Thickness",
"description": "This controls the thickness of the top layers. The number of solid layers printed is calculated from the layer thickness and this value. Having this value be a multiple of the layer thickness makes sense. And keep it nearto your wall thickness to make an evenly strong part.",
"unit": "mm",
"min_value": 0,
"min_value": "0",
"default": 0.8,
"type": "float",
"visible": false,
@ -304,7 +304,7 @@
"top_layers": {
"label": "Top Layers",
"description": "This controls the amount of top layers.",
"min_value": 0,
"min_value": "0",
"default": 6,
"type": "int",
"visible": false,
@ -316,7 +316,7 @@
"label": "Bottom Thickness",
"description": "This controls the thickness of the bottom layers. The number of solid layers printed is calculated from the layer thickness and this value. Having this value be a multiple of the layer thickness makes sense. And keep it near to your wall thickness to make an evenly strong part.",
"unit": "mm",
"min_value": 0,
"min_value": "0",
"default": 0.6,
"type": "float",
"visible": false,
@ -324,7 +324,7 @@
"bottom_layers": {
"label": "Bottom Layers",
"description": "This controls the amount of bottom layers.",
"min_value": 0,
"min_value": "0",
"default": 6,
"type": "int",
"visible": false,
@ -434,6 +434,7 @@
"unit": "%",
"type": "float",
"default": 20,
"max_value_warning": "100.0",
"children": {
"infill_pattern": {
"label": "Infill Pattern",
@ -508,8 +509,8 @@
"unit": "°C",
"type": "float",
"default": 210,
"min_value": 0,
"max_value_warning": 260
"min_value": "0",
"max_value_warning": "260"
},
"material_bed_temperature": {
"label": "Bed Temperature",
@ -517,8 +518,8 @@
"unit": "°C",
"type": "float",
"default": 60,
"min_value": 0,
"max_value_warning": 260
"min_value": "0",
"max_value_warning": "260",
},
"material_diameter": {
"label": "Diameter",
@ -526,8 +527,8 @@
"unit": "mm",
"type": "float",
"default": 2.85,
"min_value_warning": 0.4,
"max_value_warning": 3.5
"min_value_warning": "0.4",
"max_value_warning": "3.5"
},
"material_flow": {
"label": "Flow",
@ -535,9 +536,9 @@
"unit": "%",
"default": 100,
"type": "float",
"min_value": 5,
"min_value_warning": 50,
"max_value_warning": 150
"min_value": "5",
"min_value_warning": "50",
"max_value_warning": "150"
},
"retraction_enable": {
"label": "Enable Retraction",
@ -673,8 +674,8 @@
"description": "The speed at which printing happens. A well-adjusted Ultimaker can reach 150mm/s, but for good quality prints you will want to print slower. Printing speed depends on a lot of factors, so you will need to experiment with optimal settings for this.",
"unit": "mm/s",
"type": "float",
"min_value": 0.1,
"max_value_warning": 150,
"min_value": "0.1",
"max_value_warning": "150",
"default": 50,
"children": {
"speed_infill": {
@ -682,8 +683,8 @@
"description": "The speed at which infill parts are printed. Printing the infill faster can greatly reduce printing time, but this can negatively affect print quality.",
"unit": "mm/s",
"type": "float",
"min_value": 0.1,
"max_value_warning": 150,
"min_value": "0.1",
"max_value_warning": "150",
"default": 50,
"visible": false
},
@ -692,8 +693,8 @@
"description": "The speed at which shell is printed. Printing the outer shell at a lower speed improves the final skin quality.",
"unit": "mm/s",
"type": "float",
"min_value": 0.1,
"max_value_warning": 150,
"min_value": "0.1",
"max_value_warning": "150",
"default": 50,
"visible": false,
"children": {
@ -702,8 +703,8 @@
"description": "The speed at which outer shell is printed. Printing the outer shell at a lower speed improves the final skin quality. However, having a large difference between the inner shell speed and the outer shell speed will effect quality in a negative way.",
"unit": "mm/s",
"type": "float",
"min_value": 0.1,
"max_value_warning": 150,
"min_value": "0.1",
"max_value_warning": "150",
"default": 50,
"visible": false
},
@ -712,8 +713,8 @@
"description": "The speed at which all inner shells are printed. Printing the inner shell fasster than the outer shell will reduce printing time. It is good to set this in between the outer shell speed and the infill speed.",
"unit": "mm/s",
"type": "float",
"min_value": 0.1,
"max_value_warning": 150,
"min_value": "0.1",
"max_value_warning": "150",
"default": 50,
"visible": false
}
@ -724,8 +725,8 @@
"description": "Speed at which top/bottom parts are printed. Printing the top/bottom faster can greatly reduce printing time, but this can negatively affect print quality.",
"unit": "mm/s",
"type": "float",
"min_value": 0.1,
"max_value_warning": 150,
"min_value": "0.1",
"max_value_warning": "150",
"default": 50,
"visible": false
},
@ -734,8 +735,8 @@
"description": "The speed at which exterior support is printed. Printing exterior supports at higher speeds can greatly improve printing time. And the surface quality of exterior support is usually not important, so higher speeds can be used.",
"unit": "mm/s",
"type": "float",
"min_value": 0.1,
"max_value_warning": 150,
"min_value": "0.1",
"max_value_warning": "150",
"default": 50,
"visible": false,
"inherit_function": "speed_wall_0",
@ -779,8 +780,8 @@
"description": "The speed at which travel moves are done. A well-built Ultimaker can reach speeds of 250mm/s. But some machines might have misaligned layers then.",
"unit": "mm/s",
"type": "float",
"min_value": 0.1,
"max_value_warning": 300,
"min_value": "0.1",
"max_value_warning": "300",
"default": 150
},
"speed_layer_0": {
@ -788,7 +789,7 @@
"description": "The print speed for the bottom layer: You want to print the first layer slower so it sticks to the printer bed better.",
"unit": "mm/s",
"type": "float",
"min_value": 0.1,
"min_value": "0.1",
"default": 15,
"visible": false,
"children": {
@ -797,7 +798,7 @@
"description": "The speed at which the skirt and brim are printed. Normally this is done at the initial layer speed. But sometimes you want to print the skirt at a different speed.",
"unit": "mm/s",
"type": "float",
"min_value": 0.1,
"min_value": "0.1",
"default": 15,
"visible": false
}
@ -807,7 +808,7 @@
"label": "Amount of Slower Layers",
"description": "The first few layers are printed slower then the rest of the object, this to get better adhesion to the printer bed and improve the overall success rate of prints. The speed is gradually increased over these layers. 4 layers of speed-up is generally right for most materials and printers.",
"type": "int",
"min_value": 0,
"min_value": "0",
"default": 4,
"visible": false
}
@ -999,8 +1000,8 @@
"description": "Fan speed used for the print cooling fan on the printer head.",
"unit": "%",
"type": "float",
"min_value": 0,
"max_value": 100,
"min_value": "0",
"max_value": "100",
"default": 100,
"visible": false,
"inherit_function": "100.0 if parent_value else 0.0",
@ -1010,8 +1011,8 @@
"description": "Normally the fan runs at the minimum fan speed. If the layer is slowed down due to minimum layer time, the fan speed adjusts between minimum and maximum fan speed.",
"unit": "%",
"type": "float",
"min_value": 0,
"max_value": 100,
"min_value": "0",
"max_value": "100",
"default": 100,
"visible": false
},
@ -1020,8 +1021,8 @@
"description": "Normally the fan runs at the minimum fan speed. If the layer is slowed down due to minimum layer time, the fan speed adjusts between minimum and maximum fan speed.",
"unit": "%",
"type": "float",
"min_value": 0,
"max_value": 100,
"min_value": "0",
"max_value": "100",
"default": 100,
"visible": false
}
@ -1034,7 +1035,7 @@
"description": "The height at which the fan is turned on completely. For the layers below this the fan speed is scaled linearly with the fan off for the first layer.",
"unit": "mm",
"type": "float",
"min_value": 0,
"min_value": "0",
"default": 0.5,
"visible": false,
"children": {
@ -1042,7 +1043,7 @@
"label": "Fan Full on at Layer",
"description": "The layer number at which the fan is turned on completely. For the layers below this the fan speed is scaled linearly with the fan off for the first layer.",
"type": "int",
"min_value": 0,
"min_value": "0",
"default": 4,
"visible": false,
"inherit_function": "int((parent_value - layer_height_0 + 0.001) / layer_height)"
@ -1054,7 +1055,7 @@
"description": "The minimum time spent in a layer: Gives the layer time to cool down before the next one is put on top. If a layer would print in less time, then the printer will slow down to make sure it has spent at least this many seconds printing the layer.",
"unit": "sec",
"type": "float",
"min_value": 0,
"min_value": "0",
"default": 5,
"visible": false
},
@ -1063,7 +1064,7 @@
"description": "The minimum time spent in a layer which will cause the fan to be at minmum speed. The fan speed increases linearly from maximal fan speed for layers taking minimal layer time to minimal fan speed for layers taking the time specified here.",
"unit": "sec",
"type": "float",
"min_value": 0,
"min_value": "0",
"default": 10,
"visible": false
},
@ -1114,8 +1115,8 @@
"description": "The maximum angle of overhangs for which support will be added. With 0 degrees being vertical, and 90 degrees being horizontal. A smaller overhang angle leads to more support.",
"unit": "°",
"type": "float",
"min_value": 0,
"max_value": 90,
"min_value": "0",
"max_value": "90",
"default": 60,
"visible": false,
"active_if": {
@ -1128,8 +1129,8 @@
"description": "Distance of the support structure from the print, in the X/Y directions. 0.7mm typically gives a nice distance from the print so the support does not stick to the surface.",
"unit": "mm",
"type": "float",
"min_value": 0,
"max_value_warning": 10,
"min_value": "0",
"max_value_warning": "10",
"default": 0.7,
"visible": false,
"active_if": {
@ -1142,8 +1143,8 @@
"description": "Distance from the top/bottom of the support to the print. A small gap here makes it easier to remove the support but makes the print a bit uglier. 0.15mm allows for easier separation of the support structure.",
"unit": "mm",
"type": "float",
"min_value": 0,
"max_value_warning": 10,
"min_value": "0",
"max_value_warning": "10",
"default": 0.15,
"visible": false,
"active_if": {
@ -1155,8 +1156,8 @@
"label": "Top Distance",
"description": "Distance from the top of the support to the print.",
"unit": "mm",
"min_value": 0,
"max_value_warning": 10,
"min_value": "0",
"max_value_warning": "10",
"default": 0.15,
"type": "float",
"visible": false
@ -1165,8 +1166,8 @@
"label": "Bottom Distance",
"description": "Distance from the print to the bottom of the support.",
"unit": "mm",
"min_value": 0,
"max_value_warning": 10,
"min_value": "0",
"max_value_warning": "10",
"default": 0.15,
"type": "float",
"visible": false
@ -1189,8 +1190,8 @@
"description": "The angle of the tilt of conical support. With 0 degrees being vertical, and 90 degrees being horizontal. Smaller angles cause the support to be more sturdy, but consist of more material. Negative angles cause the base of the support to be wider than the top.",
"unit": "°",
"type": "float",
"min_value": -90,
"max_value": 90,
"min_value": "-90",
"max_value": "90",
"default": 30,
"visible": false,
"active_if": {
@ -1202,7 +1203,7 @@
"label": "Minimal Width",
"description": "Minimal width to which conical support reduces the support areas. Small widths can cause the base of the support to not act well as fundament for support above.",
"unit": "mm",
"min_value": 0,
"min_value": "0",
"default": 3.0,
"type": "float",
"visible": false,
@ -1302,8 +1303,8 @@
"description": "The angle of the rooftop of a tower. Larger angles mean more pointy towers. ",
"unit": "°",
"type": "int",
"min_value": 0,
"max_value": 90,
"min_value": "0",
"max_value": "90",
"default": 65,
"visible": false,
"active_if": {
@ -1343,8 +1344,8 @@
"description": "The amount of infill structure in the support, less infill gives weaker support which is easier to remove.",
"unit": "%",
"type": "float",
"min_value": 0,
"max_value": 100,
"min_value": "0",
"max_value": "100",
"default": 15,
"visible": false,
"active_if": {
@ -1357,7 +1358,7 @@
"description": "Distance between the printed support lines.",
"unit": "mm",
"type": "float",
"min_value": 0,
"min_value": "0",
"default": 2.66,
"visible": false,
"active_if": {
@ -1615,8 +1616,8 @@
"description": "The fan speed for the raft.",
"unit": "%",
"type": "float",
"min_value": 0,
"max_value": 100,
"min_value": "0",
"max_value": "100",
"default": 100,
"visible": false,
"children": {
@ -1625,8 +1626,8 @@
"description": "The fan speed for the surface raft layers.",
"unit": "%",
"type": "float",
"min_value": 0,
"max_value": 100,
"min_value": "0",
"max_value": "100",
"default": 100,
"visible": false,
"inherit": true
@ -1636,8 +1637,8 @@
"description": "The fan speed for the interface raft layer.",
"unit": "%",
"type": "float",
"min_value": 0,
"max_value": 100,
"min_value": "0",
"max_value": "100",
"default": 100,
"visible": false,
"inherit": true
@ -1647,8 +1648,8 @@
"description": "The fan speed for the base raft layer.",
"unit": "%",
"type": "float",
"min_value": 0,
"max_value": 100,
"min_value": "0",
"max_value": "100",
"default": 100,
"visible": false,
"inherit": true
@ -1666,8 +1667,8 @@
"description": "Distance of the draft shield from the print, in the X/Y directions.",
"unit": "mm",
"type": "float",
"min_value": 0,
"max_value_warning": 100,
"min_value": "0",
"max_value_warning": "100",
"default": 10,
"visible": false,
"active_if": {
@ -1695,8 +1696,8 @@
"description": "Height limitation on the draft shield. Above this height no draft shield will be printed.",
"unit": "mm",
"type": "float",
"min_value": 0,
"max_value_warning": 30,
"min_value": "0",
"max_value_warning": "30",
"default": 0,
"inherit_function": "9999 if draft_shield_height_limitation == 'full' and draft_shield_enabled else 0.0",
"visible": false,