BVS ID-M1280xF1-xx-xxx
44
english
4 Connection to the customer control system
4.1
UDP/TCP Process Data Protocol
4.1.1 Introduction
It is possible to control
BVS ID
using UDP sockets or TCP sockets via the Ethernet interface of the host system.
For this, the port 36701 is used.
TCP and UDP sockets are essentially different. With a TCP socket first a connection between
BVS ID
and the
controlling system is opened. With a UDP socket this is not necessary, since individual packets are simply sent.
In both cases
BVS ID
expects a Connect message, then it starts to send out status updates and result data. If
the controlling system does not want any more updates, it sends Disconnect. Likewise a Disconnect should be
sent before the socket is closed.
BVS ID
supports only one active client.
BVS ID
responds to a Connect message with a Connect response; in addition, it then sends a status message
to the controlling system so that the latter is informed about the current status of
BVS ID
.
Since TCP is based on data streams, multiple messages sent by
BVS ID
may share a common TCP-header. It
is therefore recommended to parse the user data length, which is sent with every message, to divide individual
messages on the receiver side. To minimize latencies, Nagle's algorithm is deactivated in
BVS ID
(option
TCP_NODELAY). It is recommended to set option TCP_NODELAY in the controlling system also. In many cases
this also prevents that multiple messsages share a common TCP header.
Since UDP is based on data packages, every message of
BVS ID
corresponds exactly to one UDP message.
On the other hand, UDP provides no guarantee, that sent messages are actually delivered. If transmission
security is of great importance, use of TCP sockets is therefore recommended.
Invalid messages are ignored by
BVS ID
.
To communicate via UDP, you have to set the
Mode
in the system menu ("
System settings ->
communication
") to "
UDP
". To communicate via TCP, this
Mode
must be set to "
TCP
".
Messages from
BVS ID
are sent asynchronously.
NOTE
Summary of Contents for BVS ID-M1280-F1 Series
Page 1: ...deutsch Konfigurationsanleitung english Configuration Guide BVS ID M1280 F1 xx xxx...
Page 2: ...www balluff com...
Page 3: ...deutsch Konfigurationsanleitung BVS ID M1280xF1 xx xxx...
Page 4: ...www balluff com...
Page 79: ...BVS ID M1280xF1 xx xxx deutsch 77 Ablaufdiagramm Handshake...
Page 81: ...BVS ID M1280xF1 xx xxx deutsch 79 Ablaufdiagramm Handshake mit Input Toggle...
Page 83: ...BVS ID M1280xF1 xx xxx deutsch 81 Ablaufdiagramm Handshake mit Output Toggle...
Page 173: ...956115_AA DE K22 nderungen vorbehalten...
Page 174: ......
Page 175: ...english Configuration Guide BVS ID M1280xF1 xx xxx...
Page 176: ...www balluff com...
Page 245: ...BVS ID M1280xF1 xx xxx english 71 Handshake flow chart...
Page 247: ...BVS ID M1280xF1 xx xxx english 73 Handshake flow chart with input toggle...
Page 249: ...BVS ID M1280xF1 xx xxx english 75 Handshake flow chart with output toggle...