Table of Contents

Namespace TwinSharp.IPC

Classes

IPC

The IPC class represents a Beckhoff Industrial PC (IPC) and provides access to various hardware modules such as network cards, CPU, memory, display devices, operating system, fans, mainboard, UPS, and miscellaneous modules. It uses the AdsClient to connect to the IPC and read the available MDP modules, initializing the corresponding module objects based on their types. The class implements IDisposable to ensure proper disposal of the AdsClient.

IpcCpu

The IpcCpu class provides methods to interact with the CPU of a device via ADS (Automation Device Specification). It allows reading the CPU frequency, current CPU usage percentage, and current CPU temperature in Celsius.

IpcDisplayDevice

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.

IpcFan

Each fan for which information is available is represented by a dedicated MDP module instance (not all devices support this).

IpcMainBoard

This module provides mainboard information, such as type, serial number, production date, boot count, operating time, and temperature. This module is not supported by all devices, since it requires a special BIOS.

IpcMemory

The IpcMemory class provides methods to interact with the memory of a TwinCAT ADS device. It allows reading the allocated and available program memory, as well as storage memory and memory division. The class handles different subindexes for devices with more than 4 GB of RAM and WindowsCE devices.

IpcMiscellaneous

The IpcMiscellaneous class allows reading and writing of settings such as the startup state of the Numlock key, CE remote display state, security wizard enabled state, auto logon username, and auto-generate certificates. The class uses an AdsClient to communicate with the system and perform these operations.

IpcNIC

The IpcNIC class provides an interface to interact with network interface card (NIC) settings through the TwinCAT ADS protocol. It allows reading and writing of various NIC properties such as MAC address, IPv4 address, subnet mask, DHCP status, default gateway, DNS servers, and virtual device name. The class handles specific behaviors for different operating systems like Windows, WinCE, TC/BSD, and TC/RTOS.

IpcOperatingSystem

Represents the operating system running on the IPC. Provides properties to retrieve OS version information, build number, CSD version, and system uptime.

IpcTime

The IpcTime class provides methods to interact with time settings on the IPC. It allows getting and setting various time-related properties such as SNTP server address, SNTP refresh interval, seconds since 1970, textual date-time representation, timezone, and time offset.

IpcTwinCAT

The IpcTwinCAT class provides an interface to interact with a TwinCAT system using an AdsClient. It allows reading various system properties such as version, status, and configuration details. The class handles specific TwinCAT system attributes and provides methods to read these attributes from the TwinCAT system using ADS (Automation Device Specification) protocol.

IpcUps

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.