WB-MIO Modbus Interface Converters: различия между версиями
Ian (обсуждение | вклад) Метка: visualeditor |
Ian (обсуждение | вклад) |
||
Строка 61: | Строка 61: | ||
WB-MIO подключается к контроллеру через разъемы A и B RS-485. Питание может подаваться непосредственно от контроллера (Клеммы Gnd (-) и Vout (+)), либо от отдельного источника питания — в этом случае линии GND контроллера и источника питания рекомендуется объединить. | WB-MIO подключается к контроллеру через разъемы A и B RS-485. Питание может подаваться непосредственно от контроллера (Клеммы Gnd (-) и Vout (+)), либо от отдельного источника питания — в этом случае линии GND контроллера и источника питания рекомендуется объединить. | ||
== | ==Настройка в web-интерфейсе== | ||
За работу с подключёнными по RS-485 WB-MIO в Wiren Board отвечает Драйвер wb-mqtt-serial. Для настройки устройства необходимо отредактировать config файл драйвера. Подробнее про wb-mqtt-serial можно найти тут:[[Драйвер wb-mqtt-serial]] | |||
==Управление по Modbus== | ==Управление по Modbus== |
Версия 11:31, 15 января 2018
Статья в процессе наполнения и редактирования
Назначение
Преобразователь интерфейсов WB-MIO предназначен для подключения устройств WBIO (Модули ввода-вывода) к интерфейсу RS-485.
Технические характеристики
Параметр | Значение |
---|---|
Питание | |
Напряжение питания интерфейсной части | 9 В — 24 В постоянного тока |
Потребляемая мощность |
0,85 Вт |
Каналы управления нагрузкой | |
Коммуникация | |
Протокол обмена данными | Modbus RTU, TCP/IP, WBIO |
Параметры интерфейса RS-485 | задаются программно, по умолчанию:
скорость 9600 бит/с; данные — 8 бит; четность N; стоп-биты 2;
|
Габариты | |
Габариты | 2 DIN; 36,3x90,2x57,5 мм |
Условия эксплуатации | |
Температура воздуха | от -40°С до +80°С |
Относительная влажность воздуха | до 92%, без конденсации влаги |
Обмен данными
На физическом уровне модуль подключается через интерфейс RS-485. Для управления WB-MIO используется протокол Modbus RTU. В устройствах Wirenboard данные Modbus передаются по линиям связи RS-485. Подробнее смотрите страницу Протокол Modbus. Modbus-адрес устройства задается на заводе и нанесен на наклейке. Адрес может быть изменен программно. Подробности смотрите в разделе Управление по Modbus.
Подключение интерфейсной части
WB-MIO подключается к контроллеру через разъемы A и B RS-485. Питание может подаваться непосредственно от контроллера (Клеммы Gnd (-) и Vout (+)), либо от отдельного источника питания — в этом случае линии GND контроллера и источника питания рекомендуется объединить.
Настройка в web-интерфейсе
За работу с подключёнными по RS-485 WB-MIO в Wiren Board отвечает Драйвер wb-mqtt-serial. Для настройки устройства необходимо отредактировать config файл драйвера. Подробнее про wb-mqtt-serial можно найти тут:Драйвер wb-mqtt-serial
Управление по Modbus
Ниже приведена карта Modbus-регистров WB-MIO. Дополнительную информацию о работе с устройствами по протоколу Modbus можно найти в разделе Протокол Modbus
Карта регистров модулей реле
Register/ Address | Type | R/ W | Default value | Format | Description |
---|---|---|---|---|---|
110 | holding | RW | 96 (0x60) | baud rate / 100 | baud rate at RS-485, divided by 100. Possible values: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 |
111 | holding | RW | 0 | Parity bits at RS-485. Possible values: 0 - none , 1 - odd, 2 - even | |
112 | holding | RW | 2 | Number of stop bits at RS-485. possible values: 1, 2 | |
120 (0x78) | holding | RW | 0 | 0 or higher than 0 | Reset |
121 (0x79) | input | R | - | mV | Input voltage |
128 (0x80) | holding | RW | 1 | Modbus address | |
200-206 | input | R | {'x','x','x','x','x','x'} | Model name | |
220-241 | input | R | __date__ __time__ | Date of firmware build | |
250-269 | input | R | null-terminated string | Firmware version | |
270-271 | input | R | 32-bit unsigned int | Serial Number (S/N) | |
990 | holding | R | Is output module no. 1 present (0 = not present, 1 = 8 pin module, 2 = 16 pin module) | ||
991 | holding | R | Is output module no. 2 present (0 = not present, 1 = 8 pin module, 2 = 16 pin module) | ||
992 | holding | R | Is output module no. 3 present (0 = not present, 1 = 8 pin module, 2 = 16 pin module) | ||
993 | holding | R | Is input module no. 4 present (0 = not present, 1 = 8 pin module, 2 = 16 pin module) | ||
994 | holding | R | Is output module no. 4 present (0 = not present, 1 = 8 pin module, 2 = 16 pin module) | ||
995 | holding | R | Is input module no. 3 present (0 = not present, 1 = 8 pin module, 2 = 16 pin module) | ||
996 | holding | R | Is input module no. 2 present (0 = not present, 1 = 8 pin module, 2 = 16 pin module) | ||
997 | holding | R | Is input module no. 1 present (0 = not present, 1 = 8 pin module, 2 = 16 pin module) | ||
1250 - 1265 | holding | R | 16 bit unsigned int | Counter registers of input module no. 1 | |
2250 - 2265 | holding | R | 16 bit unsigned int | Counter registers of input module no. 2 | |
3250 - 3265 | holding | R | 16 bit unsigned int | Counter registers of input module no. 4 | |
4250 - 4265 | holding | R | 16 bit unsigned int | Counter registers of input module no. 5 | |
10999 | holding | RW | 0 | 0 or higher than 0 | Config flag of input module no. 1 |
11000 - 11010 | holding | RW | 16 bit unsigned int | Config registers of input module no. 1 | |
11499 | holding | RW | 0 | 0 or higher than 0 | Config flag of output module no. 1 |
11500 - 11510 | holding | RW | 16 bit unsigned int | Config registers of output module no. 1 | |
11999 | holding | RW | 0 | 0 or higher than 0 | Config flag of input module no. 2 |
12000 - 12010 | holding | RW | 16 bit unsigned int | Config registers of input module no. 2 | |
12499 | holding | RW | 0 | 0 or higher than 0 | Config flag of output module no. 2 |
12500 - 12510 | holding | RW | 16 bit unsigned int | Config registers of output module no. 2 | |
12999 | holding | RW | 0 | 0 or higher than 0 | Config flag of input module no. 3 |
13000 - 13010 | holding | RW | 16 bit unsigned int | Config registers of input module no. 3 | |
13499 | holding | RW | 0 | 0 or higher than 0 | Config flag of output module no. 3 |
13500 - 13510 | holding | RW | 16 bit unsigned int | Config registers of output module no. 3 | |
13999 | holding | RW | 0 | 0 or higher than 0 | Config flag of input module no. 4 |
14000 - 14010 | holding | RW | 16 bit unsigned int | Config registers of input module no. 4 | |
14499 | holding | RW | 0 | 0 or higher than 0 | Config flag of output module no. 4 |
14500 - 14510 | holding | RW | 16 bit unsigned int | Config registers of output module no. 4 | |
20000 - 20017 | holding | R | 16 bit signed int multiplied by 100 | Voltage registers of ADC module no. 1 | |
20500 - 20517 | holding | RW | 0 | int in range of: 0 - 7 | Voltage registers of ADC module no. 1 |
21000 - 21017 | holding | R | 16 bit signed int multiplied by 100 | Voltage registers of ADC module no. 2 | |
21500 - 21517 | holding | RW | 0 | int in range of: 0 - 7 | Voltage registers of ADC module no. 2 |
22000 - 22017 | holding | R | 16 bit signed int multiplied by 100 | Voltage registers of ADC module no. 3 | |
22500 - 22517 | holding | RW | 0 | int in range of: 0 - 7 | Voltage registers of ADC module no. 3 |
23000 - 23017 | holding | R | 16 bit signed int multiplied by 100 | Voltage registers of ADC module no. 4 | |
23500 - 23517 | holding | RW | 0 | int in range of: 0 - 7 | Voltage registers of ADC module no. 4 |
Table of Modbus coil registers
Register/ Address | Description |
---|---|
1000 - 1015 | Logical states of input module no. 1 |
1500 - 1515 | Logical states of output module no. 1 |
2000 - 2015 | Logical states of input module no. 2 |
2500 - 2515 | Logical states of output module no. 2 |
3000 - 3015 | Logical states of input module no. 3 |
3500 - 3515 | Logical states of output module no. 3 |
4000 - 4015 | Logical states of input module no. 4 |
4500 - 4515 | Logical states of output module no. 4 |
19990 | Is adc module no. 1 present |
19991 | Is adc module no. 2 present |
19992 | Is adc module no. 3 present |
19993 | Is adc module no. 4 present |