Modbus/en: различия между версиями
(Новая страница: «=== Modbus request and response data format ===») |
|||
Строка 21: | Строка 21: | ||
The function is encoded in one byte and determines what action the server device should perform. Function codes range from 1 to 255, with codes 128 to 255 reserved for error messages from the server device. Code 0 is not used. The size of the data block can vary from zero to the maximum allowed. If the request is processed correctly, the server device returns an ADU containing the requested data. | The function is encoded in one byte and determines what action the server device should perform. Function codes range from 1 to 255, with codes 128 to 255 reserved for error messages from the server device. Code 0 is not used. The size of the data block can vary from zero to the maximum allowed. If the request is processed correctly, the server device returns an ADU containing the requested data. | ||
[[ | [[File:Modbus_transaction_OK.png|700px|thumb|center|Modbus-transaction without errors]] | ||
---- | ---- |