Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1088

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B,
SB, FX, FY
(U)
(s1)
(s2)
(d)
■Control data
Operand: (s2)
Device
Item
+0
Execution/completion
type
+1
Completion status
+2
Application setting area
+3
Own station port
number.
+4
IP address of external
*1
+5
device
+6
Destination port
number
+7 to +9
*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.
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
1086
8.1 Open/Close Processing Instructions
Word
J\
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
Description
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.
The completion status is stored upon completion of the instruction.
• 0000H: Completed successfully
• Other than 0000H: Completed with an error (error code)
Specify the application of a connection.
...
b15 b14
b10 b9 b8
(s2)+2
(3)
0
(4)
(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.
Specify the port number of the own station.
Specify the IP address of an external device.
Specify the destination port number.
Reserved
Double word
Z
LT, LST,
LC
...
b0
(2)
(1)
0
Indirect
Constant
specification
LZ
K, H
Setting range
0000H
8000H
0001H to 1387H,
1392H to FFFEH
(0400H or later
recommended)
00000001H to
FFFFFFFFH
(FFFFFFFFH:
simultaneous
broadcast)
0001H to FFFFH
(FFFFH:
simultaneous
broadcast)
Others
(U)
E
$
Set by
User
System
User
User
User
User
System

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents