Changing The Receive Mode Of A Connection (Sp.socrmode) - Mitsubishi MELSEC L Series User Manual

Cpu module, built-in ethernet function
Hide thumbs Also See for MELSEC L Series:
Table of Contents

Advertisement

6.4.8

Changing the receive mode of a connection (SP.SOCRMODE)

SP.SOCRMODE
Setting
data
S1
S2
(1) Setting data
Setting data
U0
S1
S2
*1
The "Set by" column indicates the following.
User: The data must be set before executing the SP.SOCRMODE instruction.
System: The CPU module stores the execution result of the SP.SOCRMODE instruction.
(2) Control data
Device
+0
S2
+1
S2
+2
S2
+3
S2
*2
Invalid for connections in UDP communications.
*3
The "Set by" column indicates the following.
User: The data must be set before executing the SP.SOCRMODE instruction.
System: The CPU module stores the execution result of the SP.SOCRMODE instruction.
(3) Function
This instruction changes the TCP receive mode and receive data size of the connection specified in
mode is changed as specified in
80
Command
Internal device
R, ZR
Bit
Word
-
-
Dummy
Connection number (Setting range: 1 to 16)
Start number of the device from which control data are stored
Item
System area
Completion status is stored.
Completion
0000
: Completed
H
status
Other than 0000
TCP receive mode is stored.
TCP receive
0: TCP standard receive mode
*2
mode
1: TCP fixed-length receive mode
Receive data size in the socket communication
Receive data size
is stored (in bytes).
+2. (This instruction is invalid for UDP connections.)
S2
SP.SOCRMODE
J \
Bit
Word
-
-
Description
Description
-
: Failed (Error code)
H
U0
S1
S2
Constant
U \G
Zn
*1
Set by
-
User
User, System
Setting range
-
-
0 or 1
1 to 2046
Others
K, H
-
-
-
Data type
Character string
BIN 16-bit
Device name
*3
Set by
-
System
User
. The
S1

Advertisement

Table of Contents
loading

Table of Contents