Skip to content

Commit 0b5c07e

Browse files
committed
fix indenting and update example options for standard map files
1 parent 24ccf01 commit 0b5c07e

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

Bambu-gcodes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ Bambu AMS Toolchange
3434
| F523 | Filament extrude feedrate |
3535
| TXX | Extruder temperature XX |
3636

37+
## M620.11 - AMS Do Toolchange Long Retract Version
38+
39+
| Parameter | Notes |
40+
| -------- | ------- |
41+
| E | Move the extruder and AMS hub motor if negative. Move only AMS hub motor if positive. |
42+
| F523 | Filament extrude feedrate |
43+
| TXX | Extruder temperature XX |
44+
3745
## M621 - AMS Toolchange
3846

3947
Bambu AMS Toolchange

mfm-configuration-options-setup.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,16 @@ Filament/color positions are 0-based. The first position is represented by `0`.
2222
```json
2323
{
2424
"modelToRealWorldDefaultUnits": 1000,
25-
"modelOneToNVerticalScale": 250000,
26-
"modelSeaLevelBaseThickness": 3.6,
25+
"modelOneToNVerticalScale": 500000,
26+
"modelSeaLevelBaseThickness": 1.8,
2727
"realWorldIsolineElevationInterval": 500,
2828
"realWorldIsolineElevationStart": 500,
2929
"realWorldIsolineElevationEnd": 30000,
3030
"modelIsolineHeight": 0.1,
3131
"isolineColorIndex": 2,
3232
"isolineColorFeatureTypes": [
3333
"Outer wall",
34-
"Inner wall",
35-
"External perimeter",
36-
"Perimeter"
34+
"External perimeter"
3735
],
3836
"realWorldElevationReplacementColorStart": 2000,
3937
"realWorldElevationReplacementColorEnd": 30000,
@@ -45,7 +43,9 @@ Filament/color positions are 0-based. The first position is represented by `0`.
4543

4644
A map processed with this set of options will have the following appearance:
4745

48-
- Sea level start at 3.6mm in printed height.
46+
- Map elevation (Z) scale is 1:500000.
47+
48+
- Sea level start at 1.8mm in printed height.
4949

5050
- The first isoline (contour line) will start at 500m of real world height and future isolines will appear at 500m intervals (1000, 1500, 2000, etc). The isolines will stop at 30000m which is high enough to mean that the isolines will not stop on a normal map. The isoline color will use the filament loaded at index 2.
5151
- The isoline color will affect all wall/perimeter features.

src/mfm/map_post_process.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ def checkAndInsertToolchange(ps: PrintState, cf: Feature, f: typing.TextIO, out:
380380

381381
# Write Extra Purge Gcode if previous color needs it
382382
if loadedColors[ps.printingColor].extraPurgeIfPrevious:
383-
extraPurgeInsertionMatch = re.match(EXTRA_PURGE_INSERTION_RE, cl)
384-
if extraPurgeInsertionMatch:
385-
out.write(EXTRA_PURGE_GCODE)
383+
extraPurgeInsertionMatch = re.match(EXTRA_PURGE_INSERTION_RE, cl)
384+
if extraPurgeInsertionMatch:
385+
out.write(EXTRA_PURGE_GCODE)
386386

387387
f.seek(cp, os.SEEK_SET)
388388

@@ -398,7 +398,7 @@ def checkAndInsertToolchange(ps: PrintState, cf: Feature, f: typing.TextIO, out:
398398

399399
# Add the extra purge if needed
400400
if loadedColors[ps.printingColor].extraPurgeIfPrevious:
401-
tc_bare_code = tc_bare_code.replace(EXTRA_PURGE_INSERTION, EXTRA_PURGE_INSERTION + '\n' + EXTRA_PURGE_GCODE)
401+
tc_bare_code = tc_bare_code.replace(EXTRA_PURGE_INSERTION, EXTRA_PURGE_INSERTION + '\n' + EXTRA_PURGE_GCODE)
402402

403403
out.write(tc_bare_code)
404404

0 commit comments

Comments
 (0)