Changing The Target Of A Connection (Udp/Ip) (Sp.soccset) - 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.7

Changing the target of a connection (UDP/IP) (SP.SOCCSET)

SP.SOCCSET
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.SOCCSET instruction.
System: The CPU module stores the execution result of the SP.SOCCSET instruction.
(2) Control data
Device
+0
S2
+1
S2
+2
S2
+3
S2
+4
S2
*2
The "Set by" column indicates the following.
User: The data must be set before executing the SP.SOCCSET instruction.
System: The CPU module stores execution result of the SP.SOCCSET instruction.
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
Target device IP
IP address of the target device is specified.
address
Target device
Port number of the target device is specified.
port number
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
SP.SOCCSET
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
*2
Setting range
Set by
-
-
-
System
1
to FFFFFFFF
H
H
(FFFFFFFF
:
H
Simultaneous
broadcast)
User
1
to FFFF
H
H
(FFFF
:
H
Simultaneous
broadcast)
127
-
-
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents