MODE (ENUM)

TYPE MODE :

This data type defines mode values for file access to use with the FILE.Open function block.

Attributes:

qualified_only

InOut:

Name

Initial

Comment

MWRITE

0

Write access, file will be overwritten or created

MREAD

Read access, file will only be opened for reading

MRDWR

Read- and Write access, the file will be overwritten or created

MAPPD

File will be opened in WRITE mode, but the written data will be appended at the end of the file

MREADPLUS

Open an existing file with Read/Write access. If file does not exist, Open fails

MWRITEPLUS

Create new file with Read/Write access. If file does exist, content is discarded (Identical with FILE_MRDWR)

MAPPENDPLUS

Open an existing file with Append (read/write) access. If file does not exist, Open creates a new file