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

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

Advertisement

7.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
Receive data size
+3
S2
*1
Invalid for connections in UDP communications.
*2
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
Command
Internal device
R, ZR
Bit
Word
Description
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 normally
H
status
Other than 0000
TCP receive mode is stored.
TCP receive
0: TCP standard receive mode
*1
mode
1: TCP fixed-length receive mode
Receive data size in the socket communication
is stored (in bytes).
+2. (This instruction is invalid for UDP connections.)
S2
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
SP.SOCRMODE
"U0"
J\
U\G
Bit
Word
Description
: Failed (Error code)
H
S2
S1
Constant
Zn
Others
K, H
*1
Data type
Set by
Character string
User
BIN 16-bit
User, system
Device name
*2
Setting range
Set by
System
0, 1
User
1 to 2046
. The
S1
111
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents