Перейти к содержанию

Навигация

Modbus RTU/TCP Slave/en: различия между версиями

м
FuzzyBot переименовал страницу Шлюз Modbus TCP/en в Modbus RTU/TCP Slave/en без оставления перенаправления: Часть переводимой страницы Шлюз Modbus TCP.
(Новая страница: «For numeric registers, in addition to the information above, the following parameters are also available:»)
м (FuzzyBot переименовал страницу Шлюз Modbus TCP/en в Modbus RTU/TCP Slave/en без оставления перенаправления: Часть переводимой страницы Шлюз Modbus TCP.)
 
(не показано 9 промежуточных версий 1 участника)
Строка 69: Строка 69:
For numeric registers, in addition to the information above, the following parameters are also available:
For numeric registers, in addition to the information above, the following parameters are also available:


* '''Register format''' - тип хранимых данных:
* '''Register format''' - type of stored data:
** '''Signed integer''' - знаковое целое;
** '''Signed integer''' ;
** '''Unsigned integer''' - беззнаковое целое;
** '''Unsigned integer''';
** '''BCD''' - двоично-десятичное беззнаковое целое. (Например, десятичное значение 123 будет кодироваться как 0x123 == 291);
** '''BCD''' is a binary decimal unsigned integer. (For example, a decimal value of 123 would be encoded as 0x123 == 291);
** '''IEEE 754 float''' - число с плавающей точкой;
** '''IEEE 754 float''' -floating point number;
** '''Varchar''' - текстовое поле фиксированного размера (1 символ на регистр).
** '''Varchar''' - fixed size text field (1 character per case).


* '''Size''' - размер данных в байтах. Нужно учитывать, что для всех типов, кроме текстового, в один регистр укладывается два байта.
*''' Size''' - the size of the data in bytes. Keep in mind that for all types except text, two bytes are stored in one register.
** для целочисленных типов - 2, 4 и 8 байт (соответственно, в регистрах это будет 1, 2 и 4 регистра);
**for integer types - 2, 4 and 8 bytes (respectively, in registers it will be 1, 2 and 4 registers);
** для чисел с плавающей точкой - 4 и 8 байт (2 и 4 регистра);
**for floating-point numbers that's 4 and 8 bytes (2 and 4 registers);
** для текстовых полей - любое неотрицательное значение.
**for text fields - any non-negative value.


* '''Maximum value''' - максимальное значение поля. Требуется для каналов типа range. Все значения больше максимума будут заменены на максимальное.
*''' Maximum value''' of the field. Required for channels of type range. All values greater than the maximum will be replaced by the maximum.


* '''Value scale''' - множитель значения. Например, если множитель равен 2 и в канале появилось значение 10, значение регистра будет 20. И наоборот, если в регистр было записано значение 30, в брокер уйдёт сообщение со значением 15.
*''' Value scale''' - multiplier of the value. For example, if the multiplier is 2 and the channel has a value of 10, the register value will be 20. Conversely, if a value of 30 has been written to the register, a message with a value of 15 will go to the broker.


* '''Byte swap''' - поменять порядок байт в регистрах Modbus. По умолчанию, значения записываются в регистры в формате big-endian. Если установить этот флаг, регистр будет интерпретироваться как little-endian. ''Важно:'' флаг действует только на отдельные регистры; в случае составных значений (размером больше 2 байт), меняется порядок только в каждом двухбайтном слове. Например, значение 0x12345678 будет записываться как 0x34127856,
*'''Byte swap''' - changes the byte order in Modbus registers. By default, values are written to registers in the big-endian format. If this flag is set, the register will be interpreted as little-endian. Important: the flag only applies to individual registers; for compound values (larger than 2 bytes), only the order of each two-byte word changes. For example, the value 0x12345678 will be written as 0x34127856,


* '''Word swap''' - поменять порядок слов для составных значений. Например, значение 0x12345678 будет записываться как 0x56781234.
*'''Word swap''' - change word order for compound values. For example, the value 0x12345678 will be written as 0x56781234.


Таким образом, чтобы записать значение в формате little-endian, нужно установить оба последних флага.
So, you need to set both last flags to write the value in little-endian format.


Общие параметры:
General settings:
* '''Remap addresses after edit''' - обновить адреса устройств в случае, если произошло наложение адресов. Полезно, если требуется изменить размер данных в сторону увеличения. При установке этого флага после сохранения конфигурационного файла он будет проанализирован на наложения адресов; если таковые будут обнаружены, сервис попытается их устранить, после чего флаг будет снят. (Для того, чтобы получить обновлённый конфигурационный файл, после сохранения требуется перезагрузить страницу). '''Внимание!''' Использовать этот флаг можно только на настраиваемой системе, так как могут измениться адреса любых каналов, в том числе и уже настроенных.
 
*'''Remap addresses after edit''' - update the addresses of the devices in the case was the imposition of addresses. Useful if you want to resize the data to a larger size. When this flag is set, after saving the configuration file, it will be analyzed for address overlays; if they are found, the service will try to remove them, after which the flag will be removed. (In order to get the updated configuration file, you need to reload the page after saving).''' Attention!''' This flag can be used only on the configured system, as the addresses of any channels, including those already configured, can be changed.
wb_editors
14 355

правок