Skip to content

Commit

Permalink
Merge pull request #17301 from Ultimaker/CURA-11099-start-time-duration
Browse files Browse the repository at this point in the history
Add extruder start/end gcode duration settings
  • Loading branch information
rburema authored Nov 14, 2023
2 parents 5504cc1 + 2c1f0fc commit 90de8e5
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
28 changes: 28 additions & 0 deletions plugins/MachineSettingsAction/MachineSettingsExtruderTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,34 @@ Item
decimals: 0
forceUpdateOnChangeFunction: forceUpdateFunction
}

Cura.NumericTextFieldWithUnit
{
id: extruderStartCodeDurationFieldId
containerStackId: base.extruderStackId
settingKey: "machine_extruder_start_code_duration"
settingStoreIndex: propertyStoreIndex
labelText: catalog.i18nc("@label", "Extruder Start G-code duration")
labelFont: base.labelFont
labelWidth: base.labelWidth
controlWidth: base.controlWidth
unitText: catalog.i18nc("@label", "s")
forceUpdateOnChangeFunction: forceUpdateFunction
}

Cura.NumericTextFieldWithUnit
{
id: extruderEndCodeDurationFieldId
containerStackId: base.extruderStackId
settingKey: "machine_extruder_end_code_duration"
settingStoreIndex: propertyStoreIndex
labelText: catalog.i18nc("@label", "Extruder End G-code duration")
labelFont: base.labelFont
labelWidth: base.labelWidth
controlWidth: base.controlWidth
unitText: catalog.i18nc("@label", "s")
forceUpdateOnChangeFunction: forceUpdateFunction
}
}
}

Expand Down
24 changes: 24 additions & 0 deletions resources/definitions/fdmextruder.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@
"settable_per_meshgroup": false,
"type": "str"
},
"machine_extruder_end_code_duration":
{
"default_value": 0,
"description": "The time it takes to execute the end g-code, when switching away from this extruder.",
"label": "Extruder End G-Code Duration",
"minimum_value": "0",
"settable_globally": false,
"settable_per_extruder": true,
"settable_per_mesh": false,
"settable_per_meshgroup": false,
"type": "float"
},
"machine_extruder_end_pos_abs":
{
"default_value": false,
Expand Down Expand Up @@ -108,6 +120,18 @@
"settable_per_meshgroup": false,
"type": "str"
},
"machine_extruder_start_code_duration":
{
"default_value": 0,
"description": "The time it'll take to execute the start g-code, when switching to this extruder.",
"label": "Extruder Start G-Code Duration",
"minimum_value": "0",
"settable_globally": false,
"settable_per_extruder": true,
"settable_per_mesh": false,
"settable_per_meshgroup": false,
"type": "float"
},
"machine_extruder_start_pos_abs":
{
"default_value": false,
Expand Down

0 comments on commit 90de8e5

Please sign in to comment.