Ok, I have another request.
Under the Custom gcode window found in the Project tab, please add a multiple "after layer" option. This needs explaining. For my cuboid calibration tests, this would be a great feature to be able to do add something like this:
M117 Level: 4
And then, after Level 43...
M117 Level: 43
So what should the Custom Gcode window say or look like?
Active: (Check or No Check)
Enter After Layer Action Height here: (Text box for input) ... (And an Apply button, if needed, might not be)
Enter ALA Code here: (text box for entering the desired code for this layer) ... (And an Apply button, if needed, might not be)
Add New ALA (Button for adding a new line)
My calibration tests can have up to 9 different temperature changes and they happen every 10mm. It takes some time to find the layers, and I need to add that code every time for every test. This would save time and limit human errors from occurring.
For an ALA Height Tool-tip description, I would mention something like:
Enter the height at which you would like to make a change
For an ALA Code Tool-tip description, I would mention something like:
Add your code here (ex. M104 S220 which makes Extruder 1 stabilize its temp at 220C)
For an Add New ALA Tool-tip description, I would mention something like:
Press button to add a new layer for an additional change you wish to make
So, here would be an example formula for your code (in mm):
- ((heightForAfterLayerAction - firstLayerHeight) / defaultLayerHeight) = PreliminaryLayerCount
LayerCount = RoundUp(PremliminaryLayerCount) (PLC variable rounded UP to the nearest whole number)
LayerCount + 1 = layerLevel (the M117 Level number)
The variable names are self-explanatory. You take the height in mm and subtract the initial layer out (to be added back into the formula later). Then you take that figure and divide it by the main layer height in the Project Settings window. Get that answer, round up to the nearest whole number and add 1 to it (the 1 is for the initial layer you originally subtracted out). Now you are left with the M117 Level number.
So for my case, I tell the program I want "10mm" for my change, and I want "M104 S220" for my desired code. And here is what the program figures out:
- ((10mm-0.25mm) / 0.2mm) = 48.75
*48.75 rounded up is 49
*49 + 1 = 50
So I would have a M117 Level of 50 for 10mm high. Then the program adds the "M104 S220" afterward.
I hope this is clear. Let me know if you have any questions.