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

Новая страница: «*'''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 regi…»
(Новая страница: «*''' 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, i…»)
(Новая страница: «*'''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 regi…»)
Строка 85: Строка 85:
*''' 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.
*''' 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''' - поменять порядок слов для составных значений. Например, значение 0x12345678 будет записываться как 0x56781234.
12 063

правки