Siemens SINUMERIK 840D sl Programming Manual page 150

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.18 Write file (WRITE)
General conditions
● Maximum file size (→ machine manufacturer)
Examples
Example 1: WRITE command without absolute path data
Program code
N10 DEF INT ERROR
N20 WRITE(ERROR,"TEST1","LOG FROM 7.2.97")
N30 IF ERROR
N40 MSG ("Error with WRITE command:" <<ERROR)
N50 M0
N60 ENDIF
...
Example 2: WRITE command with absolute path data
Program code
...
WRITE(ERROR,"/_N_WKS_DIR/_N_PROT_WPD/_N_PROT_MPF","LOG FROM 7.2.97")
...
150
The maximum possible file size of log files is set with the machine data:
MD11420 $MN_LEN_PROTOCOL_FILE
The maximum file length is applicable for all files created using the WRITE command. If it
is exceeded an error message is output and the block or data is not saved. If there is
sufficient free memory, a new file can be created.
Comment
; Definition of error
variables.
; Write the text from "LOG
FROM 7.2.97" to file
_N_TEST1_MPF.
; Error evaluation.
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents