Class PlcAppSystemInfo
The PlcAppSystemInfo class provides access to various system information and status variables of a TwinCAT PLC application. It uses an AdsClient to read and write these variables, which include object ID, flags, ADS port, boot data status, application timestamp, and more.
public class PlcAppSystemInfo
- Inheritance
-
PlcAppSystemInfo
- Inherited Members
Properties
AdsPort
ADS port of the PLC application.
public uint AdsPort { get; }
Property Value
AppName
Name generated by TwinCAT, which contains the port.
public string AppName { get; }
Property Value
AppTimestamp
Time at which the PLC application was compiled
public DateTime AppTimestamp { get; }
Property Value
BSODOccured
This variable has the value TRUE if Windows is in a BSOD.
public bool BSODOccured { get; }
Property Value
BootDataLoaded
PERSISTENT variables: LOADED (without error).
public bool BootDataLoaded { get; }
Property Value
Flags
TwinCAT internal use.
public uint Flags { get; }
Property Value
KeepOutputsOnBP
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.
public bool KeepOutputsOnBP { get; set; }
Property Value
LicensesPending
This variable has the value TRUE if not all licenses that are provided by license dongles have been validated yet.
public bool LicensesPending { get; }
Property Value
ObjId
Object ID of the PLC project instance.
public ulong ObjId { get; }
Property Value
OldBootData
PERSISTENT variables: INVALID (the back-up copy was loaded, since no valid file was present).
public bool OldBootData { get; }
Property Value
OnlineChangeCnt
Number of online changes since the last complete download
public ulong OnlineChangeCnt { get; }
Property Value
ProjectName
Name of the project.
public string ProjectName { get; }
Property Value
ShutdownInProgress
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.
public bool ShutdownInProgress { get; }
Property Value
TaskCnt
Number of tasks in the runtime system
public ulong TaskCnt { get; }