wb_editors
14 355
правок
(Новая страница: «For numeric registers, in addition to the information above, the following parameters are also available:») |
FuzzyBot (обсуждение | вклад) м (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''' | ** '''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''' - | ** '''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. | ||
** | **for integer types - 2, 4 and 8 bytes (respectively, in registers it will be 1, 2 and 4 registers); | ||
** | **for floating-point numbers that's 4 and 8 bytes (2 and 4 registers); | ||
** | **for text fields - any non-negative value. | ||
* '''Maximum value''' | *''' 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''' - | *''' 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''' - | *'''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''' - | *'''Word swap''' - change word order for compound values. For example, the value 0x12345678 will be written as 0x56781234. | ||
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. |