Mitsubishi Electric Q03UDVCPU User Manual page 133

Qnucpu series (communication via built-in ethernet port)
Hide thumbs Also See for Q03UDVCPU:
Table of Contents
● Effective use of devices
Devices can be effectively used by setting the receive data size to less than 1024 words while the default size of the
receive data storing devices for the SP.SOCRCV and S.SOCRCVS instructions is 1024 words.
● Prevention of receive data fragmentation
Data from the connected device may be fragmented depending on the line type. To prevent this, the receive data size can
be specified in the TCP fixed-length receive mode.
● Prevention of receive data binding
Separately sent data may be combined depending on the interfacing device due to a delay in receive processing of the
program.
To prevent this, the receive data size can be specified in the TCP fixed-length receive mode.
Remark
The set values will take effect at the following timing of the SP.SOCRMODE instruction execution.
• Before opening: Values take effect after opening a connection.
• When there are data in the Socket communication receive data area:
Values take effect after execution of the SP.SOCRCV or S.SOCRCVS instruction once after the S.SOCRMODE
instruction.
• When there is no data in the Socket communication receive data area:
Values take effect after the SP.SOCRMODE instruction is executed.
(4) Error
A detection of an operation error turns on the Error flag (SM0) and a corresponding error code is stored in SD0
when:
• The instruction is executed in the QnUDE(H)CPU with a serial number (first five digits) of "11011" or earlier
or a CPU module other than the Built-in Ethernet port QCPU.
• The connection number specified for
• The device number specified for
• Invalid device is specified.
Remark
Even when the Receive state signal is not on in the TCP fixed-length receive mode, the data received at the point can be
read out with the SP.SOCRDATA instruction. This allows you to check whether the data sent from the connected device is
adequate in size.
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
is other than 1 to 16.
S1
exceeds the device point range.
S2
7
(Error code: 4002)
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
131
Table of Contents
loading

Table of Contents