Соединения/en — различия между версиями

Материал из WebHMI Wiki
Перейти к: навигация, поиск
 
(не показано 9 промежуточных версий этого же участника)
Строка 1: Строка 1:
<languages/>
 
 
<languages/>
 
<languages/>
 
The connection determines which communication driver and which parameters WebHMI uses to exchange data with the equipment. The list of the supported and their parameters are given [[Поддерживаемые протоколы|here]].  
 
The connection determines which communication driver and which parameters WebHMI uses to exchange data with the equipment. The list of the supported and their parameters are given [[Поддерживаемые протоколы|here]].  
To create a connection (sub-menu'''Регистры Registers''') use the 'New Connection' button (“Add connection”).  
+
To create a connection (sub-menu '''Регистры Registers''') use the 'New Connection' button (“Add connection”).  
 
<br>
 
<br>
[[Файл:Add conn.png|750px]]
+
[[Файл:Create conn eng.png|1024px]]
 +
 
 
<p>After clicking, the user is asked to enter the following information:</p>
 
<p>After clicking, the user is asked to enter the following information:</p>
 
* Basic info
 
* Basic info
Строка 16: Строка 16:
 
::: '''Disable ''' option  - Ability to suspend the exchange of this connection
 
::: '''Disable ''' option  - Ability to suspend the exchange of this connection
 
::: '''Simulate device''' option - The ability to simulate the presence of the device in the network (simulation mode), while you can write the 'virtual' registers of this device and read them.
 
::: '''Simulate device''' option - The ability to simulate the presence of the device in the network (simulation mode), while you can write the 'virtual' registers of this device and read them.
[[Файл:Conn 1.png|750px]]<br>
+
[[Файл:Conn properties eng1.png | 1024px]]<br>
 
* Communication settings
 
* Communication settings
 
:::'''Порт (Device)''' -The WEBHMI port on which the exchange will take place, RS-485 is the built-in port, /dev/ttyUSB0 is the port of the external USB-Serial converter (there may be several converters).
 
:::'''Порт (Device)''' -The WEBHMI port on which the exchange will take place, RS-485 is the built-in port, /dev/ttyUSB0 is the port of the external USB-Serial converter (there may be several converters).
Строка 25: Строка 25:
 
:::'''Timeout,ms''' - Timeout for response on the bus, ms.
 
:::'''Timeout,ms''' - Timeout for response on the bus, ms.
 
:::'''Stabilization pause,ms''' - Pause to stabilize the RS-485 bus before initiating an exchange for this connection. (Sometimes it may be necessary when, when operating at a high speed, an inconsistent line, with a specific device - the end of the exchange with the previous device causes a transient process that can interfere with the line for the next device).
 
:::'''Stabilization pause,ms''' - Pause to stabilize the RS-485 bus before initiating an exchange for this connection. (Sometimes it may be necessary when, when operating at a high speed, an inconsistent line, with a specific device - the end of the exchange with the previous device causes a transient process that can interfere with the line for the next device).
::: "Allow group read operations" - Allows using group read operations for Modbus protocols. Below is the max. Number of registers to this group.
+
:::'''Allow group read operations''' - Allows using group read operations for Modbus protocols. Below is the max. Number of registers to this group.
 +
::: '''Disable polling in the presence of read errors''' - temporarily disables the problem connection automatically in order to save an acceptable scan time. It is necessary to specify how many faulty scans and the number of read errors in each of them used to automatically turn off. Interval disable polling - sets how many minutes the connection is disconnected. See settings below:
 +
[[Файл:Conn properties eng32.png | 1024px]]
 
:::'''Mode''' - Operating mode of the serial port is Normal / Virtual. In Virtual mode, the port starts functioning as an Ethernet-serial gateway. The virtual COM port driver is installed on the client computer, and thus the remote computer accesses this serial port (for example, for programming or diagnostics of the controller).[[Настройка_виртуального_UART|More on virtual UART settings]]
 
:::'''Mode''' - Operating mode of the serial port is Normal / Virtual. In Virtual mode, the port starts functioning as an Ethernet-serial gateway. The virtual COM port driver is installed on the client computer, and thus the remote computer accesses this serial port (for example, for programming or diagnostics of the controller).[[Настройка_виртуального_UART|More on virtual UART settings]]
[[Файл:Conn 2.png|750px]]<br><br>
+
[[Файл:Conn properties eng2group.png|1024px]]<br>
 
Examples of setting communication parameters for various PLCs are given below.
 
Examples of setting communication parameters for various PLCs are given below.
 
