Mitsubishi MELSEC L Series User Manual page 61

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

Advertisement

(2) Control data
Device
Item
Execution/
+0
S2
completion 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.
Using port number 400
NUMBERS).
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
to
b10 b9 b8 b7
[3]
0
S2 +2
[1] Communication method (protocol)
0: TCP/IP
1: UDP/IP
[2] Socket communication procedure
1: Nonprocedural (fixed)
[3] 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
or higher is recommended because 1
H
CHAPTER 6 SOCKET COMMUNICATION FUNCTION
Setting range
+2
S2
+2 to
+9.
S2
S2
to
b0
[2] [1]
0
1392
(400
recommended.)
1
H
(FFFFFFFF
Simultaneous
1
Simultaneous
to 3FF
are generally reserved (WELL KNOWN PORT
H
H
*3
Set by
0000
H
User
8000
H
-
System
-
User
1
to 1387
H
H
to FFFE
H
H
or higher is
H
to FFFFFFFF
H
:
H
broadcast)
to FFFF
H
H
(FFFF
:
H
broadcast)
-
System
59
6

Advertisement

Table of Contents
loading

Table of Contents