26.12.2012 Views

Serial Communications Protocol Specifications - Swissvacuum.com

Serial Communications Protocol Specifications - Swissvacuum.com

Serial Communications Protocol Specifications - Swissvacuum.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The entire task can be described as follows:<br />

- 5 -<br />

Fig. 2 Communication overview<br />

MASTER (PC) SLAVE (CHAMBER CONTROLLER)<br />

Prepare query to send<br />

Send query to the slave via serial line.<br />

Wait answer from the Slave<br />

The Modbus protocol implemented in the MicroPLC chamber controller is the binary type (also known as RTU). In<br />

RTU mode data are sent as 8 bits binaries characters. A remote control <strong>com</strong>puter (typically a PC) is always the<br />

master device meanwhile the MicroPLC controller is the slave device.<br />

ERROR DETECTION<br />

As well known, <strong>com</strong>munication errors can occour during data transmission on a serial line. The errors generally <strong>com</strong>e<br />

from noise on the line and electrical or hardware problems on the devices used for the <strong>com</strong>munication.<br />

The software that controls the <strong>com</strong>munication (the PC) takes care to identify the errors and manage them with<br />

appropriate actions.<br />

Specifically, when an error is detected, the data packet must be discarded (not used) because the data inside are<br />

probably corrupted and meaningless.<br />

Only when no error is present, the data packet can be decoded to extract the answer <strong>com</strong>ing from the chamber<br />

controller.<br />

The errors can be present in both sides of the serial line (PC side and chamber controller side). If the error is identified<br />

by the chamber controller, then no answer will be send to the master.<br />

Fig. 3 Noise on the line<br />

Wait data from the master<br />

Decode packet and prepare the<br />

answer<br />

Send packet to the master<br />

<strong>Serial</strong> <strong>com</strong>munications protocol vers. 2.02 Angelantoni Industrie Spa Massa Martana (PG) Italy

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!