
UPS (persistent data)
CX20x0
71
Version: 2.5
9.1
Windows write filter
Since the persistent data are stored on a storage medium, the file and the path must be writeable. If you use
the Windows write filter, the Windows partition is protected against write access operations, and the
persistent data are not saved.
9.2
Checking the validity of the variables
For TwinCAT 2 the implicit structure Systeminfotype.bootDataFlags can be read in order to determine the
validity of the persistent data (see: SYSTEMINFOTYPE).
For TwinCAT 3 the implicit variables PlcAppSystemInfo.BootDataLoaded and
PlcAppSystemInfo.OldBootData are available for determining the validity of the persistent data (see:
PlcAppSystemInfo).
9.2.1
PlcAppSystemInfo
Each PLC contains an instance of type 'PlcAppSystemInfo' with the name '_AppInfo'.
The corresponding namespace is 'TwinCAT_SystemInfoVarList'. This must be specified for use in a library,
for example.
TYPE PlcAppSystemInfo
STRUCT
ObjId : OTCID;
TaskCnt : UDINT;
OnlineChangeCnt : UDINT;
Flags : DWORD;
AdsPort : UINT;
BootDataLoaded : BOOL;
OldBootData : BOOL;
AppTimestamp : DT;
KeepOutputsOnBP : BOOL;
ShutdownInProgress : BOOL;
LicensesPending : BOOL;
BSODOccured : BOOL;
TComSrvPtr : ITComObjectServer;
AppName : STRING(63);
ProjectName : STRING(63);
END_STRUCT
END_TYPE
Содержание CX20 0 Series
Страница 1: ...Manual EN CX20x0 Embedded PC 11 10 2021 Version 2 5...
Страница 2: ......
Страница 5: ...Table of contents CX20x0 5 Version 2 5 List of tables 88 List of figures 90...
Страница 6: ...Table of contents CX20x0 6 Version 2 5...
Страница 91: ......