-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathPROBEBORE
More file actions
executable file
·38 lines (30 loc) · 1.17 KB
/
PROBEBORE
File metadata and controls
executable file
·38 lines (30 loc) · 1.17 KB
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
29
30
31
32
33
34
35
36
37
38
//Copyright 2024 Toolpath Labs Inc., Justin Gray, and Josh Smith
//PROBEBORE
//Description: Probe a bore in X and Y
//Initial Coding: Justin Gray
//Modified 1/14/2024: Joshua Smith
//Simplified WCS extended number math, added probe error checking, added probe inspection report
//#1 is the work coordinate system to store offsets in
//#2 is the expected DIAMETER
//#9 print results enabled by fusion360
//#17 turns on inspection report on/off: 0 leaves it off default; 1 turns it on
//#19 oversize tolorance
//#20 enable oversize check
//calling our slot macros the first time centers probe
G65 "PROBEXSLOT" A#1 B#2 I#9 Q0 R#18 S#19
G65 "PROBEYSLOT" A#1 B#2 I#9 Q0 R#18 S#19
//calling our slot macros a second time gives an accurate inspection
G65 "PROBEXSLOT" A#1 B#2 I#9 Q0 R#18 S#19
G65 "PROBEYSLOT" A#1 B#2 I#9 Q0 R#18 S#19
//average Diameter calculation
//@999 and @998 are set in the web macros
@997 = [@998 + @999]/2
//simple inspection reporting
IF[#17>0]
MENU_ADD["Part Diameter In X: @998",""];
MENU_ADD["Part Diameter In Y: @999",""];
MENU_ADD["AVG Diameter: @997",""]; //THE WORD AVERAGE IS TO LONG FOR THE MENU
MENU["INSPECTION REPORT","RESULTS","",1];
END_IF
G90
M99