Mitsubishi L02CPU User Manual page 83

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

(3) Precautions
(a) Use of UDP
Data may be lost, or may arrive out of order. Consider the application of TCP if any problem is expected.
(b) Sending and receiving data
Data sending process may be terminated even if the communication line between the CPU module and target
device is not connected due to a reason such as cable disconnection. To avoid this, it is recommended to
provide communication procedures at the user's discretion.
(c) Changing the target
Use the SP.SOCCSET instruction to change the target device.
For the SP.SOCCSET instruction, refer to Page 109, Section 7.4.7.
(d) Open completion signal and Open request signal
Once UDP is selected for a connection, the Open completion signal and Open request signal of the connection
are always on.
(e) SP.SOCCLOSE instruction
Do not execute the SP.SOCCLOSE instruction in a program.
Doing so will disable data transfer since the Open completion signal and Open request signal of the
corresponding connection turn off for close processing.
To reopen a closed connection, execute the SP.SOCOPEN instruction.
For the SP.SOCOPEN instruction, refer to Page 86, Section 7.4.1.
(f) Simultaneous broadcast targets
With simultaneous broadcast, data can be sent to the devices which are connected to the same hub of the
CPU module, and to those connected to the cascaded hub(s). Data cannot be received from the devices
connected through routers.
(g) Receiving data using simultaneous broadcast
When data are received through a connection of simultaneous broadcast, the IP address and port number of
the sender can be acquired by the SP.SOCCINF instruction.
For the SP.SOCCINF instruction, refer to Page 106, Section 7.4.6.
(h) Connection of simultaneous broadcast
Data cannot be sent when FFFF
specify a value other than FFFF
is specified for the port number of the transmission target. To send data,
H
.
H
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
7
81

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents