FB_BA_PersistentBlobFile

FB_BA_PersistentBlobFile 1:

The FB_BA_PersistentBlobFile provides built-in data handling for persistent data in a binary (byte) format.

Reading and writing operations are performed in a contiguous byte buffer (atomically) rather than in chunks, as is the case with FB_BA_PersistentBinaryFile.

File format

Contiguous data can be represented as a single data set:

FB_BA_PersistentBlobFile 2:

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

Workflow

Write

Read

Inherits from FB_BA_PersistentFile

Implemented: I_BA_PersistentBinaryFileProvider

Syntax

FUNCTION_BLOCK FB_BA_PersistentBlobFile EXTENDS FB_BA_PersistentBinaryFile IMPLEMENTS I_BA_PersistentBinaryFileProvider
VAR_INPUT
  pBuff      : PVOID;
  nBuff      : UDINT;
END_VAR

FB_BA_PersistentBlobFile 5: Inputs

Name

Type

Description

pBuff

PVOID

A pointer to the buffer to be read from or written to.

nBuff

UDINT

Length of the buffer in bytes.