Table of Contents

Class IpcUps

Namespace
TwinSharp.IPC
Assembly
TwinSharp.dll

The IpcUps class provides an interface to interact with an Uninterruptible Power Supply (UPS) device using the TwinCAT ADS protocol. It allows reading various properties of the UPS such as model, vendor name, version, revision, build, serial number, power status, communication status, battery status, battery capacity, battery runtime, persistent power fail count, power fail counter, fan error, no battery status, battery replace date, and interval service status. The class uses an AdsClient to communicate with the UPS device.

public class IpcUps
Inheritance
IpcUps
Inherited Members

Properties

BatteryCapacityPercent

Battery capacity in percent.

public byte BatteryCapacityPercent { get; }

Property Value

byte

BatteryReplaceDate

Date of the last battery change.

public string BatteryReplaceDate { get; }

Property Value

string

BatteryRuntimeSeconds

Battery runtime in seconds.

public uint BatteryRuntimeSeconds { get; }

Property Value

uint

BatteryStatus

Battery status.

public byte BatteryStatus { get; }

Property Value

byte

Build

Build.

public ushort Build { get; }

Property Value

ushort

CommunicationStatus

Communication status.

public byte CommunicationStatus { get; }

Property Value

byte

FanError

Fan error.

public bool FanError { get; }

Property Value

bool

IntervalServiceStatus

Interval Service Status indicates whether the configured service interval has elapsed.

public bool IntervalServiceStatus { get; }

Property Value

bool

NoBattery

No battery.

public bool NoBattery { get; }

Property Value

bool

PersistentPowerFailCount

Persistent Power Fail Count

public bool PersistentPowerFailCount { get; }

Property Value

bool

PowerFailCounter

Power fail counter.

public uint PowerFailCounter { get; }

Property Value

uint

PowerStatus

Power status.

public byte PowerStatus { get; }

Property Value

byte

Revision

Revision.

public byte Revision { get; }

Property Value

byte

SerialNumber

Serial number.

public string SerialNumber { get; }

Property Value

string

UPSModel

UPS Model.

public string UPSModel { get; }

Property Value

string

VendorName

Vendor name.

public string VendorName { get; }

Property Value

string

Version

Version.

public byte Version { get; }

Property Value

byte