Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
touchprobe [2017/01/25 18:36] arthur |
touchprobe [2017/01/25 18:55] (current) arthur |
||
---|---|---|---|
Line 10: | Line 10: | ||
This will move to Z-10 and stop when a touch happens during that move: | This will move to Z-10 and stop when a touch happens during that move: | ||
- | [[code]] | + | <code> |
G90 | G90 | ||
G31 Z-10 F150 | G31 Z-10 F150 | ||
- | [[/code]] | + | </code> |
This will probe at a fast speed, retract, probe at a slow speed and report the position: | This will probe at a fast speed, retract, probe at a slow speed and report the position: | ||
- | [[code]] | + | <code> |
G91 | G91 | ||
G31 Z-10 F300 | G31 Z-10 F300 | ||
Line 22: | Line 22: | ||
G31 Z-0.3 F50 | G31 Z-0.3 F50 | ||
M114 | M114 | ||
- | [[/code]] | + | </code> |
Additional to the M114 every touch is logged to a file (for more information see: [[touchprobe#toc2 |Using log files]]) | Additional to the M114 every touch is logged to a file (for more information see: [[touchprobe#toc2 |Using log files]]) | ||
Line 29: | Line 29: | ||
The touchprobe module has the following configuration values (the values here are the default) | The touchprobe module has the following configuration values (the values here are the default) | ||
- | [[code]] | + | <code> |
touchprobe_enable false # enables/disables the module the other config values are ignored if this is false | touchprobe_enable false # enables/disables the module the other config values are ignored if this is false | ||
touchprobe_log_enable false # should the touches be logged | touchprobe_log_enable false # should the touches be logged | ||
Line 36: | Line 36: | ||
touchprobe_pin nc # selects the pin where the probe is connected | touchprobe_pin nc # selects the pin where the probe is connected | ||
touchprobe_debounce_count 100 # reports a touch if the probe is active for this number of ticks (prevents false positives) | touchprobe_debounce_count 100 # reports a touch if the probe is active for this number of ticks (prevents false positives) | ||
- | [[/code]] | + | </code> |
= Using log files | = Using log files | ||
Line 45: | Line 45: | ||
1. Find out how many points has been logged ( *nix users can use 'wc -l' for that) | 1. Find out how many points has been logged ( *nix users can use 'wc -l' for that) | ||
2. Append the following header: | 2. Append the following header: | ||
- | [[code]] | + | <code> |
ply | ply | ||
format ascii 1.0 | format ascii 1.0 | ||
Line 56: | Line 56: | ||
property list uchar int vertex_indices | property list uchar int vertex_indices | ||
end_header | end_header | ||
- | [[/code]] | + | </code> |
3. Replace 'xxxxxxxx' with the number you found in step 1 | 3. Replace 'xxxxxxxx' with the number you found in step 1 | ||
4. You're done | 4. You're done |