Siemens Sinumerik 840D sl Programming Manual page 143

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

Advertisement

Note
When writing into the passive file system of the NCK, the WRITE command implicitly inserts
an "LF" character (LINE FEED = new line) at the end of the output string.
This behavior does not apply for output on an external device/file. If an "LF" is also to be
output, then this must be explicitly specified in the output string.
→ also refer to example 3: Implicit/explicit "LF"!
General conditions
Maximum file size ( → machine manufacturer)
The maximum possible file size of log files in the passive file system 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 in the
passive file system. 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.
Examples
Example 1: WRITE command into the passive file system without absolute path data
Program code
N10 DEF INT ERROR
N20 WRITE(ERROR,"PROT","LOG FROM 7.2.97")
N30 IF ERROR
N40 MSG ("Error with WRITE command:" <<ERROR)
N50 M0
N60 ENDIF
...
Example 2: WRITE command into the passive file system with absolute path data
Program code
...
WRITE(ERROR,"/_N_WKS_DIR/_N_PROT_WPD/_N_PROT_MPF","LOG FROM 7.2.97")
...
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Flexible NC programming
1.18 Write file (WRITE)
Comment
; Definition of error
variables.
; Write the text from "LOG
FROM 7.2.97" to file
_N_PROT_MPF.
; Error evaluation.
143

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents