File: layer-detect.gcode

package info (click to toggle)
printrun 2.0.0~rc8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,060 kB
  • sloc: python: 13,447; xml: 62; ansic: 20; makefile: 16; sh: 12
file content (28 lines) | stat: -rw-r--r-- 726 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
; Print this file to see the parsed layers
; This file contains lines from https://github.com/kliment/Printrun/pull/1069#issuecomment-692127342
; Interesting points:
; Are layers snapped (merged,disappear) to near ones?
; Are layers z coordinates modified?
; Are layers without extrusion snapped to previous?
; Handling of last layer - is extrusion respected?

G1 Z5 ; lift nozzle

G1 Z0.200 ; move to next layer (0)
G0 Y1
G1 X100 E1
G1 Z0.203 ; move to next layer (1)
G0 X1
G1 X100 E2
G1 Z0.300 ; move to next layer (2)
G0 X1
G1 X100 E3
G1 Z0.398 ; move to next layer (3)
G0 X1
G1 X100 E4
G1 Z0.458 ; move to next layer (4)
G0 X1
G1 X100 E5
G1 Z0.503 ; move to next layer (5)

;@!print([l.z for l in self.fgcode.all_layers])