RS-485: Wiring and Connection/en: различия между версиями
(Новая страница: «When installing, it is convenient to use a cable with flexible conductors. Examples are given below: {| class="wikitable" !Name !Flexible !Section of the conducto…») |
(Новая страница: «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 cab…») |
||
Строка 51: | Строка 51: | ||
|} | |} | ||
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). | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ Use of category 5 network cable for RS-485 bus laying | ||
! | !Bus signal RS-485!!Wire | ||
|- | |- | ||
| | |Data A | ||
|[[File:Wire white green stripe.svg|60px|Pair 3 Wire 1]] | |[[File:Wire white green stripe.svg|60px|Pair 3 Wire 1]] white-green | ||
|- | |- | ||
| | |Data B | ||
|[[File:Wire green.svg|60px|Pair 3 Wire 2]] | |[[File:Wire green.svg|60px|Pair 3 Wire 2]] green | ||
|- | |- | ||
| | |power supply (12V or other) | ||
|[[File:Wire orange.svg|60px|Pair 2 Wire 2]] | |[[File:Wire orange.svg|60px|Pair 2 Wire 2]] orange | ||
|- | |- | ||
| | |power supply (12V or other) | ||
|[[File:Wire white orange stripe.svg|60px|Pair 2 Wire 1]] | |[[File:Wire white orange stripe.svg|60px|Pair 2 Wire 1]] white-orange | ||
|- | |- | ||
| | |not used | ||
|[[File:Wire blue.svg|60px|Pair 1 Wire 2]] | |[[File:Wire blue.svg|60px|Pair 1 Wire 2]] blue | ||
|- | |- | ||
| | |not used | ||
|[[File:Wire white blue stripe.svg|60px|Pair 1 Wire 1]] | |[[File:Wire white blue stripe.svg|60px|Pair 1 Wire 1]] white-blue | ||
|- | |- | ||
| | |ground power supply(GND) | ||
|[[File:Wire white brown stripe.svg|60px|Pair 4 Wire 1]] | |[[File:Wire white brown stripe.svg|60px|Pair 4 Wire 1]] white-brown | ||
|- | |- | ||
| | |ground power supply (GND) | ||
|[[File:Wire brown.svg|60px|Pair 4 Wire 2]] | |[[File:Wire brown.svg|60px|Pair 4 Wire 2]] brown | ||
|} | |} | ||
Версия 18:52, 29 мая 2019
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).
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Warning|noshift=1}}
Клемма общего провода обозначается, в зависимости от оборудования, как SC, SG, G, GND, ground или reference. На контроллерах Wiren Board эта клемма обозначена как GND. При подключении к изолированному порту, нужно подключаться к изолированной земле данного порта (клеммы "GND iso").
Если ваша шина длинее 100 метров, на её конце желательно установить терминальный резистор (примерно 150 Ом, подробнее в Википедии). При длинных линиях существуют также рекомендации терминировать с обоих концов неиспользуемые проводники кабеля.
Подключение устройств
Так как все устройства соединяются общей шиной, следите за качественным соединением всех узлов линии:
- при обрыве линии устройства за обрывом не будут работать
- при коротком замыкании не будут работать все устройства.
Рекомендуем использовать штыревые наконечники под обжимку (НШВИ). Это позволяет легко подключать-отключать устройства без потери работоспособности остальных устройств на шине. При использовании при монтаже наконечников типа НШВИ необходимо, чтобы диаметр изолированных манжет не превышал габаритов клеммников устройств.
Провод A на всех устройствах подключается к клеммнику с маркировкой А, провод B - всегда к B. На Wiren Board рядом с клеммниками А и В расположены клеммники GND и Vout - можно сразу подключить линии питания (сначала проверьте требования к питанию ваших устройств!).
Лайфхак: так как внутри Wiren Board стоит растяжка линий, после подключения его к шине напряжение на линии A будет больше чем на B примерно на 0.5 В. Поэтому подключая периферийные устройства вы легко можете определить линии шины вольтметром. Но, конечно, цветовое кодирование проводников более предпочтительно.
Дополнительная информация
- Дифференциальная линия дает хорошую помехозащищенность. Длина линии до 1200 метров.
- При прокладке шины нужно соблюдать определённые правила, но для передачи в одной квартире подойдёт любой кабель и даже возможны ответвления.