-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathKnifeDefaults.sbp
More file actions
60 lines (50 loc) · 1.7 KB
/
KnifeDefaults.sbp
File metadata and controls
60 lines (50 loc) · 1.7 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
VD,,5
VU,,,,,,,,,11.1111,,,,,1,,
VS,,,,2000,,,,2000
VN,,,,,,,,0
&SCALE = 1
IF %(25) = 1 THEN &SCALE = 25.4
'The function of your knife will now be tested. First we will home your machine.
PAUSE
C3
M2,8*&SCALE,8*&SCALE
'The Keypad will open. If necessary move the Z axis of your machine up so that the knife blade is at least 6" (150mm) off the table. Exit the keypad when finished.
PAUSE
SK
'Now we will lower the knife using the pneumatic cylinder. Press "OK" when a prompt warning of spindle start appears.
PAUSE
SO,5,1
PAUSE 2
SO,5,0
MSGBOX(Did the pneumatic cylinder extend and retract?, YesNo, Error Check)
IF &msganswer = no THEN GOTO CYLINDERERROR
'Now we will check the oscillation function of the knife.
PAUSE
SO,6,1
PAUSE 2
SO,6,0
MSGBOX(Did the knife vibrate briefly?, YesNo, Error Check)
IF &msganswer = no THEN GOTO VIBRATIONERERROR
'Now we will check the rotation of the knife. The blade should make one full rotation from its current location.
PAUSE
ZB
MB,360
MSGBOX(Did the knife rotate 360 degrees?, YesNo, Error Check)
IF &msganswer = no THEN GOTO ROTATIONERERROR
'Function tests successfully completed!
PAUSE
END
'ERROR MESSAGES
'--------------------------------------------------------------------------------------------------------------
CYLINDERERROR:
'There is a problem with the function of Output 5. Please refer to the wiring section of the installation manual.
PAUSE
END
VIBRATIONERROR:
'There is a problem with the function of Output 6. Please refer to the wiring section of the installation manual.
PAUSE
END
ROTATIONERERROR:
'There is a problem with the motor connection. Please refer to the wiring section of the installation manual.
PAUSE
END