-
Notifications
You must be signed in to change notification settings - Fork 0
/
mfunc57.mac
45 lines (33 loc) · 1.88 KB
/
mfunc57.mac
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
;------------------------------------------------------------------------------
; Filename: mfunc57.mac - To run from VCP AUX 14 key, set p293 = 5711
; M57 macro
; Description: User Customizable Macro
; Notes:
; Requires: Machine home must be set prior to use.
; Please see TB300 for tips on writing custom macros.
;------------------------------------------------------------------------------
IF #50010 ;Prevent lookahead from parsing past here
IF #4201 || #4202 THEN GOTO 1000 ;Skip macro if graphing or searching
M225 #100 "Work zero will be set to Machine X,Y Coordinates 0.759, 1.1755. Press Cycle Start to Continue"
N100 ;Insert your code between N100 and N1000
G28 ;Go to Home Position
G91 ;Incremental mode
G00 X0.759 Y1.1755 ;Rapid to machine coords 0.759,1.1755
G92 X0 Y0 ;Set work zero to 0,0 at machine coords
;------------------Example Macro for DustFootActivate Output---------------------------
;Use Aux 10 and Aux 11 to Turn on and Off DustFootActivate Output
;M94 is used to Turn on a variable in PLC which in turn activates logic in the PLC
;M95 is used to Turn Off the variable
;Remove the ";" infront of code below in mfunc57 and mfunc58 to use
;M94 /28 ;Turn On DustFootActivate
;------------------------------End of Example-------------------------------------------
;-----------------Example Macro for LaserAlignActivate Output---------------------------
;Uses Aux 10 to Turn On the LaserAlignActivate Output for 10 Seconds
;M94 is used to Turn on a variable in PLC which in turn activates logic in the PLC
;M95 is used to Turn Off the variable
;Remove the ";" infront of the code below
;M94 /29 ;Turn On LaserAlignActivate
;G4 P10 ;Waits 10 seconds
;M95 /29 ;TurnOff LaserAlignActivate
;------------------------------End of Example-------------------------------------------
N1000 ;End of Macro