Table of Contents

Class IpcDisplayDevice

Namespace
TwinSharp.IPC
Assembly
TwinSharp.dll

The IpcDisplayDevice class provides an interface to interact with a display device connected via TwinCAT ADS. It allows reading and writing various properties of the display such as active display mode, display mode description, primary display status, COM port, version, brightness, and light enabled status. It also provides a method to save the brightness setting persistently across power cycles.

public class IpcDisplayDevice
Inheritance
IpcDisplayDevice
Inherited Members

Properties

ActiveDisplayModeID

ID of active display mode

public byte ActiveDisplayModeID { get; set; }

Property Value

byte

Brightness

Valid values: 20-100 (20 lowest brightness, 100 maximum brightness)

public uint Brightness { get; set; }

Property Value

uint

ComPort

Windows Embedded Standard (WES): e.g. "Com4" Windows CE: under Windows CE, the Com Port must end with a colon, e.g. "COM4:"

public string ComPort { get; set; }

Property Value

string

DisplayModeDescription

Description of active display mode

public string DisplayModeDescription { get; }

Property Value

string

IsPrimaryDisplay

True if this display is the primary display

public bool IsPrimaryDisplay { get; }

Property Value

bool

LightEnabled

Valid values: TRUE = background light ON, FALSE = background light OFF

public bool LightEnabled { get; set; }

Property Value

bool

Version

Version of the display device

public uint Version { get; }

Property Value

uint

Methods

SaveBrightnessPersistent()

Save brightness persistent between power cycles.

public void SaveBrightnessPersistent()