Siemens sinumerik 840d Programming Manual page 82

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

Flexible NC Programming
1
1.17 WRITE: Write file (as from SW 4.3)
840D
840D
NCU 571
NCU 572
NCU 573
Function
Using the WRITE command, data (e.g.
measurement results for measuring cycles) can be
appended to the end of the specified file.
The maximum length in KB of the log files is set via
MD 11420 LEN_PROTOCOL_FILE. This length is
applicable for all files created using the WRITE
command.
Once the file reaches the specified length, an error
message is output and the string is not saved. If there is
sufficient free memory, a new file can be created.
The created files can be
• read, edited and deleted by all users,
• written in the part program that is currently being
executed.
The blocks are inserted at the end of the file, after M30.
Programming example
N10 DEF INT ERROR
N20 WRITE(ERROR,"TEST1","LOG FROM
N30 IF ERROR
N40 MSG ("Error with WRITE command:"
N50 M0
N60 ENDIF
...
WRITE(ERROR,
"/_N_WCS_DIR/_N_PROT_WPD/_N_PROT_MPF",
"LOG FROM 7.2.97")
Additional notes
• If no such file exists in the NC, it is newly created
and can be written to by means of the WRITE
command.
1-82
810D
840Di
7.2.97")
<<ERROR)
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
;
; Write text from LOG FROM
7.2.97 in the file TEST1
;
;
;
;
; Absolute path
 Siemens AG 2000. All rights reserved
02.98
1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents