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

Новая страница: «If an error occurs, the device returns an error code. In the case of a normal transaction, the function code in the response is returned unchanged; in the case of…»
(Новая страница: «700px|thumb|center|Modbus-transaction without errors»)
(Новая страница: «If an error occurs, the device returns an error code. In the case of a normal transaction, the function code in the response is returned unchanged; in the case of…»)
Строка 25: Строка 25:
----
----


При возникновении ошибки устройством возвращается код ошибки. В случае обычной транзакции код функции в ответе возвращается без изменений; в случае ошибки старший бит кода функции устанавливается в единицу (то есть ''код функции'' + 0x80)
If an error occurs, the device returns an error code. In the case of a normal transaction, the function code in the response is returned unchanged; in the case of an error, the highest bit of the function code is set to one (that is, the function code + 0x80)


[[Special:MyLanguage/Файл:Modbus_transaction_ERR.png|700px|thumb|center|Modbus-транзакция с ошибками]]
[[Special:MyLanguage/Файл:Modbus_transaction_ERR.png|700px|thumb|center|Modbus-транзакция с ошибками]]
12 063

правки