Serial Communications Protocol Specifications - Swissvacuum.com
Serial Communications Protocol Specifications - Swissvacuum.com
Serial Communications Protocol Specifications - Swissvacuum.com
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
- 7 -<br />
03 Illegal data value<br />
04 Failure in associated device<br />
05 Acknowledge: the slave is processing the request<br />
06 Busy: busy device, rejected message<br />
NAK: It is impossible to execute the requested function<br />
07 Memory parity error<br />
For example, let us say that we want to read data from the slave. Master prepares a data packet (query) with modbus<br />
function code 3 (function code 3 identifies a READ request as we will see later) and send the packet to the slave.<br />
In preparing the answer, the slave will return the same function code if no exception is present, otherwise it will return<br />
the exception code as reported below (note that only the first two bytes of the data packet are showed here: the<br />
detailed explanation of the entire frame will follow in the specific paragraph)<br />
0 ADDRESS Chamber controller address<br />
1 03 dec: 00000011 binary Modbus function code for read operation<br />
2 ….<br />
3 ….<br />
4 ….<br />
0 ADDRESS Chamber controller address<br />
1 03 hex: 00000011 binary Modbus function code for read operation<br />
2 ….<br />
3 ….<br />
4 ….<br />
0 ADDRESS Chamber controller address<br />
1 83 hex: 10000011 binary Modbus function code + exception<br />
2 02 Exception number: illegal data address<br />
3 Error check<br />
4 Error check<br />
IDENTIFICATION OF A DATA PACKET<br />
Two different ways are available to the programmer to identify a data packet in binary mode:<br />
� FRAME SYNCHRONIZATION<br />
� LENGHT SYNCHRONIZATION.<br />
In the following section a short description of both will be done in order to have an overview on advantages and<br />
difficulties of both.<br />
FRAME SYNCHRONIZATION<br />
QUERY FROM THE MASTER TO THE SLAVE<br />
ANSWER FROM THE SLAVE, NO EXCEPTION<br />
ANSWER FROM THE SLAVE, EXCEPTION 02<br />
Frame synchronization can be manteined in binary transmission mode (RTU) only by simulating a<br />
synchronous message. The receiving device monitors the elapsed time between receipt of characters.<br />
Modbus specifications requests that this time (time between the reception of a character and the following) is<br />
less or equal to 3.5 times the time of character transmission because the received data can be considered<br />
<strong>Serial</strong> <strong>com</strong>munications protocol vers. 2.02 Angelantoni Industrie Spa Massa Martana (PG) Italy