Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1093

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B,
SB, FX, FY
(U)
(s1)
(s2)
(d1)
(d2)
■Control data
Operand: (s2)
Device
Item
+0
System area
+1
Completion status
Operand: (d1)
Device
Item
+0
Receive data length
+1 to +
Receive data
*1 The received data is stored in units of bytes sequentially from lower bytes. When an odd number of bytes of data is received, the last
receive data is stored in the lower byte of the last data storage area.
• When the SP.SOCRCV instruction is executed, receive data is read from the socket communications
receive data area during END processing. For this reason, executing the SP.SOCRCV instruction prolongs
the scan time.
• When an odd number of bytes of data is received, invalid data is stored in the higher byte of the device
where the last receive data is stored.
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
Description
The completion status is stored upon completion of the instruction.
• 0000H: Completed successfully
• Other than 0000H: Completed with an error (error code)
Description
The length of the data read from the socket communications receive data area is
stored.
(Number of bytes)
The data read from the socket communications receive data area is stored
sequentially in ascending order of addresses.
Double word
Indirect
specification
Z
LT, LST,
LZ
LC
*1
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.2 Socket Communications Instructions
Constant
Others
(U)
K, H
E
$
Setting range
Set by
System
Setting range
Set by
0 to 10238
System
System
1091
8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents