# Electrical Installation

{% hint style="danger" %}
**Safety First:** Do not perform wiring while the unit is powered on. Before any wiring work, turn off the power and disconnect the power supply.
{% endhint %}

## M12 8-Pin Quick Connector Pin Definition

* Connect the supplied cable to the power supply and the required communication interfaces.
* Unused wires must be insulated with protective material to prevent electric leakage or short circuits.
* Before opening the unit or performing any wiring, turn off the power and disconnect the power supply.
* Due to space limitations, the label on the side of the unit and the following diagrams show wire pin definitions only.

The M12 8-pin quick connector wire color assignments are defined as follows:

![Cable Pin Map](https://4028902321-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSBz5Tlpy8GCIkK4ygkgZ%2Fuploads%2F3cTdYR3PxAQAd8WhHoLj%2FFU-ES-pin.png?alt=media\&token=6fec7472-b00a-45ac-bf97-7e66d0b0ae66)

| Number        | Color                        | Function                                            |
| ------------- | ---------------------------- | --------------------------------------------------- |
| 1             | Black                        | RS485 (B-)                                          |
| 2             | Yellow                       | OCT output (-)                                      |
| 3             | Blue                         | VDC (-)                                             |
| 4             | Orange                       | OCT output (+)                                      |
| 5             | Green                        | RS485 (A+)                                          |
| 6             | Purple                       | 4\~20mA (+)                                         |
| 7             | Red                          | 4\~20mA (-)                                         |
| 8             | Brown                        | 12-36 VDC (+)                                       |
| Shielding net | White heat-shrinkable sleeve | (optional) Shielding net, please connect to ground. |

### DC Power Wiring Diagram

* **Brown Wire:** 12–36 VDC (+)
* **Blue Wire:** VDC (–)

<figure><img src="https://4028902321-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSBz5Tlpy8GCIkK4ygkgZ%2Fuploads%2FJGF6S6oh5Q6JE0Gk0He9%2FDC-en.jpeg?alt=media&#x26;token=c50dcf6c-f948-45d9-bc63-775c3243e74b" alt=""><figcaption></figcaption></figure>

### 4–20 mA Analog Output Wiring Diagram

* **Brown Wire:** 12–36 VDC (+)
* **Blue Wire:** VDC (–)
* **Purple Wire:** 4–20 mA (+)
* **Red Wire:** 4–20 mA (–)

{% hint style="info" %}
This function requires the brown and blue DC power wires to be powered. The following diagram is not showing power supply wiring for readability.
{% endhint %}

<figure><img src="https://4028902321-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSBz5Tlpy8GCIkK4ygkgZ%2Fuploads%2FqgBYXPbxxEKJewEDBlqC%2Fcomplete%20wiring%20diagram-en-v2.0.jpg?alt=media&#x26;token=0fe69271-50d2-48d6-8468-d4001a1213e5" alt=""><figcaption></figcaption></figure>

### **OCT NPN Output Wiring Diagram**

{% hint style="info" %}
This function requires the brown and blue DC power wires to be powered. The DC power wiring is omitted from this diagram for readability. See the [DC Power Wiring Diagram](#dc-power-wiring-diagram) for details.
{% endhint %}

<figure><img src="https://4028902321-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSBz5Tlpy8GCIkK4ygkgZ%2Fuploads%2FPvDgOM8JzJAnVLnrAXf8%2Ffu-es-electrical-npn-en.jpg?alt=media&#x26;token=4ab02e5b-5528-4be4-ab70-c70cdb3721c1" alt=""><figcaption></figcaption></figure>

### **OCT PNP Output Wiring Diagram**

* **Brown Wire**: 24 VDC (+)
* **Blue Wire**: 0 VDC (–)
* **Orange Wire**: OCT Output (+)
* **Yellow Wire**: OCT Output (–)

{% hint style="info" %}
This function requires the brown and blue DC power wires to be powered. The DC power wiring is omitted from this diagram for readability. See the [DC Power Wiring Diagram](#dc-power-wiring-diagram) for details.
{% endhint %}

<figure><img src="https://4028902321-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSBz5Tlpy8GCIkK4ygkgZ%2Fuploads%2FBojJPOBqnTs9VWOAGERx%2Ffu-es-electrical-pnp-en.jpg?alt=media&#x26;token=f5989bc4-c6e6-4308-a14a-8397f2873e1d" alt=""><figcaption></figcaption></figure>

### **RS485 Two-Wire Wiring Diagram**

* **Black Wire**: RS-485 B (–)
* **Green Wire**: RS-485 A (+)

{% hint style="info" %}
This function requires the brown and blue DC power wires to be energized. The DC power wiring is omitted from this diagram for readability. See the [DC Power Wiring Diagram](#dc-power-wiring-diagram) for details.
{% endhint %}

<figure><img src="https://4028902321-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSBz5Tlpy8GCIkK4ygkgZ%2Fuploads%2FRdnkkQDctvlkm0pdaVuL%2FRS485-en.jpeg?alt=media&#x26;token=ad9072b2-3dbc-4fc7-99b0-ca48af52801b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

### RS-485 Wiring Recommendations

1. It is recommended to use **shielded 24 AWG twisted-pair cable** and connect devices in a **daisy-chain configuration**. Do not use star or ring wiring.
2. For long cable runs, install **termination resistors** at both the master and the farthest device. A typical value is **120 Ω**, but the actual value should be calculated based on the cable specifications.
3. If signal instability occurs, consider adding **bias resistors** at a point along the line.
4. The 8-core cable is shipped with the device, if used in RS485 communication, please trim the length, try to use a short wire to reduce noise interference. Connect the shielding net to the main communication wire shielding and then ground it.
5. In areas with heavy signal interference, the software may need to **poll multiple times** to receive a response. Implement a **repeated polling mechanism** in the communication program to distinguish between signal interference and actual device offline conditions.
   {% endhint %}

***

## **Device Pin Definitions**

Due to space constraints, the sticker on the side of the device only uses cable contact definitions.\
The number of the device contact and the cable contact is mirrored and symmetrical.\
Please see below device contact number:

![Device pin map](https://4028902321-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LxeY3bBEflHg4JOGyfX%2F-MCp1RCM6Vv99ZbZ012s%2F-MCpOIzv4LyKF4_jFhjb%2Fpin%20map%20device.jpg?alt=media\&token=b390b44c-ed99-40c8-b3b1-7f2222f205de)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lorric.com/qr/fu-es-echosense-instruction-manual/installation-and-setup/electronic-installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
