![Mitsubishi Electric melsec q03ud(E)cpu User Manual Download Page 105](http://html.mh-extra.com/html/mitsubishi-electric/melsec-q03ud-e-cpu/melsec-q03ud-e-cpu_user-manual_239150105.webp)
103
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
7
7.3 Pr
ecau
tions for
the Socket C
ommunication Fu
nction
7.3
Precautions for the Socket Communication Function
This section provides other precautions for the socket communication function.
(1) Port number
Host station port number, 0001
H
to 03FF
H
, are assigned for reserved port numbers (WELL KNOWN PORT
NUMBERS) and F000
H
to FFFE
H
are for other communication functions. Therefore, using 0400
H
to 1387
H
and
1392
H
to EFFF
H
is recommended.
Do not specify 1388
H
to 1391
H
because these ports are used by the system. (
Do not specify 0014
H
and 0015
H
for the socket communication function when using the FTP function.
Do not specify 007B
H
for the socket communication function when using the time setting function (SNTP).
Do not specify F000
H
to FFFE
H
for the socket communication function when using the data logging file transfer
function.
(2) Reading out received data
Read out received data when the Receive state signal (SD1286) has turned on.
Communication via the built-in Ethernet port may be affected if a considerable amount of received data have not
been read out for a long time.
(3) Conditions for closing
In TCP communications, even if no close request is sent from the connected device, the Open completion signal
will turn off to close the connection in the following cases.
• Alive check is timed out.
• Forced close is received from the connected device.
(4) Elements for TCP connection
The following four elements control TCP connections, and only one connection can be established with a unique
setting for these elements. To use multiple TCP connections at the same time, at least one of the four elements
must be different.
• IP address of the CPU module
• Port number of the CPU module
• IP address of the target device
• Port number of the target device
(5) Reestablishment of the same connection
Allow eight seconds or more before reestablishing a connection of the same target IP address, the same host
station port number, and the same target port number after closing it.
If the reestablishment is time-critical, it is recommended to change the host station port number on the Active
open side.
(6) Precautions for file access during communication
The CPU module will perform file access processing prior to Ethernet communication processing. Because of
this, processing of the socket communication function may be delayed if a file is accessed by FTP or a
programming tool during the processing.
When accessing a file while response time monitoring is performed on the connected device with the socket
communication function, add the time required for file access to the monitoring time.
Summary of Contents for melsec q03ud(E)cpu
Page 2: ......
Page 11: ...9 Memo ...
Page 209: ...207 APPENDICES A Appendix 4 Specifications Comparison with Ethernet Module Memo ...
Page 213: ...211 Memo ...
Page 219: ......