23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

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

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

Communication Aspects of IEC 61499 Architecture 55-15<br />

FIGURE 55.12<br />

IEC 61499.<br />

The network topology of our system described as a part of distributed system configuration of<br />

55.9 Internals of Communication FBs: Modbus<br />

Modbus (described in Chapter 4.12 of this Handbook and in [20–24]) is one of the many <strong>communication</strong><br />

protocols that may be used for transferring events and data over a network. As this protocol is<br />

based on a remote memory data model which is accessed and updated using the client–server interaction<br />

model, it is naturally implemented in IEC 61499 as CLIENT and SERVER <strong>communication</strong> service<br />

interface FBs illustrated in Figure 55.14.<br />

The Modbus protocol includes three versions, namely RTU, ASCII, and TCP. The first two use a different<br />

method of byte encoding on the same physical media (RS232 or RS485), while the last transmits<br />

the messages over TCP/IP connections. Due to these variations of the protocol, one SERVER and one<br />

CLIENT FB type are needed for each version.<br />

A description of a typical data and event transfer sequence is as follows:<br />

• The device containing the RCV FB (the server device) initializes this server (INIT+ event, i.e.,<br />

INIT event with QI input set to TRUE) while simultaneously providing configuration parameters.<br />

For the TCP version, these consist of the local IP addresses and port numbers on which it will listen<br />

awaiting for the arrival of connection requests from clients. For the RTU and ASCII versions,<br />

the parameters are the identification of the hardware interface (e.g., the serial port) to use as well<br />

as the serial line parameters (baud rate, number of start and stop bits, number of bits, and parity).<br />

All versions also require an additional parameter, the Modbus device ID.<br />

• The device containing the SEND (client device) initializes this client (INIT+ event). Required<br />

parameters include the serial line interface details (for RTU and ASCII versions) and the Modbus<br />

device ID of the remote server with which it will communicate. For the TCP version, the IP address<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

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

Saved successfully!

Ooh no, something went wrong!