[[http://wiki.webhmi.com.ua/index.php/Примеры_подключения_к_разным_устройствам here]]
 
[[http://wiki.webhmi.com.ua/index.php/Примеры_подключения_к_разным_устройствам here]]
 
[[Файл:Add conn.png|750px]]
 
<p>После нажатия пользователю предлагается ввести следующую информацию:</p>
 
* Базовые настройки
 
:::'''Название ''' - Название соединения, которое будет отображаться при работе с проектом
 
:::'''Категория ''' - Группировка соединений в логические группы, для организации большого списка устройств.
 
:::''' Тип устройства ''' - Тип устройства, к которому необходимо подключаться
 
:::'''Протокол '''  - Какой протокол обмена будет использоваться
 
::: '''Имя переменной''' - при наличии однотипных устройств и использовании скриптов для обработки данных в них, удобно копировать однотипные скрипты (с одинаковыми ссылками на регистры.) Используя имя переменной соединения можно выбирать какое именно соединение требуется использовать для обращения к регистру по его имени в скрипте lua.
 
:::'''Адрес устройства '''  - Адрес подключенного устройства в сети
 
::: '''Сдвиг адреса''' - для автоматического смещения адреса регистров перед подстановкой его в телеграмму передачи (для протоколов семейства Modbus).
 
::: опция '''Отключить'''  - Возможность приостановить обмен по данному соединению
 
::: опция  '''Симулировать устройство''' - Возможность имитировать наличие устройства в сети (симуляция), при этом можно записывать "виртуальные" регистры данного устройства и читать их.
 
[[Файл:Conn 1.png|750px]]<br>
 
* Настройки связи
 
:::'''Порт ''' - порт WEBHMI по которому будет происходить обмен, RS-485 - встроенный порт,  /dev/ttyUSB0 - порт внешнего преобразователя USB-Serial(их может быть несколько).
 
:::'''Скорость обмена ''' - скорость обмена
 
:::'''Количество бит ''' - количество бит данных в кадре
 
:::'''Четность '''  - используется ли контроль четности/нечетности
 
:::'''Стоп биты ''' - количество стоповых бит
 
:::'''Таймаут, мс''' - таймаут ожидания ответа по шине, мс.
 
:::'''Стабилизационная пауза, мс ''' - пауза для стабилизации шины RS-485 перед началом обмена по данному соединению. (иногда может потребоваться, когда при работе на высокой скорости, несогласованной линии, со специфичным устройством - окончание обмена с предыдущим устройством вызывает переходной процесс, который может создать помехи на линии для следующего устройства), мс.
 
::: '''Разрешить группировать регистры в один запрос''' - позволяет использовать групповые операции чтения для протоколов Modbus. Ниже указывается макс. количество регистров такой группе.
 
::: '''Отключать опрос при наличии ошибок чтения''' - позволяет автоматически временно отключить проблемное соединение в ради сохранения приемлемого времени сканирования. Необходимо указать сколько сбойных сканов и количество ошибок чтения в каждом из них использовать для автоматического отключения. Интервал отключения опроса - задает на сколько минут отключается соединение. См. настройки ниже:
 
[[Файл:Auto disable rus.png | 750px]]
 
:::'''Режим ''' - Режим работы последовательного порта Normal/Virtual. В режиме Virtual порт начинает работать как шлюз Ethernet-serial. Т.е. на компьютере-клиенте устанавливается драйвер виртуального СОМ-порта и таким образом удаленный по сети компьютер получает доступ к последовательному порту (например для программирования или диагностики контроллера). [[Настройка_виртуального_UART|Подробнее о настройке виртуального порта]]
 
[[Файл:Conn 2.png|750px]]<br><br>
 
Примеры настройки параметров связи для различных ПЛК приведены
 
[[http://wiki.webhmi.com.ua/index.php/Примеры_подключения_к_разным_устройствам здесь]]
 

Текущая версия на 15:24, 3 января 2018

Другие языки:
English • ‎русский

The connection determines which communication driver and which parameters WebHMI uses to exchange data with the equipment. The list of the supported and their parameters are given here. To create a connection (sub-menu Регистры Registers) use the 'New Connection' button (“Add connection”).
Create conn eng.png

After clicking, the user is asked to enter the following information:

  • Basic info
Title - The name of the connection that will be displayed when working with the project
Category - Grouping connections into logical groups, for organizing a large list of devices.
Device Model - Type of device to connect to
Protocol - Which protocol will be used
Script alias - If you have the same type of devices and use scripts to process data in them, it is convenient to copy the same scripts (with the same references to the registers.) Using the connection variable name, you can choose which connection you want to use to access the register by its name in the lua script.
Device address - The address of the connected device on the network
Shift address - to automatically shift the register address before substituting it into the transmission telegram (for Modbus family protocols).
Disable option - Ability to suspend the exchange of this connection
Simulate device option - The ability to simulate the presence of the device in the network (simulation mode), while you can write the 'virtual' registers of this device and read them.

Conn properties eng1.png

  • Communication settings
Порт (Device) -The WEBHMI port on which the exchange will take place, RS-485 is the built-in port, /dev/ttyUSB0 is the port of the external USB-Serial converter (there may be several converters).
Baud rate - communication speed
Data bits - number of bit in telegram byte
Parity - Whether parity / odd parity is used
Stop bits - Number of stop bits
Timeout,ms - Timeout for response on the bus, ms.
Stabilization pause,ms - Pause to stabilize the RS-485 bus before initiating an exchange for this connection. (Sometimes it may be necessary when, when operating at a high speed, an inconsistent line, with a specific device - the end of the exchange with the previous device causes a transient process that can interfere with the line for the next device).
Allow group read operations - Allows using group read operations for Modbus protocols. Below is the max. Number of registers to this group.
Disable polling in the presence of read errors - temporarily disables the problem connection automatically in order to save an acceptable scan time. It is necessary to specify how many faulty scans and the number of read errors in each of them used to automatically turn off. Interval disable polling - sets how many minutes the connection is disconnected. See settings below:

Conn properties eng32.png

Mode - Operating mode of the serial port is Normal / Virtual. In Virtual mode, the port starts functioning as an Ethernet-serial gateway. The virtual COM port driver is installed on the client computer, and thus the remote computer accesses this serial port (for example, for programming or diagnostics of the controller).More on virtual UART settings

Conn properties eng2group.png
Examples of setting communication parameters for various PLCs are given below. [here]