ModBus ASCII/en — различия между версиями

Материал из WebHMI Wiki
Перейти к: навигация, поиск
(Новая страница: «ModBus ASCII»)
 
 
(не показано 7 промежуточных версий 2 участников)
Строка 1: Строка 1:
<p>В WebHMI реализована работа с различными устройствами по протоколу ModBus ASCII.</p>
+
<languages/>
<p>В версии 1.5 поддерживаются четыре типа регистров ModBus:</p>
+
<p>WebHMI supports various devices using the ModBus ASCII protocol</p>
 +
<p>Version 1.5 supports 4 types of ModBus regisers :</p>
  
 
== Cxx - Coils ==
 
== Cxx - Coils ==
<p>Регистры флагов</p>
+
<p>Flag registers</p>
<p>Функции ModBus: чтение - 0x01, запись - 0x05</p>
+
<p>ModBus functions: read - 0x01, write - 0x05</p>
<p>Тип данных: Bit</p>
+
<p>Data type: Bit</p>
<p>Диапазон регистров: 0 <= xx <= 65535</p>
+
<p>Register range: 0 <= xx <= 65535</p>
<p>Примеры регистров: C0, C12, C65535</p>
+
<p>Examples: C0, C12, C65535</p>
  
 
== DIxx - Discrete Inputs ==
 
== DIxx - Discrete Inputs ==
<p>Регистры дискретных входов</p>
+
<p>Digital input registers</p>
<p>Функции ModBus: чтение - 0x02</p>
+
<p>ModBus function: read- 0x02</p>
<p>Тип данных: Bit</p>
+
<p>Data type: Bit</p>
<p>Диапазон регистров: 0 <= xx <= 65535</p>
+
<p>Registers range: 0 <= xx <= 65535</p>
<p>Примеры регистров: DI0, DI2, DI65535</p>
+
<p>Examples: DI0, DI2, DI65535</p>
  
 
== HRxx - Holding Registers ==
 
== HRxx - Holding Registers ==
<p>Регистры регистров хранения.</p>
+
<p>Holding Registers.</p>
<p>Функции ModBus: чтение - 0x03, запись - 0x06</p>
+
<p>ModBus functions : read - 0x03, write - 0x06</p>
<p>Тип данных: Word</p>
+
<p>Data type: Word</p>
<p>Диапазон регистров: 0 <= xx <= 65535</p>
+
<p>Registers range: 0 <= xx <= 65535</p>
<p>Примеры регистров: HR0, HR1, HR2, HR65535</p>
+
<p>Examples: HR0, HR1, HR2, HR65535</p>
  
 
== MHRxx - Multiple Holding Registers ==
 
== MHRxx - Multiple Holding Registers ==
Полностью аналогичны HRxx. Отличие в том, что запись в такие регистры происходит с помощью функции Modbus №16 (Preset Multiple Register)
+
These registers identical to HRxx. The difference is that for write operations Modbus #16 (Preset Multiple Register) function is used.
  
 
== IRxx - Input Registers ==
 
== IRxx - Input Registers ==
<p>Регистры регистров ввода.</p>
+
<p>Input registers type.</p>
<p>Функции ModBus: чтение - 0x04</p>
+
<p>ModBus function: read - 0x04</p>
<p>Тип данных: Word</p>
+
<p>Data type: Word</p>
<p>Диапазон регистров: 0 <= xx <= 65535</p>
+
<p>Register range: 0 <= xx <= 65535</p>
<p>Примеры регистров: IR0, IR1, IR2, IR65535</p>
+
<p>Examples: IR0, IR1, IR2, IR65535</p>
 +
Note: By default, when reading double words, two queries will be used - one for each word. To explicitly set double-word reading by single query of multiple read type, you must enable grouping in the connection properties.

Текущая версия на 08:26, 14 мая 2018

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

WebHMI supports various devices using the ModBus ASCII protocol

Version 1.5 supports 4 types of ModBus regisers :

Cxx - Coils

Flag registers

ModBus functions: read - 0x01, write - 0x05

Data type: Bit

Register range: 0 <= xx <= 65535

Examples: C0, C12, C65535

DIxx - Discrete Inputs

Digital input registers

ModBus function: read- 0x02

Data type: Bit

Registers range: 0 <= xx <= 65535

Examples: DI0, DI2, DI65535

HRxx - Holding Registers

Holding Registers.

ModBus functions : read - 0x03, write - 0x06

Data type: Word

Registers range: 0 <= xx <= 65535

Examples: HR0, HR1, HR2, HR65535

MHRxx - Multiple Holding Registers

These registers identical to HRxx. The difference is that for write operations Modbus #16 (Preset Multiple Register) function is used.

IRxx - Input Registers

Input registers type.

ModBus function: read - 0x04

Data type: Word

Register range: 0 <= xx <= 65535

Examples: IR0, IR1, IR2, IR65535

Note: By default, when reading double words, two queries will be used - one for each word. To explicitly set double-word reading by single query of multiple read type, you must enable grouping in the connection properties.