> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-telemetry/expansion-modules/q26/install-and-set-up.md).

# Install and set up

Set the Q26's address, wire its power, inputs and outputs, set its jumpers and connect it to the RTU.

To install a Q26, set its address on the DIP switches inside the case, mount it on the DIN rail, wire the power and I/O, set the jumpers, then connect its RS485 port to the RTU and add the module to the RTU's configuration.

{% hint style="info" %}
**Applies to:** Q26 Digital Expansion Module (PD7202). From the Q26 Quick Start Guide v2.0 and QTech's Q26 jumper and cable notes.
{% endhint %}

{% hint style="danger" %}
**Warning:** Do not directly connect to 220V AC voltage. The New Zealand and Australian wiring regulations require that any wiring in excess of 32 volts must be carried out or be certified by a registered electrician. Consult your local electrical installer for further guidance.
{% endhint %}

## Factory settings

| Setting         | Factory setting                   |
| --------------- | --------------------------------- |
| Module address  | 3, set on the internal DIP switch |
| RS485 baud rate | 9600                              |

## 1. Set the module address

The module must have an address that is unique to the RS485 bus. The expansion module is factory preset to address 3. Therefore if multiple expansion modules are to be used on the same RS485 bus then their addresses must be configured. The module address can be any number between 1 and 239.

* The module address 0 is a reserved address.
* Module address 255 is used to re-load the factory default configuration settings.

This is achieved by setting a code on the block of 8 DIP switches located internally to the IO expansion module casing. The code for address is a binary code with switch 1 being the least significant bit. This means that each switch has a numeric value associated with it, and the resultant address is calculated when you add all the switch values that are in the “ON” state.

| Switch | 1 | 2 | 3 | 4 | 5  | 6  | 7  | 8   |
| ------ | - | - | - | - | -- | -- | -- | --- |
| Value  | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 |

For example, if a module needs an address of 22, the correct setting would be to have switches 2, 3 and 5 on and the rest off. (2+4+16 = 22).

## 2. Connect the power

![Expansion module bottom panel: RS485 OUT and IN, AUX OUT (digital outputs 5–8), and the PWR connector G, + and C](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2F5b4iba3MWXrNDB89i10L%2Fexpansion-module-bottom-panel.jpg?alt=media)

| Terminal | Connect to                                                                   |
| -------- | ---------------------------------------------------------------------------- |
| G        | Power supply negative                                                        |
| +        | Power supply positive, 12–30 V DC                                            |
| C        | Option for remote power control from a master RTU (the RTU's **O/P** output) |

{% hint style="warning" %}
The “C” terminal is a control INPUT. Do not connect it to the supply.
{% endhint %}

## 3. Wire the inputs and outputs

### Digital inputs

* The module has 16 digital inputs with an LED associated with each. This will illuminate when the input is Active/On/Closed.
* Inputs have an internal pull-up resistor that will pull the input terminal to the power supply ‘+’ when the input is open circuit (the “OFF” state).
* To turn a digital input ON, connect it (via a set of contacts if necessary) to the common **G** terminal on the Digital Input terminal block. All **G** terminals on the module are tied internally to the **G** terminal on the power supply connector.
* The pull up / pull down convention is different from some PLCs. If required, the active state of I/O can be inverted in the eXcel control program or PLC.

### Digital outputs

* The module has 8 Digital Outputs in total. The first four are located on the front panel adjacent to the Digital Inputs and have LED indicators to show if the output is active or not. The second four Digital Outputs are located on the underside of the module next to the power connector, labeled “Aux Out”.
* The Digital Outputs work as “Current Sinks”. This means that when they are turned on, they will be connected to power supply ground, allowing current to flow into the output terminal to ground. When in the “OFF” state, they have a high impedance to ground and will float up to + Supply.

## 4. Set the jumpers

| Jumper | Use                                      | Normally |
| ------ | ---------------------------------------- | -------- |
| J1     | Short fault protect disable (SFPD)       | Fitted   |
| J2     | RS485 termination resistor               | Fitted   |
| J3     | Remote power control from the master RTU | Fitted   |

* **J1 fitted:** when the SFPD pin is grounded, a short circuit will immediately shut down only the output affected. Other outputs not having a fault condition will operate normally.
* **J1 not fitted:** the outputs will remain ON in a current limited mode of operation upon encountering a load short to supply or overcurrent condition, until the output short is removed or thermal shutdown is reached. This provides control of incandescent lamp loads where in-rush currents exceed the devices analog current limits.
* **J2:** fit for use on end of a RS485 link. In a multi-drop network only the end RS485 transceivers should be terminated.
* **J3:** fit to disable remote control via P20/1.

## 5. Connect the RS485 port

| From                | To  | Cable                                                                                                                 |
| ------------------- | --- | --------------------------------------------------------------------------------------------------------------------- |
| XL4 or XL4 Plus RTU | Q26 | The Q04 RS485 cable. One connector (the RJ12, for the RTU) is slightly bigger than the other (the RJ10, for the Q26). |
| Q26                 | Q26 | An RJ10 cable: both connectors are small and the same size                                                            |

{% hint style="warning" %}
Do not attempt to insert the 4 contact RJ10 into the RTU, this must be inserted in the expansion module. It can damage the socket.
{% endhint %}

## 6. Add it to the RTU

* **XL4 Plus:** in QTech Workbench, right click the Expansion Modules category to add an expansion module. Set **Enable** to TRUE, select the RS485 Communication Port and set the module's Address. See [Communications: Expansion modules](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/communications.md#expansion-modules).
* **XL4:** expansion modules are added to the XL4 configuration by simply clicking the “Add Module” button at the bottom of the screen under the Input/Output branch of Workbench.
* **eXcel or QRTU:** use the Q90 software.

If the modules don't respond, see [Expansion modules aren't responding](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/troubleshooting/expansion-modules-not-responding.md).
