-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathPROBECONFIG
More file actions
executable file
·46 lines (34 loc) · 2.28 KB
/
PROBECONFIG
File metadata and controls
executable file
·46 lines (34 loc) · 2.28 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
40
41
42
43
44
45
46
// Copyright 2024 Toolpath Labs Inc., Justin Gray, and Josh Smith
// PROBECONFIG
// Description: Probe Configuration File
// Initial Coding 1/25/2024: Joshua Smith
// macro to setup probe specs and units, called by every macro
// #20 turns off probe tool number checking : VACANT leaves it on ; non VACANT turns it off
// important global variables
@100 = -1 // PROBE TOOL NUMBER, EX: 99
IF [@100==-1]
ALARM["HARD CODE PROBE NUMBER IN PROBECONFIG MACRO"]
END_IF
@101 = R_TOOL_DATA[0,@100,3] // TOOL DIAMETER, DO NOT TOUCH!!!
@102 = @101/2 // TOOL RADIUS, DO NOT TOUCH!!!
@103 = 50 // FEED SPEED in/m, change to match your unit of choice, for metric users start at 2540mm
@104 = 50 // FAST PROBE SPEED in/m, change to match your unit of choice, for metric users start at 1270mm
@105 = 2.5 // SLOW PROBE SPEED in/m, change to match your unit of choice, for metric users start at 63mm
@106 = .5 // PROBE CLEARANCE DISTANCE in, change to match your unit of choice, for metric users start at 6mm
@107 = [R_TOOL_DATA[0,@100,203]] // TOOL LENGHT OFFSET, DO NOT TOUCH!!!
@108 = .125 // PROBE BACKOFF DISTANCE,change to match your unit of choice, for metric users start at 3mm
@109 = 2.9997 // CALIBRATED LENGTH OF YOUR MASTER GAUGE TOOL
@110 = .05 // DEFAULT PART TOLERANCE
// NOTE: @5109 STORES THE REFERENCE HEIGHT FOR FAST PROBE Z CALIBRATION
@111 = 99 // EXTENDED WORKOFFSET TO STORE PROBE Z CALIBRATION LOCATION
@112 = 100 // EXTENDED WORKOFFSET TO STORE TOOLSETTER LOCATION
@113 = 98 // EXTENDED WORKOFFSET TO STORE THE 4TH COR PROBING START POINT
@114 = .05 // DEFAULT POSITION TOLERANCE
@115 = 30 // FAST Tool Probe SPEED in/m, change to match your unit of choice, for metric users start at 762mm
@116 = 1.5 // SLOW Tool Probe SPEED in/m, change to match your unit of choice, for metric users start at 38mm
#120=R_SYS_INFO[0,2] // CURRENT TOOL NUMBER
IF [@100 != #120 && #20==#0] // THE PROBE IS NOT LOADED
ALARM["ERROR: PROTECTED MOVE WITHOUT PROBE - CHANGE TO T#100 "]
END_IF
G90
M99