printrun-src/testfiles/layer-detect.gcode

Tue, 19 Jan 2021 20:45:09 +0100

author
mdd
date
Tue, 19 Jan 2021 20:45:09 +0100
changeset 45
c82943fb205f
permissions
-rw-r--r--

updated main files to new github master version

45
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
1 ; Print this file to see the parsed layers
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
2 ; This file contains lines from https://github.com/kliment/Printrun/pull/1069#issuecomment-692127342
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
3 ; Interesting points:
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
4 ; Are layers snapped (merged,disappear) to near ones?
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
5 ; Are layers z coordinates modified?
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
6 ; Are layers without extrusion snapped to previous?
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
7 ; Handling of last layer - is extrusion respected?
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
8
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
9 G1 Z5 ; lift nozzle
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
10
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
11 G1 Z0.200 ; move to next layer (0)
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
12 G0 Y1
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
13 G1 X100 E1
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
14 G1 Z0.203 ; move to next layer (1)
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
15 G0 X1
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
16 G1 X100 E2
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
17 G1 Z0.300 ; move to next layer (2)
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
18 G0 X1
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
19 G1 X100 E3
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
20 G1 Z0.398 ; move to next layer (3)
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
21 G0 X1
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
22 G1 X100 E4
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
23 G1 Z0.458 ; move to next layer (4)
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
24 G0 X1
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
25 G1 X100 E5
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
26 G1 Z0.503 ; move to next layer (5)
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
27
c82943fb205f updated main files to new github master version
mdd
parents:
diff changeset
28 ;@!print([l.z for l in self.fgcode.all_layers])

mercurial