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

Навигация

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

Новая страница: «600px|thumb|center|Transaction failed In this case, we tried to access the nonexistent register address 0xFFFF and tried to read 8 f…»
(Новая страница: «If the request cannot be processed by the server device for one reason or another, it sends an error message in response. The error message contains the address o…»)
(Новая страница: «600px|thumb|center|Transaction failed In this case, we tried to access the nonexistent register address 0xFFFF and tried to read 8 f…»)
Строка 195: Строка 195:
If the request cannot be processed by the server device for one reason or another, it sends an error message in response. The error message contains the address of the Modbus device, the code of the function in which the error occurred, increased by 0x80, the error code and the checksum:
If the request cannot be processed by the server device for one reason or another, it sends an error message in response. The error message contains the address of the Modbus device, the code of the function in which the error occurred, increased by 0x80, the error code and the checksum:


[[Special:MyLanguage/Файл:Read_8_Coils_ERR.png|600px|thumb|center|Транзакция завершилась с ошибкой]]
[[File:Read_8_Coils_ERR.png|600px|thumb|center|Transaction failed]]
В этом случае мы попытались обратиться к несуществующему адресу регистра 0xFFFF и попытались прочесть 8 регистров флагов. В результате мы получили код ошибки 0x03 — "В поле данных передано неверное значение".
In this case, we tried to access the nonexistent register address 0xFFFF and tried to read 8 flag registers. As a result, we received error code 0x03 — "an invalid value was passed in The data field".


Наиболее распространенные коды ошибок Modbus приведены в следующей таблице:
Наиболее распространенные коды ошибок Modbus приведены в следующей таблице:
12 063

правки