|
link 22.02.2014 12:20 |
Subject: Перевод Holes/register alignment gen. В контексте:Modbus function codes This device supports following function codes: 3, 8 and 16. Function codes 3 and 16 are used for accessing registers, max. 16 registers per read/write request is accepted. Function code 8 is used for reading Modbus communication diagnostic information. Below the various function code are described. Function code 3 (Read holding registers) General exceptions: ● Requesting less than 1 or more than 16 registers => Exception 3 (Illegal data value) ● Requesting invalid start address or start address with invalid quantity => Exception 2 (Illegal data address) Application exceptions: ● Application errors; min/max limit of parameter exceeded; or parameter write-protected => Exception 4 (Slave device error) Holes/register alignment: ● The read command always returns data if no exception is given. ● Holes in the holding register map return value zero in all bytes. E.g. reading 2 registers starting at 4:0004 above will result in 2 bytes of "float B" followed by 2 zeroes. |
|
link 22.02.2014 13:46 |
Что за Holes? |
перфокарты помните? |
|
link 22.02.2014 14:23 |
Спасибо! Похоже, что подходит. Просто я не сильна в этой тематике. Попался небольшой раздел. |
Только этот протокол цифровой :) |
|
link 22.02.2014 20:19 |
и что тогда? подскажите, плииз. Вы, как я посмотрю, в этой теме понимаете. |
согласование регистров с областью свободной памяти : ---- Свободная память в карте регистров хранения во всех байтах принимает нулевое значение, например - чтение 2 регистров, которые начинаются с 4:0004, как указано ранее, в итоге будет иметь 2 байта "плавающего буфера" с последующими 2 нулями. |
You need to be logged in to post in the forum |