Server

<< Click to Display Table of Contents >>

Navigation:  Devices > Data exchange >

Server

Previous pageReturn to chapter overviewNext page

The data exchange server can be used by an arbitrary number of clients to exchange data over an arbitrary number of communication channels. The communication channels are create at server side. The communication channels created are broadcasted to all clients. The clients can choose over which channels they are going to exchange data with the server.

 

Server and clients are have equal rights when exchanging data. When a client writes data into a communication channel the data is transfer to the server and from there to all other clients. If more than one participant is writing to the same channel it is unpredictable which datum the communication channel contains in the end.

 

After adding the data exchange server device to the function block library the communication channels can be added via the servers context menu.

 

devices_dataexchange_server_add_channel

 

A dialog is displayed to enter the name and the type of the new channel.

 

devices_dataexchange_server_add_channel_dialog

 

The channel's name must be unique and must contain ASCII characters excluding the "/" character only. By pressing Ok the channel is created. In the function block library two new function blocks appear named "channel name Writer" and "channel name Reader". These function blocks are used to write to or read from a communication channel.

 

devices_dataexchange_server_add_channel_finished