Ethernet Host Communication; Tcp/Ip - Leuze electronic BCL 248i Operating Instructions Manual

Bar code reader
Table of Contents

Advertisement

Starting up the device - Configuration
NOTICE
Each device with Ethernet interface is uniquely identified via the MAC address assigned during
production.
The MAC address is also listed on the name plate of the device.
If multiple devices are commissioned in a system, the MAC address of each installed device
must be correctly assigned, e.g., during programming of the control.
Ä Remove the "Address Link Label" from the device.
Ä If necessary, add the IP address and the device name to the "Address Link Label".
Ä Affix the "Address Link Label" in the documents, e.g., in the installation diagram, according to the posi-
tion of the device.
8.3.9

Ethernet host communication

This chapter is only of interest if an additional IP address independent of the device name is to be estab-
lished for an additional communication channel, e.g. TCP/IP.
The control generally also assigns an IP address to the actual device name. The Ethernet host communica-
tion 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 in your application, you must also define whether the BCL 248i
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.

8.3.10 TCP/IP

Ä Activate the TCP/IP protocol.
Ä Set the TCP/IP mode of the bar code reader.
TCP client mode
In TCP client mode, the bar code reader actively establishes the connection to the superior host system
(PC/PLC as server). The bar code reader 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 bar code
reader determines when and with whom a connection is established.
Ä With a bar code reader as TCP client, 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
TCP server mode
In TCP server mode, the superior host system (PC/PLC) actively establishes the connection and the con-
nected bar code reader waits for the connection to be set up. The TCP/IP stack must be informed by the
user as to the local port of the bar code reader (port number) on which connection requests from a client
application (host system) are to be received. If there is a connection request and a connection is estab-
lished by the superior host system (PC/PLC as client), the bar code reader (in server mode) accepts the
connection. Data can then be sent and received.
Ä With a bar code reader as TCP server, set the following values:
• Port number for the communication of the bar code reader with the TCP clients
The corresponding adjustment options can be found in the webConfig tool under Configuration > Com-
munication > Host communication.
Leuze electronic GmbH + Co. KG
BCL 248i
46

Advertisement

Table of Contents
loading

Table of Contents