EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK ONE MCP 2400.4c

Siemens SINUMERIK ONE MCP 2400.4c Programming Manual

Siemens SINUMERIK ONE MCP 2400.4c
1334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #572 background imageLoading...
Page #572 background image
Examples
Example 1
Program code Comment
N10 DEF BOOL RESULT ; Definition of result variables.
N20 RESULT=ISFILE("TESTFILE")
N30 IF(RESULT==FALSE)
N40 MSG("FILE DOES NOT EXIST")
N50 M0
N60 ENDIF
...
Example 2
Program code Comment
N10 DEF BOOL RESULT ; Definition of result variables.
N20 RESULT=ISFILE("TESTFILE")
N30 IF(NOT ISFILE("TESTFILE"))
N40 MSG("FILE DOES NOT EXIST")
N50 M0
N60 ENDIF
...
3.5.5 Read out file information (FILEDATE, FILETIME, FILESIZE, FILESTAT,
FILEINFO)
The FILEDATE, FILETIME, FILESIZE, FILESTAT, and FILEINFO commands read out
specific file information such as date/time of the last write access, current file size, file status or
all of this information.
Requirement
The currently set protection level must be equal to or greater than the show right of the
superordinate directory. If this is not the case, access is denied with an error message (return
value of error variable = 13).
Syntax
FILE....(<Error>,"<File name>",<Result>)
Meaning
FILEDATE: Returns the date of the last write access to a file
FILETIME: Returns the time of the last write access to a file
FILESIZE: Returns the current size of a file
Work preparation
3.5 File handling
NC programming
572 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0

Table of Contents

Other manuals for Siemens SINUMERIK ONE MCP 2400.4c

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK ONE MCP 2400.4c and is the answer not in the manual?

Siemens SINUMERIK ONE MCP 2400.4c Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK ONE MCP 2400.4c
CategoryControl Systems
LanguageEnglish

Related product manuals