1086
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.1 Open/Close Processing Instructions
■
Applicable devices
■
Control data
*1 In Unpassive open mode, the IP address of the external device and destination port number are ignored.
Port numbers 0001H to 03FFH are generally reserved port numbers (WELL KNOWN PORT NUMBERS), and
therefore port numbers 0400H or later should be used.
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
(U)
X, Y, M, L,
SM, F, B,
SB, FX, FY
J
\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U
\G
, J
\
,
U3E
\(H)G
Z
LT, LST,
LC
LZ
K, H
E
$
(U)
(s1)
(s2)
(d)
Operand: (s2)
Device
Item
Description
Setting range
Set by
+0
Execution/completion
type
Specify whether to use the parameter value set by the engineering tool or the value
set in (s2)+2 to (s2)+9 of control data for opening a connection.
• 0000H: Performs open processing according to the "open setting" by the
engineering tool.
• 8000H: Performs open processing according to the setting in (s2)+2 to (s2)+9 of
control data.
0000H
8000H
User
+1
Completion status
The completion status is stored upon completion of the instruction.
• 0000H: Completed successfully
• Other than 0000H: Completed with an error (error code)
System
+2
Application setting area
Specify the application of a connection.
(1) Communication method (protocol) (b8)
• 0: TCP/IP
• 1: UDP/IP
(2) Socket communications function procedure (b9)
• 1: No procedure (fixed)
(3) Open method (b15, b14)
• 00: Active open or UDP/IP
• 10: Unpassive open
• 11: Fullpassive open
(4) Predefined protocol setting (b10)
• 0: Do not use the predefined protocol support function. (Use the socket
communications function.)
• 1: Use the predefined protocol support function.
User
+3
Own station port
number.
Specify the port number of the own station.
0001H to 1387H,
1392H to FFFEH
(0400H or later
recommended)
User
+4
+5
IP address of external
device
Specify the IP address of an external device.
00000001H to
FFFFFFFFH
(FFFFFFFFH:
simultaneous
broadcast)
User
+6
Destination port
number
Specify the destination port number.
0001H to FFFFH
(FFFFH:
simultaneous
broadcast)
User
+7 to +9
Reserved
System
b15 b14
b10 b9 b8
0
(1)
(2)
(4)
0
b0
…
…
(3)
(s2)+2
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......