1104
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.2 Socket Communications Instructions
■
Control data
*1 This item is invalid for UDP communications connections.
Processing details
• This instruction changes the TCP receive mode and receive data size for the connection (other than a UDP
communications connection) specified by (s1).
• For TCP connections, the function enables the mode specified by (s2)+2.
■
TCP standard receive mode
Upon receipt of data, the instruction stores the data in the socket communications receive data area and turns on SD1506
(socket communications receive status signal).
If the received data exceeds the specified receive data size, the excess data becomes the next receive data.
If data is received later before data is read from the socket communications receive data area using the SP.SOCRCV or
S.SOCRCVS instruction, it is stored in the receive data area in the OS.
If the receive data area in the OS contains data when data is read from the socket communications receive data area using
the SP.SOCRCV or S.SOCRCVS instruction, the instruction stores the data in the socket communications receive data area
and turns on SD1506 (socket communications receive status signal).
Ex.
When 500 bytes of data is received while the receive data size is set to 300 bytes
Operand: (s2)
Device
Item
Description
Setting range
Set by
+0
System area
+1
Completion status
The completion status is stored upon completion of the instruction.
• 0000H: Completed successfully
• Other than 0000H: Completed with an error (error code)
System
+2
TCP receive mode
Store the TCP receive mode.
• 0: TCP standard receive mode
• 1: TCP fixed-length receive mode
0, 1
User
+3
Receive data size
Store the size of socket communications receive data (Number of bytes)
1 to 10238
User
OFF
ON
OFF
ON
OFF
Reading receive data
Storing data
(300 bytes)
Reading data
Storing data
(200 bytes)
Reading data
Socket communications
receive data storage area
Socket communications
reception status signal
(SD1506.n)
Receiving data
(500 bytes)
SP.SOCRCV or
S.SOCRCVS instruction
SP.SOCRCV or
S.SOCRCVS instruction
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......