96
12�1 The Com-Server as TCP client
In contrast to the passive TCP server mode, in TCP client
mode the Com-Server independently opens connections to a
TCP server located in the network. The destination IP address
and destination port number needed for this can either be
stored in the configuration or sent serially to the Com-Server
before the actual user data. A trigger for opening the connec-
tion could be serially received characters or status change of
a handshake procedure. The connection is closed on a time
basis or when a particular serial character is received.
If there is no connection to the TCP server currently active,
the portitself can also be a TCP server and accept connections
from clients on its default TCP port or on the port configured
in the menu branch Setup Port x r TCP/IP Mode r Port Num-
ber.
After basic startup of the Com-Server and setting the serial
transmission parameters in accordance with the connected
device, the TCP client mode is configured in the Submenu Se-
tup Port x r TCP Mode r TCP-Client.
Application examples TCP-Client mode
• The message generated irregularly from a serial device
connected to the Com-Server should be received with a
program specifically designed as a TCP server.