# UPS Module

The "uninteruptable power supply" (UPS) module is responsible for reacting to power failure by shuting down the LTT software while the UPS provides battery voltage. The UPS module is actually no driver for a UPS but a driver for a **digital input card**, which will be set when the overall LTT power supply fails.

{% hint style="info" %}
The standard UPS module is a NI PCI-6503 24 channel digital in/out card. The 24 channels are grouped by 3 ports á 8 lines. This card is also used for the [TCC](https://docs.irs.systems/ltt/documentation/ltt-gui-manual/configuration/moduleconfiguration/tcc). For the UPS port 1 / line 0 is used. For the TCC port 0 / line 0 - 7 is used.
{% endhint %}

An uninterruptible power supply has the following mandatory parameters:

| Parameter              | Meaning                                                                                                                                                                                                                                                                                                                                                          | Examples        |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
| Resource               | The connection information needed to connect to this device. The UPS uses the same hardware as the [TCC](https://docs.irs.systems/ltt/documentation/ltt-gui-manual/configuration/moduleconfiguration/tcc), hence the resource string is similar. The default port for the UPS is port1. Also: **do not write "/lines0:7" after port1**, like for the TCC module. | cDAQ1Mod1/port1 |
| TriggerValue           | The value of the digital inputs (8 bits), by which a power loss should be triggered. For non-inverted DI this is 1. For inverted DI this is 254.                                                                                                                                                                                                                 | 254             |
| Interval               | The time in milliseconds by which the hardware should be checked for a power failure.                                                                                                                                                                                                                                                                            | 500             |
| MsToWaitBeforeShutdown | *Optional*: time to wait before shutting down the GUI (testplan stops immediately!). **Default**: 60000 = 1 minute                                                                                                                                                                                                                                               | 60000           |
