Table of Contents

Class Realtime

Namespace
TwinSharp
Assembly
TwinSharp.dll

The Realtime class provides methods to interact with the TwinCAT systems real-time settings. It allows setting shared cores configuration, reading CPU settings, reading CPU latency, and getting the current CPU usage. It uses the AdsClient to communicate with the TwinCAT system.

public class Realtime
Inheritance
Realtime
Inherited Members

Properties

CpuUsage

Gets the current CPU usage of a TwinCAT system. Corresponds to the function block TC_CpuUsage. This function corresponds to the display of CPU usage in the TwinCAT system menu under the real-time settings.

public uint CpuUsage { get; }

Property Value

uint

Methods

ReadCpuSettings()

Reads the CPU settings of the TwinCAT system.

public RTimeCpuSettings ReadCpuSettings()

Returns

RTimeCpuSettings

ReadLatency()

Reads the CPU latency of the TwinCAT system.

public RTimeCpuLatency ReadLatency()

Returns

RTimeCpuLatency

SetSharedCores(uint)

Sets the shared cores configuration for the TwinCAT system.

public AdsErrorCode SetSharedCores(uint sharedCores)

Parameters

sharedCores uint

Returns

AdsErrorCode