User manual
Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
234
CP-11/MC-11 UDP/IP
CP-11/12 or MC-11/12 Ethernet ports only support the Kingfisher protocol when using the UDP/IP transport
layer.
• All sockets listen on address 473 (the destination port).
• UDP messages have a source port and a destination port.
• If #YPSTrrr.12 is set to 0 (default), the RTU will respond to a message using a destination port of 473 in
the reply. Eg. a message is received with a source port of 2000 and a destination port of 473. The reply
is then sent with a source port of 2000+x and a destination port of 473. The reply source port is
incremented from 2000 for each newly opened socket.
All four sockets always remain open listening on port 473 and each socket is able to receive messages
from any remote device (provided they are sending to a destination port of 473). However, a separate
socket is used when responding to each remote device.
If all sockets are being used and the RTU needs to initiate a message to a new device, it will disconnect
the socket that has been inactive the longest and reuse that socket.
• If #YPSTrrr.12 is set to 1, the RTU will respond to a message using the source port of the received
message as the destination port in the reply. Eg. a message is received with a source port of 2000 and
a destination port of 473. The reply is then sent with a source port of 473 and destination port of 2000.
The RTU will continue to use this socket connection to communicate with the remote device until the
socket is reused by the RTU for a new connection.
If all sockets are being used and the RTU needs to initiate a message to a new device, it will disconnect
the socket that has been inactive the longest and reuse that socket.
• UDP socket connections do not time out.
• UDP socket connections cannot be closed by the remote device.
• An RTU will only use the reply IP address/port numbers to communicate with a remote RTU while the
failed attempts is less than three. After three failed attempts, the socket is closed and available for re-
use.
CP-21 TCP/IP
A CP-21 can have up to 24 socket connections at the same time. Some sockets are reserved for listening for
incoming messages for individual protocols as follows:
• 1 socket always listens on port 473 (for Series 2 connection requests)
• 1 socket always listens on port 20000 (for DNP3 connection requests)
• 1 socket always listens on port 502 (for Modbus connection requests)
• 1 socket always listens on port 80 (for the HTTP server - no longer supported)
• 1 socket always reserved for creating new socket connections.
• The remaining 19 sockets are available for data connections to remote devices. When an incoming
message is received by one of the 4 listening sockets then a new connection is made using one of the 19
sockets to reply. The socket used for the incoming connection will not automatically time out.
• When all 19 sockets are being used the Ethernet port is unable to respond to messages from new
devices.
• When all 19 sockets are being used and the local RTU needs to initiate a message to a new RTU that
doesn’t already have a connection, the RTU will close the socket that has been inactive the longest and
reuse that socket.
• Sockets can be closed by the remote device.
• A socket used for a connection that was initiated by the local RTU can be closed after a configurable
amount of seconds by using the Post TX port setting (as detailed below).
LP-2/3 TCP/IP
An LP-2/3 Ethernet port has eight sockets that can be used for connections. The sockets are used differently
depending on which protocol is being used.
• When using the Kingfisher protocol, all four sockets listen on address 473.
• When using the DNP-3 protocol, three (seven for T3) sockets listen on address 20,000 for DNP-3
messages and one socket listens on address 473 for Kingfisher messages.
• To respond to an incoming message from a new RTU or device, the RTU uses the same socket on
which the message arrived.
• A socket that was opened for an incoming message is automatically closed after 60 seconds of
inactivity or if the remote device closes the connection or if closed using the #YLSTrrr.11 parameter.
• A socket is required when initiating an outgoing message to a new RTU or device. If all sockets are
being used, the RTU will disconnect the socket that has been inactive the longest and reuse that socket.