![Solcon HRVS-DN series Скачать руководство пользователя страница 132](http://html1.mh-extra.com/html/solcon/hrvs-dn-series/hrvs-dn-series_instruction-manual_1314370132.webp)
132 • HRVS-DN Communication (ModBus Protocol)
_____________________________________________________________________________________________
16.2
Basic Structure of the Serial Link Frame
The Modbus RTU frame has the same principal structure for both the "Query" transmission from the Master to
the Slave (HRVS-DN) and the Response transmission from the Slave to the Master:
"sync": Silent Interval for at least 3.5 character times
1
byte 1: Serial Link No. (= Slave Address)
(1..247)
byte 2: Function
(1,2,3,4,5,6,8,15 &16 are supported)
byte
3:
Data
Bytes
($XX)
. .
($XX)
. .
($XX)
byte
n-1:
CRC_Low
($XX)
byte n : CRC_High
($XX)
"sync": Silent Interval for at least 3.5 characters
16.3
SYNC (Silent Interval)
In RTU mode, messages use a "Silent Interval" more than 3.5 characters to "synchronize". This silent interval
separates transmission frames.
The entire frame must be transmitted as a continuous stream. A silent interval of more than 3.5 characters
during frame transmission will cause the receiving device to ignore the incomplete frame. The next byte is
assumed to be the Serial Link No. of the next frame.
Ignoring the frame can also occur if a second message is transmitted less than 3.5 characters from the end of
the previous frame. This causes the receiving device to consider that frame to be a continuation of the first
frame, thus resulting in a CRC error.
16.4
Serial Link No. (Slave Address)
Contains HRVS-DN Slave Number (1..247) on the serial link. The HRVS-DN default value is 248, which is the
communication OFF condition. Serial Link No. is used as the first byte in both the "Query" transmission from
Master to Slave and in Response transmission from Slave to Master.
Note
: Address 0, which is normally used for broadcast transmissions is not supported by the HRVS-DN.
16.5
Function
The Function code informs the HRVS-DN what action is requested. In most cases, Function is used as the
second byte in both the "Query" transmission from Master to Slave and in Response transmission from Slave
to Master.