PersistenceChannel (FB)

FUNCTION_BLOCK PersistenceChannel EXTENDS AC.Module IMPLEMENTS ICmpEventCallback, IPersistenceChannel4, IMaxObjSizeProvider

InOut:

Scope

Name

Type

Initial

Comment

Input

itfDataStorage

IDataStorage

submodules

tPeriodicSaving

TIME

TIME#60m0s0ms

parameters

xSaveOnChange

BOOL

FALSE

Do not change this value while the application is running

xReadVarsDuringInit

BOOL

FALSE

xCompressTags

BOOL

TRUE

xConsistentCopyInHighPrioTask

BOOL

FALSE

xConvertVarsWithDifferentType

BOOL

TRUE

xIntegrityCheckBeforeReading

BOOL

TRUE

xSeparateArchivePerToplevelInstance

BOOL

FALSE

xMakeDataCRCConsistencyCheck

BOOL

FALSE

uiSavingRetriesIfCRCCisistencyCheckFails

UINT

0

xLogSaveTimeEnabled

BOOL

TRUE

eAutomaticActionOnlineChange

AutomaticActionOnlineChange

AutomaticActionOnlineChange.Save

eAutomaticActionPlcStop

AutomaticActionPlcStop

AutomaticActionPlcStop.Save

uiNumberOfLists

UINT

pinstlist

POINTER TO PersistentInstanceList

xChannelDisabled

BOOL

FALSE

IOs

Output

xActionOngoing

BOOL

the FB is currently active

udiNumberOfVars

UDINT

udiDataMemSize

UDINT

xReadingDone

BOOL

dtLastReading

DT

udiNumberVarsNotOk

UDINT

udiNumberVarsOk

UDINT

tTimeForReading

TIME

dtLastSaving

DT

tTimeForWriting

TIME

udiWritingCycles

UDINT