Table of Contents

Class PlcAppSystemInfo

Namespace
TwinSharp.PLC
Assembly
TwinSharp.dll

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

uint

AppName

Name generated by TwinCAT, which contains the port.

public string AppName { get; }

Property Value

string

AppTimestamp

Time at which the PLC application was compiled

public DateTime AppTimestamp { get; }

Property Value

DateTime

BSODOccured

This variable has the value TRUE if Windows is in a BSOD.

public bool BSODOccured { get; }

Property Value

bool

BootDataLoaded

PERSISTENT variables: LOADED (without error).

public bool BootDataLoaded { get; }

Property Value

bool

Flags

TwinCAT internal use.

public uint Flags { get; }

Property Value

uint

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

bool

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

bool

ObjId

Object ID of the PLC project instance.

public ulong ObjId { get; }

Property Value

ulong

OldBootData

PERSISTENT variables: INVALID (the back-up copy was loaded, since no valid file was present).

public bool OldBootData { get; }

Property Value

bool

OnlineChangeCnt

Number of online changes since the last complete download

public ulong OnlineChangeCnt { get; }

Property Value

ulong

ProjectName

Name of the project.

public string ProjectName { get; }

Property Value

string

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

bool

TaskCnt

Number of tasks in the runtime system

public ulong TaskCnt { get; }

Property Value

ulong