mycnc:flatbed_correction
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
mycnc:flatbed_correction [2019/12/20 11:51] – ivan | mycnc:flatbed_correction [2019/12/20 12:01] – ivan | ||
---|---|---|---|
Line 34: | Line 34: | ||
< | < | ||
- | (Surface measure macro) | + | (Surface measure macro) |
- | G28.2 Z0 (save current Z into Register1.Z) | + | G28.2 Z0 (save current Z into Register1.Z) |
- | + | ||
- | M89 L1 P8 (watch for input(P) | + | M89 L1 P8 (watch for input(P) |
- | G91 G0 Z -35.000 F 400.0 | + | G91 G0 Z -35.000 F 400.0 |
- | (move down, stop if sensor triggered) | + | (move down, stop if sensor triggered) |
- | G91 G0 Z 2.000 F 800.0 | + | G91 G0 Z 2.000 F 800.0 |
- | M89 L1 P8 (watch for input(P) | + | M89 L1 P8 (watch for input(P) |
- | G91 G0 Z -2.000 F 20.0 | + | G91 G0 Z -2.000 F 20.0 |
- | + | | |
- | G4 P0.2 | + | G4 P0.2 |
- | + | ||
- | G90 G10 L81 P8171 Q5021 | + | G90 G10 L81 P8171 Q5021 |
- | G90 G10 L81 P8172 Q5022 | + | G90 G10 L81 P8172 Q5022 |
- | G90 G10 L81 P8173 Q5023 | + | G90 G10 L81 P8173 Q5023 |
- | | + | |
- | G90 G10 L80 P8170 Q1 | + | G90 G10 L80 P8170 Q1 |
- | + | ||
G91 G0 Z10 | G91 G0 Z10 | ||
</ | </ | ||
+ | |||
+ | Here, you have to edit the two lines with the EDIT THIS comments. In the input P, you have to specify the input number for the sensor (set as 8 in this example), and in the L field you have to specify the behaviour that will be interpreted as the sensor being triggered (0 for a normally closed sensor which will be opened when triggered, and 1 for a normally open sensor which will be closed at contact). |
mycnc/flatbed_correction.txt · Last modified: 2022/12/01 11:37 by ivan