## Logic Module

### Overview
The "Logic" module in the KNX device allows for complex logic operations to be performed on up to four KNX input objects. The result of these operations is then sent to the KNX bus via a single output object.

### Key Parameters

#### General Settings
- ***Module Name***: The default name is "Logic," but this can be customized. The chosen name is automatically applied to object names and page names within the module.

- ***Gate Object***: An input object that controls whether the module is enabled or disabled.

- ***Gate Object Remember State on Bus Recovery***: Determines whether the gate object will remember its last state after a power outage.

#### Input Settings
- ***Number of Inputs***: Allows you to select the number of active inputs for the module. Options include 1 input, 2 inputs, 3 inputs, and 4 inputs.

#### Output Settings
- ***Output Sending Condition***: Defines when the output data will be sent. Options include:
  - **On Every Input**: Sends output data whenever any input receives data.
  - **On Output State Change**: Calculates and sends output data only if a new value is computed based on the inputs.

- ***Output Data Type***: Specifies which output data will be sent. Options include:
  - **Send All Conditions**: Sends data regardless of its value.
  - **Send Only On Telegrams**: Sends data only if it is 1.
  - **Send Only Off Telegrams**: Sends data only if it is 0.

- ***Calculation Type***: Defines the type of logic operation to be performed on the inputs. Options include AND, OR, XOR, NAND, NOR, and NXOR.

## Purpose
- To provide advanced logic-based control in the KNX system, allowing for more complex automation scenarios.

## Usage
This feature should be configured during the initial setup in the ETS software. It offers a flexible way to implement logic-based controls in your KNX system and can be adjusted as needed for specific use-cases.
