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

Qnucpu series (communication via built-in ethernet port)
Hide thumbs Also See for Q03UDVCPU:
Table of Contents

Advertisement

7.4.8

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

SP.SOCRMODE
Internal device
Setting
data
Bit
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
*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.
*4
1 to 2046 for the QnUDE(H)CPU with a serial number (first five digits) of "12051" or earlier
Command
R, ZR
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
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
is stored (in bytes).
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
SP.SOCRMODE
U0
J\
U\G
Bit
Word
-
-
Description
-
: Failed (Error code)
H
S1
S2
Constant
Zn
Others
K, H
-
*1
Data type
Set by
-
Character string
User
BIN 16-bit
User, System
Device name
*3
Setting range
Set by
-
-
-
System
0 or 1
User
*4
1 to 10238
129
-
-
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents