RS-485: Wiring and Connection/en: различия между версиями

Материал из Wiren Board
(Новая страница: «RS-485:Physical connection»)
 
м (FuzzyBot переименовал страницу RS-485:Физическое подключение/en в RS-485: Wiring and Connection/en без оставления перенаправления: Часть переводимой страницы RS-485:Физическое подключение.)
 
(не показано 20 промежуточных версий 1 участника)
Строка 1: Строка 1:
<languages/>
<languages/>
'''[https://wirenboard.com/ru/product/cable-KSPEVG/ Купить кабель в интернет-магазине]'''
'''[https://wirenboard.com/ru/product/cable-KSPEVG/ Buy cable in the online store]'''




Общую информацию по подключению устройств RS-485 к контроллеру смотрите на странице [[RS-485|RS-485]].
For General information on connecting RS-485 devices to the controller, see page [[RS-485/en|RS-485]].


== Прокладка шины ==
== Busbar laying ==


Все устройства RS-485 устанавливаются на одну шину. Шина использует две линии для данных (''A'' и ''B''), при этом часто удобно также проложить две линии для питания - ''GND'' и ''+12V'' (или другое напряжение питания).
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).


'''Провод A на всех устройствах подключается к клеммнику с маркировкой А, провод B - всегда к B.'''
'''Wire A is connected to terminal a on all devices, wire B is always connected to B.'''


