Definition of file names

With that command in NC program file names can be defined, which are used from specific NC functions for example for the creation of a report file or for the call of a NC program.

#FILENAME [ <file_id>"<filename>" { <file_id>"<filename>" } ] (modal)

<file_id> File identification

file id's

Significance

MSG

Name of the report file for #MSG SAVE.

Default name is "message.txt".

M6

Name of the global sub program for implicit program call at M6 in NC program. The name is valid until M30. M6 is not used as M function anymore!

Default name is set in[1]-43.

G80 – G89

Name of the global sub programs for implicit program calls at G80 –G89 in NC program. The names are valid until M30.

Default names are set in[1]-45.

G800- G819

Name of the global sub programs for additional implicit program calls at G800 –G819 in NC program. The names are valid until M30.

Default names are set in[1]-46.

Optional an equation sign (=) can be programmed between <file_id> and <filename>. The file names can be defined or changed in NC programe with #FILENAME at any time.

The file names are set on the default name at RESET and NC program start.

Programming examples

%example1 
N10 #FILENAME[ MSG="prog_flow.txt" ]
N20 $IF V.E.PLC_START_HOME == 1
N30 G74 X1 Y2 Z3
N40 #MSG SAVE["Homing executed"] Output in prog_flow.txt
N50 $ENDIF
:
Nxx #MSG SAVE["Roughing OK"]
:
Nxx #MSG SAVE["Finishing OK"]
N985 V.E.WP_CNTR = V.E.WP_CNTR+1
N990 #MSG SAVE["Workpiece No. %d OK", V.E.WP_CNTR]
M1000 M30
%example2
N10 #FILENAME[ M6="tool_change.nc" ]
N20 G00 X100 Y100 Z0
N30 M6 Call of tool change program tool_change.nc
:
M1000 M30
%example3
N10 #FILENAME[ G80="g80_up_test.nc" ]
N20 G00 X100 Y100 Z50
N30 G80 Call of sub program g80_up_test.nc
:
M1000 M30
%example4
N10 #FILENAME[ G800="g800_up_test.nc" G815="g815_up_test.nc"]
N20 G00 X100 Y100 Z50
N30 G800 Call of sub program g800_up_test.nc
:
N90 G815 Call of sub program g815_up_test.nc
:
M1000 M30