Function Blocks For Handling Files In The Parameterization Memory - Phoenix Contact ILC 330 User Manual

Inline controllers
Table of Contents

Advertisement

Table 3-1
Overview of function blocks
Function Block
FILE_OPEN
FILE_CLOSE
FILE_READ
FILE_WRITE
FILE_REMOVE
FILE_TELL
FILE_SEEK
FILE_NOTIFY
6959_en_05
3.5
Function Blocks for Handling Files in the
Parameterization Memory
The function blocks are used to access files from within the application program. Some of
the blocks support multiple instantiation. This means that it is possible to work with a
number of different files within the same project. The blocks perform the standard functions
that are required for typical file-access operations.
The FILE_NOTIFY block is available in addition to the blocks for typical file-access
operations. This block can be used to detect files that have been modified in a directory
containing user files. These modifications may include:
Deletion of one or more files
Writing of one or more new files
Modification of one or more existing files
Both modifications made to this directory via FTP (remote) and modifications made locally
via function blocks or firmware services can be detected.
All file operations are subject to the following restrictions:
No directory hierarchies are supported. All file operations only affect the root directory of
the parameterization memory.
Short Description
Opens a file with a specific name
Closes a file with a specific handle
Reads from a file with a specific handle
Writes to a file with a specific handle
Deletes a file with a specific name
Determines the current position of the file pointer in a file
Moves the current file pointer to a new position
Displays files that have recently been created, deleted or modified
Technical Properties (Limit Values)
The string for a file name (for opening, deleting, and monitoring modifications) must
not exceed 80 characters in length.
Up to 64 files can be monitored for modifications.
Maximum number of instances for function blocks:
FILE_NOTIFY: 1 instance
Others: 8 instances
Minimum scan time for FILE_NOTIFY: 1 second
The Inline Controller Under PC WorX
PHOENIX CONTACT
3-3

Advertisement

Table of Contents
loading

Table of Contents