у меня задача подключить вытежку к станку, чтоб матч запускал вытяжку при начале и выключал при окончании работы.
в постпроцессоре надо прописать в начало М7, в конце - М9, будет включаться второе реле...
помогите правильно это сделать.
;
; Fanuc G - Code 4-Axis rotary post processor
;
; Linear Y Axis is wrapped onto A rotary axis
;
; History
;
; Who When What
; === ======== ========================================
; TM 04/07/95 Written
; BEM 06/08/96 Modified for Rotary Axis support
; BEM 19/06/00 Fixed
; BEM 03/02/00 Added description
; JVG 27/10/03 Modified for Mach2 controller, Wolverine3 or Elite6 machines
; JVG 12/12/03 Modified for Mach2 3axis machining
; JVG Feb 23 05 Small modifications with Bill P
DESCRIPTION = "Mach2 mm(*.cnc)"
;
FILE_EXTENSION = "cnc"
;
UNITS = MM
;
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;
; Block numbering
;
LINE_NUM_START = 0
LINE_NUM_INCREMENT = 1
LINE_NUM_MAXIMUM = 999999
;
; Set up default formating for variables
;
; Line numbering
FORMAT = [N|@|N|1.0]
; Spindle Speed
FORMAT = [S|@|S|1.0]
; Feed Rate
FORMAT = [F|#|F|1.0]
; Tool moves in x,y and z
FORMAT = [X|#|X|1.3]
FORMAT = [Y|#|Y|1.3]
FORMAT = [Z|#|Z|1.3]
; Home tool positions
FORMAT = [XH|@|X|1.3]
FORMAT = [YH|@|Y|1.3]
FORMAT = [ZH|@|Z|1.3]
;
; Set up program header
;
START = "%"
START = "G90"
;START = "G21"
; G20 = Use MM as unit value
START = "G49"
;START = "M6 T1"
; M6T1 = tool change via macros (commented out)
START = "M3 [S]"
;START = "M7"
; M7 = turn misting coolant on (commented out)
;
; Program moves
;
RAPID_RATE_MOVE = "[N] G0 [X] [Y] [Z]"
FIRST_FEED_RATE_MOVE = "[N] G1 [X] [Y] [Z] [F]"
FEED_RATE_MOVE = "[N] [X] [Y] [Z]"
;
;
; Arc Section
;
FIRST_CW_ARC_MOVE = "[N] G2 [X] [Y] R[Radius] [F]"
CW_ARC_MOVE = "[N] G2 [X] [Y] R[Radius]"
;
FIRST_CCW_ARC_MOVE = "[N] G3 [X] [Y] R[Radius] [F]"
CCW_ARC_MOVE = "[N] G3 [X] [Y] R[Radius]"
;
; End of file
;
END = "G0[ZH]"
END = "[XH][YH]"
END = "M05"
END = "M30"
END = "%"