FB_BA_PersistentKeyValueFile

FB_BA_PersistentKeyValueFile 1:

The FB_BA_PersistentKeyValueFile provides built-in data handling for persistent data in key-value pair format.

File format

Any number of data records can be represented as key-value pairs:

FB_BA_PersistentKeyValueFile 2:

The file path ends with the extension *.psd, *.kv, or *.csv.

Workflow

Write

FB_BA_PersistentKeyValueFile 3:

Read

FB_BA_PersistentKeyValueFile 4:

Inherits from: FB_BA_PersistentCsvFile

Implemented: I_BA_KeyValueFileWriter, I_BA_KeyValueFileReader

Syntax

FUNCTION_BLOCK FB_BA_PersistentKeyValueFile EXTENDS FB_BA_PersistentCsvFile IMPLEMENTS I_BA_KeyValueFileWriter, I_BA_KeyValueFileReader
VAR_INPUT CONSTANT
  {region 'Settings'}
    iOwner        : I_BA_PersistentKeyValueFileProvider;
  {endregion}
END_VAR

FB_BA_PersistentKeyValueFile 5: Inputs CONSTANT

Name

Type

Description

iOwner

I_BA_PersistentKeyValueFileProvider

Interface to the source of the files to be read and written.