Hi all,
Has anyone had any luck in getting the *FILE_NAME* function to work? This would be very helpful.
Many thanks,
Outlier
Hi all,
Has anyone had any luck in getting the *FILE_NAME* function to work? This would be very helpful.
Many thanks,
Outlier
Hi All,
It appears that I seriously asked the wrong questions maybe this thread can be deleted by the moderators. See newer version with "documentname" variable. Apologies .... -O
Hello Outlier,
if you want to get on top the name of your program inside the NC file then try this for the Osai control in the postprocessor:
//MadCAM
*VERSION*
1.0_031210
*FILE_NAME*
;Osai
*FILE_EXTENSION*
nc
*FILE_DEST*
c:\postfiles\
*FILTER*
0.001
*OUTPUT_WIDTH*
4
*OUTPUT_DECIMALS*
2
*SCALE_1*
.
..
..
...
.
....
.
...
*PROGRAM_START*
N"lnbr" ; Nc gegenereerd op: "datetime"
N"lnbr" ;Documentname : "pgmnr"
N"lnbr" (UOT,"Origin_number", X0,Y0,Z0,B0,C0)
N"lnbr" M185 ; Convertor on
N"lnbr" G00 G79 Z0 "azero" "bzero"
N"lnbr" G71 G90
N"lnbr" ; -----END OFF PROGRAM_START-----
*END_SECTION*
Or for the Fanuc change the line like here below:
N"lnbr" (Documentname : "pgmnr")