Hello Guest it is January 28, 2020, 02:53:49 PM

Author Topic: post processor modification  (Read 90 times)

0 Members and 1 Guest are viewing this topic.

post processor modification
« on: January 13, 2020, 05:38:11 AM »
good morning
I would like to insert in the gcode (saved by artcam) the date of creation of the file, example:
(FILE = clock)
date <--------------------------------------------
(MATERIAL MEASUREMENT) (X = 310.000, Y = 380.000, Z = 10.400)
  (3,000 mm Flat tool diam.)
%
G90
G49
M3 S15000
G0 X-1.097 Y-10.347 Z3.000
G1 Z-0.936 F1140
.........
I do not know if it is feasible, I ask for help from those who know more than me
the post processor that I use is the following:

;
; 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(*.txt)"
;
FILE_EXTENSION = "txt"
;
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 = "(FILE=[FILENAME])"
START = "(MISURA MATERIALE) (X=[XSIZE], Y=[YSIZE], Z=[ZMATERIAL])"
START = " ([TOOLDESC])"
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 "
;START = "M7"
; M7 = turn misting coolant on (commented out)
;
; Program moves
;
FIRST_RAPID_RATE_MOVE  = "G0 [X] [Y] [Z]"
FIRST_FEED_RATE_MOVE   = "G1 [X] [Y] [Z] [F]"
FEED_RATE_MOVE         = "[X] [Y] [Z]"
;
; End of file
;
END = "G0[ZH]"
END = "[XH][YH]"
END = "M05"
END = "M30"
END = "%"


  I sincerely thank those who can help me
regards
Re: post processor modification
« Reply #1 on: January 15, 2020, 08:48:05 PM »
Have you tried to look at a different post that has this option? I know the post processor in mastercam x4 - 2019 have this in the post and it is done by inserting it under the file name and material type in the same way the file name and material type is posted
Cadcam Man
Re: post processor modification
« Reply #2 on: January 15, 2020, 09:02:43 PM »
This is how mastercam placed the time and date in the post processor
Cadcam Man