Syntax
gcodecopytemp(fname,[])
Input Parameter
fname : | | existing gcode file name |
Examples
gcodecopytemp('/Volumes/AP5TIMLUETH/AP_ADAM360(2020-12-08)/22060AP_ADAM360(2020-12-08).gcode')
Copyright 2021-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Algorithm (Workflow)
This algorithm is designed to create copies of a gcode file with modified hot end and base temperatures. It is part of the SolidGeometry library and was introduced in version 5.1. The function is named gcodecopytemp
and is authored by Tim Lueth.
Input Parameters
- fname: The name of an existing gcode file. This is a required parameter.
Algorithm Steps
- Check if the file specified by
fname
exists using the isfile
function. If the file does not exist, an error is thrown with a message indicating the file is missing.
- Call the function
filenameadddate4gcode
with fname
and true
as arguments. This function renames the file to adhere to a standard naming convention for gcode files.
- Invoke the function
SGgcodefilechangetemp
multiple times with different temperature settings:
- First call: Set the hot end temperature to 180°C and the base temperature to 60°C.
- Second call: Set the hot end temperature to 190°C and the base temperature to 60°C.
- Third call: Set the hot end temperature to 200°C and the base temperature to 60°C.
- Fourth call: Set the hot end temperature to 210°C and the base temperature to 60°C.
- Fifth call: Set the hot end temperature to 220°C and the base temperature to 60°C.
Each call to SGgcodefilechangetemp
modifies the gcode file to reflect the new temperature settings, effectively creating multiple versions of the original file with different temperature configurations.
Algorithm explaination created using ChatGPT on 2025-08-19 00:00. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21