# ShowDebugOutput

## `ShowDebugOutput` (FUN)

FUNCTION ShowDebugOutput : BOOL

InOut:

| Scope  | Name                                | Type        | Comment                                                                                 |
| ------ | ----------------------------------- | ----------- | --------------------------------------------------------------------------------------- |
| Return | `ShowDebugOutput`                   | `BOOL`      |                                                                                         |
| Input  | `stDebugOutput`                     | DebugOutput |                                                                                         |
| Output | `eModuleTypeID`                     | ModuleType  | Displays the read module type                                                           |
| Output | `udiLastModbusWriteTransactionTime` | `UDINT`     | <p>Modbus request transaction time in milliseconds for<br>writing</p>                   |
| Output | `udiLastModbusReadTransactionTime`  | `UDINT`     | Modbus request transaction time in milliseconds for reading                             |
| Output | `uiConfiguredBusTimeoutInSeconds`   | `UINT`      | Displays the read bus timeout time of the module                                        |
| Output | `udiLastReadRegister`               | `UDINT`     | Displays the last read Modbus register                                                  |
| Output | `udiLastWriteRegister`              | `UDINT`     | Displays the last written Modbus register                                               |
| Output | `uxiReadErrorCounter`               | `__UXINT`   | Number of error read commands                                                           |
| Output | `dtLastReadErrorTimestamp`          | `DT`        | <p>Displays the last timestamp of a failed Modbus read<br>command</p>                   |
| Output | `uxiWriteErrorCounter`              | `__UXINT`   | Number of error write commands                                                          |
| Output | `dtLastWriteErrorTimestamp`         | `DT`        | <p>Displays the last timestamp of a failed Modbus<br>write command</p>                  |
| Output | `uxiRetrysAfterError`               | `__UXINT`   | <p>Number of attempts to restore communication<br>after a read/write error occurred</p> |
| Output | `tTimeUntilNextCommunicationRetry`  | `TIME`      | <p>Time until the next attempt to restore<br>communication</p>                          |
