You are here: Technical References > Programming Languages > PLC Advanced Libraries > File Management

About the File Management Functions

The following functions enable sequential read / write operations in disk files:

Name Use
F_AOPEN Create or open a file in append mode
F_CLOSE Close an open file
F_COPY Copy a file
F_DELETE Remove a file
F_EOF Test if the end of the file is reached in a file that is open for reading
F_EXIST Test if a file exists
F_GETSIZE on pg. 1 Get the size of a file
F_RENAME Rename a file
F_ROPEN Open a file for reading
F_SEEK Set the current position of a file
F_WOPEN Create or reset a file and open it for writing
FA_READ Read a DINT integer from a binary file
FA_WRITE Write a DINT integer to a binary file
FB_READ Read binary data from a file
FB_WRITE Write binary data to a file
FM_READ Read a string value from a text file
FM_WRITE Write a string value to a text file
SD_ISREADY Check that the SD card is ready for read/write
SD_MOUNT Mount an SD card
SD_UNMOUNT Unmount an SD card

Each file is identified in the application by a unique handle manipulated as a DINT value. The file handles are allocated by the target system. Handles are returned by the Open functions and used in all other calls for identifying the file.

Related function blocks:

LogFileCSV  log values of variables to a CSV file

 

SD Card Access

File Path Conventions

File Management Functions

File Management Function Examples


Stay Connected with Kollmorgen

Copyright © 2015 Kollmorgen™