Необходимо использовать кабель парной скрутки: данные RS-485 (линии A и 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:
{| class="wikitable"
{| class="wikitable"
!Название
!Name
!Гибкий
!Flexible
!Сечение проводников
!Section of the conductor
!Парной скрутки
!Twisted pair
!Экран
!Screen
!Примерная цена, $/m
!Approximate price, $/m
|-
|-
|[https://paritet.su/catalog/gibkie_kspvg_kspevg/kspevg_2kh2kh0_35_mm_kv/ КСПЭВГ 2x2x0.35]
|[https://paritet.su/catalog/gibkie_kspvg_kspevg/kspevg_2kh2kh0_35_mm_kv/ XPMG 2x2x0.35]
|да
|yes
|0.35
|0.35
|да
|yes
|алюмополимерная лента
|aluminium polyethylene tape
|0.4
|0.4
|-
|-
|[http://www.paritet-podolsk.ru/produkciya/signal/liycy_tp/ КДВЭВГ 2х2х0,50]
|[http://www.paritet-podolsk.ru/produkciya/signal/liycy_tp/ LiYCY TP 2х2х0,50]
|да
|yes
|0.5
|0.5
|да
|yes
|оплётка
|braid
|1
|1
|-
|-
|[http://www.paritet-podolsk.ru/produkciya/signal/liycy_tp/ КДВЭВГ 2х2х0,35]
|[http://www.paritet-podolsk.ru/produkciya/signal/liycy_tp/ LiYCY TP 2х2х0,35]
|да
|yes
|0.35
|0.35
|да
|yes
|оплётка
|braid
|0.8
|0.8
|-
|-
|[https://paritet.su/catalog/kis_v/kis_v_2kh2kh0_60/ КИС-В 2х2х0,60]
|[https://paritet.su/catalog/kis_v/kis_v_2kh2kh0_60/ KIS-V 2х2х0,60]
|да
|yes
|0.6
|0.6
|да
|yes
|оплётка
|braid
|1.1
|1.1
|}
|}


Также для прокладки шины можно использовать обычную витую пару CAT5 для Ethernet - для неё ниже дана стандартная схема подключения (обычное волновое сопротивление такого кабеля составляет 100 Ом).
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"  
|+ Использование сетевого кабеля 5 категории для прокладки шины RS-485
|+ Use of category 5 network cable for RS-485 bus laying
!Сигнал шины RS-485!!Провод
!Bus signal RS-485!!Wire
|-
|-
|данные A
|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
|-
|-
|данные B
|Data B
|[[File:Wire green.svg|60px|Pair 3 Wire 2]] зелёный
|[[File:Wire green.svg|60px|Pair 3 Wire 2]] green
|-
|-
|питание (12В или другое)
|power supply (12V or other)
|[[File:Wire orange.svg|60px|Pair 2 Wire 2]] оранжевый
|[[File:Wire orange.svg|60px|Pair 2 Wire 2]] orange
|-
|-
|питание (12В или другое)
|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
|-
|-
|земля питания (GND)
|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
|-
|-
|земля питания (GND)
|ground power supply (GND)
|[[File:Wire brown.svg|60px|Pair 4 Wire 2]] коричневый
|[[File:Wire brown.svg|60px|Pair 4 Wire 2]] brown
|}
|}


{{warning|1=При подключении внешних устройств к Wiren Board по шине RS-485, нужно соединять не только линии передачи данных A и B, но и  '''земли''' (общий провод) контроллера Wiren Board и внешних устройств. Подключение общего провода необходимо в случае подключения к неизолированному порту RS-485 и рекомендуется в случае подключения к гальванически изолированному порту.}}
{{warning|1=При подключении внешних устройств к Wiren Board по шине RS-485, нужно соединять не только линии передачи данных A и B, но и  '''земли''' (общий провод) контроллера Wiren Board и внешних устройств. Подключение общего провода необходимо в случае подключения к неизолированному порту RS-485 и рекомендуется в случае подключения к гальванически изолированному порту.}}


Клемма общего провода обозначается, в зависимости от оборудования, как SC, SG, G, GND, ground или reference. На контроллерах Wiren Board эта клемма обозначена как GND. При подключении к изолированному порту, нужно подключаться к изолированной земле данного порта (клеммы "GND iso").
{{warning|1= When connecting external devices to the Wiren Board via the RS-485 bus, it is necessary to connect not only the data lines A and B, but also the ground (common wire) of the Wiren Board controller and external devices. The connection of a common wire is required when connected to an uninsulated RS-485 port and is recommended when connected to a galvanically isolated port.}}
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).


Если ваша шина длинее 100 метров, на её конце желательно установить терминальный резистор (примерно 150 Ом, подробнее в [https://ru.wikipedia.org/wiki/RS-485#.D0.A1.D0.BE.D0.B3.D0.BB.D0.B0.D1.81.D0.BE.D0.B2.D0.B0.D0.BD.D0.B8.D0.B5 Википедии]). При длинных линиях существуют также рекомендации терминировать с обоих концов неиспользуемые проводники кабеля.
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 [https://ru.wikipedia.org/wiki/RS-485#.D0.A1.D0.BE.D0.B3.D0.BB.D0.B0.D1.81.D0.BE.D0.B2.D0.B0.D0.BD.D0.B8.D0.B5 Wikipedia]). For long lines, there are also recommendations to terminate unused cable conductors at both ends.




== Подключение устройств ==
== Connecting devices ==


{|align="right"
{|align="right"
  |-valign="top"
  |-valign="top"
|[[Файл:M1W2PODKL.png|thumb|150px|Наконечники для шины RS-485]]
|[[Файл:M1W2PODKL.png|thumb|150px|Tips for RS-485 bus]]
|[[Файл:M1W2PODKL2.png|thumb|150px|Подключение шины RS-485 к модулю WB-M1W2]]
|[[Файл:M1W2PODKL2.png|thumb|150px|Connecting the RS-485 bus to the WB-M1W2 bus coupler]]
|[[Файл:WBPODKL.png|thumb|200px|Подключение шины RS-485 к Wiren Board 5]]
|[[Файл:WBPODKL.png|thumb|200px|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


Рекомендуем использовать [http://www.chipdip.ru/catalog-show/tips/ штыревые наконечники под обжимку (НШВИ)]. Это позволяет легко подключать-отключать устройства без потери работоспособности остальных устройств на шине. При использовании при монтаже наконечников типа НШВИ необходимо, чтобы диаметр изолированных манжет не превышал габаритов клеммников устройств.
We recommend the use of whip tips for a swage  [http://www.chipdip.ru/catalog-show/tips/ pin tips for crimping]. 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 рядом с клеммниками А и В
Wire A on all devices is connected to the terminal strip marked A, wire B - always to B. On the wire Board next to the terminals A and B are GND and Vout terminals - you can immediately connect the power lines (first check the power requirements of your devices!).
расположены клеммники GND и Vout - можно сразу подключить линии питания (сначала проверьте требования к питанию ваших устройств!).


Лайфхак: так как внутри Wiren Board стоит растяжка линий, после подключения его к шине напряжение на линии A будет больше чем на B примерно на 0.5 В. Поэтому подключая периферийные устройства вы легко можете определить линии шины вольтметром. Но, конечно, цветовое кодирование проводников более предпочтительно.
Life hack: since there are stretching lines  inside the Wiren Board controller, after connecting it to the bus line A voltage will be greater than b by about 0.5 V. Therefore, connecting peripherals you can easily determine the bus line by the voltmeter. But, of course, color coding of conductors is more preferable.




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


#Дифференциальная линия дает хорошую помехозащищенность. Длина линии до 1200 метров.
#The differential line gives good noise immunity. The length of the line is up to 1200 meters.
#При прокладке шины нужно соблюдать [http://www.gaw.ru/html.cgi/txt/interface/rs485/app.htm определённые правила], но для передачи в одной квартире подойдёт любой кабель и даже возможны ответвления.
#When laying the bus, you need to follow [http://www.gaw.ru/html.cgi/txt/interface/rs485/app.htm certain rules], but for transmission in one apartment, any cable will fit and even branches are possible.

Текущая версия на 12:09, 17 июня 2022

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

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 pin tips for crimping. 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.

Wire A on all devices is connected to the terminal strip marked A, wire B - always to B. On the wire Board next to the terminals A and B are GND and Vout terminals - you can immediately connect the power lines (first check the power requirements of your devices!).

Life hack: since there are stretching lines inside the Wiren Board controller, after connecting it to the bus line A voltage will be greater than b by about 0.5 V. Therefore, connecting peripherals you can easily determine the bus line by the voltmeter. But, of course, color coding of conductors is more preferable.


Additional information

  1. The differential line gives good noise immunity. The length of the line is up to 1200 meters.
  2. When laying the bus, you need to follow certain rules, but for transmission in one apartment, any cable will fit and even branches are possible.