FB_BA_PersistentBinaryFile

FB_BA_PersistentBinaryFile 1:

The FB_BA_PersistentBinaryFile provides built-in data handling for persistent data in a binary (byte) format. The operation is performed in multiple chunks.

File format

Individual data items (of varying lengths) can be handled in segments:

FB_BA_PersistentBinaryFile 2:

The file path ends with the extension *.psd or *.bin.

Workflow

Write

FB_BA_PersistentBinaryFile 3:

Read

FB_BA_PersistentBinaryFile 4:

Inherits from: FB_BA_PersistentFile

Syntax

FUNCTION_BLOCK FB_BA_PersistentBinaryFile EXTENDS FB_BA_PersistentFile
VAR_INPUT CONSTANT
  {region 'Settings'}
    iOwner    : I_BA_PersistentBinaryFileProvider;
  {endregion}
END_VAR

FB_BA_PersistentBinaryFile 5: Inputs CONSTANT

Name

Type

Description

iOwner

I_BA_PersistentBinaryFileProvider

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