RS-485:Physical connection

Материал из Wiren Board
Версия от 19:06, 29 мая 2019; RomanKulibaba (обсуждение | вклад) (Новая страница: «We recommend the use of whip tips for a swage [http://www.chipdip.ru/catalog-show/tips/ штыревые наконечники под обжимку (NSVI)]. Th…»)

Другие языки:

Buy cable in the online store


For General information on connecting RS-485 devices to the controller, see page RS-485.

Busbar laying

All RS-485 devices are installed on the same bus. The bus uses two data lines (A and B), and it is also often convenient to lay two power lines - GND and +12V (or other supply voltage).

Wire A is connected to terminal a on all devices, wire B is always connected to B.

It is necessary to use a pair twist cable: the RS-485 data (lines A and B) must form a twisted pair. If the same cable is used to power the devices, it is necessary to pay attention to the cross section of the conductors: a voltage drop on a long line can lead to the fact that the devices will not work. Finally, you should choose a shielded cable.

When installing, it is convenient to use a cable with flexible conductors. Examples are given below:

Name Flexible Section of the conductor Twisted pair Screen Approximate price, $/m
XPMG 2x2x0.35 yes 0.35 yes aluminium polyethylene tape 0.4
LiYCY TP 2х2х0,50 yes 0.5 yes braid 1
LiYCY TP 2х2х0,35 yes 0.35 yes braid 0.8
KIS-V 2х2х0,60 yes 0.6 yes braid 1.1

Also, for bus laying, you can use a conventional twisted pair CAT5 for Ethernet - for it below is a standard wiring diagram (the usual wave resistance of such cable is 100 Ohms).

Use of category 5 network cable for RS-485 bus laying
Bus signal RS-485 Wire
Data A Pair 3 Wire 1 white-green
Data B Pair 3 Wire 2 green
power supply (12V or other) Pair 2 Wire 2 orange
power supply (12V or other) Pair 2 Wire 1 white-orange
not used Pair 1 Wire 2 blue
not used Pair 1 Wire 1 white-blue
ground power supply(GND) Pair 4 Wire 1 white-brown
ground power supply (GND) Pair 4 Wire 2 brown

{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Warning|noshift=1}}

{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Warning|noshift=1}} The common wire terminal is designated, according to the equipment, as SC, SG, G, GND, ground or reference. On the Wiren Board controllers, this terminal is designated as GND. When connecting to an isolated port, you need to connect to the isolated ground of the port ("GND iso"terminals).

If your bus is longer than 100 meters, it is desirable to install a terminal resistor at its end (about 150 Ohms, see more in Wikipedia). For long lines, there are also recommendations to terminate unused cable conductors at both ends.


Connecting devices

Tips for RS-485 bus
Connecting the RS-485 bus to the WB-M1W2 bus coupler
Connecting the RS-485 to Wiren Board 5

Since all devices are connected by a common bus, make sure the quality of the connection of all nodes of the line:

  • when the line is broken, the devices behind the break will not operate
  • when the line is broken, the devices behind the break will not operate

We recommend the use of whip tips for a swage штыревые наконечники под обжимку (NSVI). This makes it easy to connect and disconnect devices without losing the operation of other devices on the bus. When used with the mounting lugs of the NSVI it is necessary that the diameter of the insulated cuff does not exceed the dimensions of the terminals of the devices.

Провод A на всех устройствах подключается к клеммнику с маркировкой А, провод B - всегда к B. На Wiren Board рядом с клеммниками А и В расположены клеммники GND и Vout - можно сразу подключить линии питания (сначала проверьте требования к питанию ваших устройств!).

Лайфхак: так как внутри Wiren Board стоит растяжка линий, после подключения его к шине напряжение на линии A будет больше чем на B примерно на 0.5 В. Поэтому подключая периферийные устройства вы легко можете определить линии шины вольтметром. Но, конечно, цветовое кодирование проводников более предпочтительно.


Дополнительная информация

  1. Дифференциальная линия дает хорошую помехозащищенность. Длина линии до 1200 метров.
  2. При прокладке шины нужно соблюдать определённые правила, но для передачи в одной квартире подойдёт любой кабель и даже возможны ответвления.