Mitsubishi Electric Q03UDVCPU User Manual page 109

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

Advertisement

(2) Control data
Device
Item
Execution/compl
+0
S2
etion type
Completion
+1
S2
status
Application
+2
S2
setting area
Host station port
+3
S2
number
Target device IP
+4
S2
address
+5
S2
Target device
+6
S2
port number
+7
S2
to
+9
S2
*3
The "Set by" column indicates the following.
User: The data must be set before executing the SP.SOCOPEN instruction.
System: The CPU module stores the execution result of the SP.SOCOPEN instruction.
*4
For the Unpassive open, the IP address and port number of the target device are ignored.
*5
Using 0400
to 1387
H
are assigned for generally reserved port numbers (WELL KNOWN PORT NUMBERS), and F000
for other communication functions. Do not specify 1388
Page 200, Appendix 2)
Description
Specify which settings are used to open a
connection, parameter settings configured by a
programming tool or control data settings
to
+9.
S2
0000
:
H
Connection is opened according to the settings
set in "Open settings" of PLC parameter.
8000
:
H
Connection is opened according to the values
specified for control data
Completion status is stored
0000
: Completed
H
Other than 0000
: Failed (Error code)
H
b15 b14 b13
b10 b9 b8 b7
to
[4]
0
[3]
S2 +2
[1] Communication method (protocol)
0: TCP/IP
1: UDP/IP
[2] Socket communication and predefined
protocol procedure
1: Nonprocedural (fixed)
[3] Predefined protocol setting
0: Predefined protocol function is not used.
(Socket communication function is used.)
1: Predefined protocol function is used.
[4] Open system
00: Active open or UDP/IP
10: Unpassive open
11: Fullpassive open
Specify the port number of the host station.
Specify the IP address of the target device.
*4
Specify the port number of the target device.
*4
-
Use prohibited
and 1392
to EFFF
is recommended because the host station port numbers, 0001
H
H
H
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
Setting range
+2
S2
+2 to
+9.
S2
S2
b0
to
[2] [1]
0
As described in
the left column
1
1392
1
H
(FFFFFFFF
Simultaneous
1
Simultaneous
to 1391
because these ports are used by the system. (
H
H
*3
Set by
0000
H
User
8000
H
-
System
User
to 1387
H
H
to FFFE
H
H
to FFFFFFFF
H
:
H
broadcast)
to FFFF
H
H
(FFFF
:
H
broadcast)
-
System
to 03FF
H
H
to FFFE
are used
H
H
107
7
,

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents