Plcappsysteminfo - Beckhoff CX50 0 Series Hardware Documentation

Embedded-pc
Hide thumbs Also See for CX50 0 Series:
Table of Contents

Advertisement

5.5.2

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
ObjId
TaskCnt
OnlineChangeCnt
Flags
AdsPort
BootDataLoaded
OldBootData
AppTimestamp
KeepOutputsOnBP
ShutdownInProgress
LicensesPending
BSODOccured
TComSrvPtr
AppName
ProjectName
Differences compared with TwinCAT 2
If the variable runTimeNo was used under TwinCAT 2, the corresponding program code must be converted
for application under TwinCAT 3.
Example:
• Application under TwinCAT 2: nPlcAdsPort := 801 + (SystemInfo.runTimeNo - 1) * 10;
• Application under TwinCAT 3: nPlcAdsPort := _AppInfo.AdsPort;
CX50x0
Object ID of the PLC project instance
Number of tasks in the runtime system
Number of online changes since the last complete download
Reserved
ADS port of the PLC application
PERSISTENT variables: LOADED (without error)
PERSISTENT variables: INVALID (the back-up copy was loaded, since no
valid file was present)
Time at which the PLC application was compiled
The flag can be set and prevents that the outputs are zeroed when a
breakpoint is reached. In this case the task continues to run. Only the
execution of the PLC code is interrupted.
This variable has the value TRUE if a shutdown of the TwinCAT system is in
progress. Some parts of the TwinCAT system may already have been shut
down.
This variable has the value TRUE if not all licenses that are provided by
license dongles have been validated yet.
This variable has the value TRUE if Windows is in a BSOD.
Pointer to the TcCOM object server
Name generated by TwinCAT, which contains the port.
Name of the project
Version: 1.9
1-second UPS (persistent data)
71

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents