Siemens SINUMERIK 840D sl Commissioning Manual page 689

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

5.17
FILE_ERR variable
Description
Variable FILE_ERR can be used to check whether the preceding GC or CP command has
been executed correctly.
Programming
Syntax:
Description:
Return value:
Example
CP("D:\source.mpf","E:\target.mpf")
IF FILE_ERR > 0
ELSE
ENDIF
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
FILE_ERR
The FILE_ERR variable is read-only.
0 = Operation okay
1 = Drive/path not available
2 = Path/file access error
3 = Drive not ready
4 = Incorrect file name
5 = File is already open
6 = Access denied
7 = Target path not available or not permitted
8 = Copy source same as target
10 = Internal error: FILE_ERR = 10 means that the error cannot be
IF FILE_ERR == 1
VAR5 = "Drive/path not available"
ELSE
IF FILE_ERR == 2
VAR5 = "Path/file access error"
ELSE
IF FILE_ERR == 3
VAR5 = "incorrect file name"
ENDIF
ENDIF
ENDIF
VAR5 = "All OK"
Possible results are:
classified in the other categories.
5.17 FILE_ERR variable
; Copy from source.mpf to
E:\target.mpf
; Query whether error has occurred
; Query specific error numbers and
output associated error text
; If no errors have occurred in CP
(or GC), "All OK" is output
Variables
71

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents