SILOS – Save input string, load output string

Block SymbolLicensing group: STANDARD
PIC

Function Description
The SILOS block can be used to export or import a string to/from a file. The string is saved when a rising edge (off on) occurs at the SAVE input and the string is also set to the sy output. The string is loaded at startup and when a rising edge (off on) occurs at the LOAD input.

Alternatively it is possible to write or read the string continuously if the corresponding flag (CSF, CLF) is set to on. The disk operation is then performed when the corresponding input is set to on. Beware, in that case the disk operation is executed in each cycle, which can cause excessive use of the storage medium. Thus it is necessary to use this feature with caution.

The fname parameter defines the location of the file on the target platform. The path is relative to the folder where the archives of the REX Control System are stored.

Inputs

su

String input of the block  0

string

SAVE

Save string to file

bool

LOAD

Load string from file

bool

Parameters

fname

Name of persistent storage file

string

CSF

Continuous saving

bool

CLF

Continuous loading

bool

Outputs

sy

String output of the block

string

E

Error indicator

bool

off ..

No error

on ...

An error occurred

iE

Error code of the operating system

long