Presentation of the Library

 

General Information

Library Overview

The FileFormatUtility library implements functions which provide simplified access to the files on the file system of the controller. Further, it provides a set of functions to facilitate creating a text STRING in JavaScript Object Notation (JSON) format.

For file access, the following functions are supported:

oSimplified read and write access to files in XML (eXtensible Markup Language) and CSV (Comma-Separated Values) format.

oGeneral write access to a file on the file system of the controller, regardless of the format.

Characteristics of the Library

The table indicates the characteristics of the library:

Characteristic

Value

Library title

FileFormatUtility

Company

Schneider Electric

Category

oUtil

oApplication/Util

Component

FileFormatUtility

Default namespace

FFU

Language model attribute

qualified-access-only

Forward compatible library

Yes (FCL)

NOTE: For this library, qualified-access-only is set. This means, that the POUs, data structures, enumerations, and constants have to be accessed using the namespace of the library. The default namespace of the library is FFU.

Example Project

In conjunction with the library, the example projects CSV File Handling and XML File Handling are provided. The example projects demonstrate how to implement the components from the FileFormatUtility library.

The example project is installed on your PC along with the programming software. To open the project example, proceed as follows:

Step

Action

Comment

1

In the EcoStruxure Machine Expert Logic Builder, execute the command New Project.

2

In the New Project dialog box, select From Example from the Project type list.

3

On the right-hand side of the New Project dialog box, click the button Toggle Filter.

Result: Available examples are listed in the drop down menu.

4

Select your example from the drop down menu.

5

Select your controller from the Available Controller list.

6

Enter a name for the new project, and select the file location.

7

Click the OK button.

Result: A new project is created based on the selected example.