-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathPROBECIRCULARBOSS
More file actions
executable file
·39 lines (31 loc) · 1.22 KB
/
PROBECIRCULARBOSS
File metadata and controls
executable file
·39 lines (31 loc) · 1.22 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
39
//Copyright 2024 Toolpath Labs Inc., Justin Gray, and Josh Smith
//PROBECIRCULARBOSS
//Description: Probe a circular boss 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
//#3 is the Z drop height
//#9 print results enabled by fusion360
//#17 turns on inspection report on/off: 0 leaves it off default; 1 turns it on
//#18 oversize tolorance
//#19 enable oversize check
//calling our web macros the first time centers us
G65 "PROBEXWEB" A#1 B#2 C#3 I#9 Q0 R#18 S#19
G65 "PROBEYWEB" A#1 B#2 C#3 I#9 Q0 R#18 S#19
//calling our web macros the second time gives an accurate center
G65 "PROBEXWEB" A#1 B#2 C#3 I#9 Q0 R#18 S#19
G65 "PROBEYWEB" A#1 B#2 C#3 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