# Electrical installation

### **Definition of 6Pin Q**uick **connector** <a href="#pdf-page-m7fcz3jd6p4cmq3t66y-definition-of-m12-8pin-connector" id="pdf-page-m7fcz3jd6p4cmq3t66y-definition-of-m12-8pin-connector"></a>

1. Connect the cable inside the box to the power supply and communication system. The unused color cables should be covered or protected to avoid electric leakage or short circuit.
2. Before removing the top housing of the device and wiring, the device should be powered off and the  6Pin quick connector cable should be removed.
3. Due to space constraints, **the sticker on the side of the device and subsequent illustrations only use cable contact definitions.**
4. Please see below images to know where each cable is connected.

   <figure><img src="https://1029883065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LFXmYU1oAy08IUwsTZc%2Fuploads%2FAscDmn7qgKLGjZ5Abos4%2Fimage.png?alt=media&#x26;token=c048e070-bfc2-40dc-8b94-41c2650fa307" alt=""><figcaption></figcaption></figure>

| Number        | Color                        | **Function**                                        |
| ------------- | ---------------------------- | --------------------------------------------------- |
| 1             | Brown                        | 24 VDC (+)                                          |
| 2             | Black                        | RS485 (B-)                                          |
| 3             | Green                        | RS485 (A+)                                          |
| 4             | Orange                       | NPN output (+)                                      |
| 5             | Purple                       | 4\~20mA (+)                                         |
| 6             | Blue                         | 0 VDC (-)                                           |
| Shielding net | White heat-shrinkable sleeve | (optional) Shielding net, please connect to ground. |

## Wiring diagram of 24V DC power supply

<figure><img src="https://1029883065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LFXmYU1oAy08IUwsTZc%2Fuploads%2FB1HXmYNy3Nv2F63lji8u%2Fimage.png?alt=media&#x26;token=d53ef0c5-46c3-4cbe-9e7e-61d95a7e8baa" alt=""><figcaption></figcaption></figure>

## **Wiring diagram of 4-20mA analog output** <a href="#pdf-page-m7fcz3jd6p4cmq3t66y-wiring-diagram-of-4-20ma-analog-output" id="pdf-page-m7fcz3jd6p4cmq3t66y-wiring-diagram-of-4-20ma-analog-output"></a>

This function will only work with power supplies through the brown and blue lines. The following diagram is not showing power supply wiring for readability.

<figure><img src="https://1029883065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LFXmYU1oAy08IUwsTZc%2Fuploads%2FNfoWBH70my7v0drP12Fd%2Fimage.png?alt=media&#x26;token=08d913f6-7d03-41e8-aaef-da466d810de6" alt=""><figcaption></figcaption></figure>

## **NPN output wiring diagram** <a href="#pdf-page-m7fcz3jd6p4cmq3t66y-oct-npn-output-wiring-diagram" id="pdf-page-m7fcz3jd6p4cmq3t66y-oct-npn-output-wiring-diagram"></a>

This function will only work with power supplies through the brown and blue lines. The following diagram is not showing power supply wiring for readability.&#x20;

<figure><img src="https://1029883065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LFXmYU1oAy08IUwsTZc%2Fuploads%2FpHUa7LBzAGhsLwBoIgf7%2Fimage.png?alt=media&#x26;token=39a46b4b-07bc-4f0d-b5cb-a8e0acb69ba2" alt=""><figcaption></figcaption></figure>

## **RS485 2 wire wiring diagram** <a href="#pdf-page-m7fcz3jd6p4cmq3t66y-rs485-2-wire-wiring-diagram" id="pdf-page-m7fcz3jd6p4cmq3t66y-rs485-2-wire-wiring-diagram"></a>

This function will only work with power supplies through the brown and blue lines. The following diagram is not showing power supply wiring for readability.

<figure><img src="https://1029883065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LFXmYU1oAy08IUwsTZc%2Fuploads%2FdXy0k8vJaCVytBEAczRy%2Fimage.png?alt=media&#x26;token=a4481f8b-db05-4dd1-a366-17b6cbe9daac" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}

#### Wiring suggestion <a href="#pdf-page-m7fcz3jd6p4cmq3t66y-wiring-suggestions" id="pdf-page-m7fcz3jd6p4cmq3t66y-wiring-suggestions"></a>

1. It is generally recommended to use a 24awg twisted pair cable with grounded shielding. The RS485 network must be designed as one line with multiple drops, not as a star or ring topology.
2. When the connection is long, please use the terminating resistance on both ends of network, master and farest device. It is generally recommended to use 120Ω terminating resistor. For the actual value, please refer to the wire specifications.
3. If the signal is unstable, please apply biasing circuit at one point on the line.
4. The 8-core cable shipped with 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. Where there is a lot of signal interference, the software may need to do multiple inquiries to get a valid response.
   {% endhint %}

### Device contact definitions <a href="#pdf-page-m7fcz3jd6p4cmq3t66y-device-contact-definitions" id="pdf-page-m7fcz3jd6p4cmq3t66y-device-contact-definitions"></a>

1. Due to space constraints, **the sticker on the side of the device only use cable contact definitions**.
2. The number of the device contact and the cable contact is mirrored and symmetrical.
3. Please see below device contact number:

   <figure><img src="https://1029883065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LFXmYU1oAy08IUwsTZc%2Fuploads%2FZiwLjZ6uK9fI31lZ6hAA%2Fimage.png?alt=media&#x26;token=03d3a838-c6f7-4408-9eb9-1fe4a370ebc9" alt=""><figcaption></figcaption></figure>
