Commissioning and configuration
Leuze electronic GmbH + Co. KG
BCL 308
i
84
10.3.3 Ethernet host communication
The Ethernet host communication enables the configuration of connections to an external host system.
Both UDP as well as TCP/IP (in either client or server mode) can be used. The connection-free UDP
protocol is used primarily to transfer process data to the host (monitor operation). The connection-oriented
TCP/IP protocol can also be used to transfer commands from the host to the device. With this connection,
the data is backed up by the TCP/IP protocol itself.
If you would like to use the TCP/IP protocol, you must also define whether the BCL 308
i
is to operate as
a TCP client or as a TCP server.
Both protocols can be activated simultaneously and used in parallel.
Contact your network administrator to determine which communication protocol is used.
10.3.4 TCP/IP
Activate the TCP/IP protocol
Set the TCP/IP mode of the BCL 308
i
In TCP client mode, the BCL 308
i
actively establishes the connection to the superior host system (PC /
PLC as server). The BCL 308
i
requires from the user the IP address of the server (host system) and the
port number on which the server (host system) accepts a connection. In this case, the BCL 308
i
deter
-
mines when and with whom a connection is established!
With a BCL 308
i
as TCP client, also set the following values:
• IP address of the TCP server (normally the PLC/host computer)
• Port number of the TCP server
• Timeout for the wait time for an answer from the server
• Repetition time for renewed communication attempt following a timeout
In TCP server mode, the superior host system (PC / PLC) actively establishes the connection and the
connected BCL 308
i
waits for the connection to be setup. The TCP/IP stack requires information from the
user regarding the local port of the BCL 308
i
(port number) on which the connection requests of a client
application (host system) are to be accepted. If there is a connection request and a connection is estab
-
lished by the superior host system (PC / PLC as client), the BCL 308
i
(server mode) accepts the connec
-
tion. Data can then be sent and received.
With a BCL 308
i
as TCP server, also set the following values:
• Port number for the communication of the BCL 308
i
with the TCP client
The corresponding adjustment options can be found:
• Via webConfig:
Configuration -> Communication -> Host communication
10.3.5 UDP
The BCL 308
i
requires from the user the IP address and the port number on which the communication
partner receives data. In the same way, the host system (PC / PLC) now also requires the set IP address
of the BCL 308
i
and the selected port number. This assignment notifies both communication partners of
which port the data is received on.
Activate the UDP protocol
Also set the following values:
• IP address of the communication partner
• Port number of the communication partner
The corresponding adjustment options can be found:
• Via webConfig:
Configuration -> Communication -> Host communication