Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1102

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

Advertisement

■Control data
Operand: (s2)
Device
Item
+0
System area
+1
Completion status
Operand: (d)
Device
Item
+0
IP address of external
+1
device
+2
Destination port
number
+3
Own station port
number.
+4
Connection use
application
Processing details
Reads the connection information of the connection specified by (s1).
Operation error
Error code
Description
(SD0)
3405H
The connection number specified by (s1) is a value other than 1 to 16.
When completed with an error, an error code is stored in the completion status (s2)+1.
For the error code stored in the completion status (s2)+1, refer to the following.
 MELSEC iQ-R Ethernet User's Manual (Application)
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
1100
8.2 Socket Communications Instructions
Description
The completion status is stored upon completion of the instruction.
• 0000H: Completed successfully
• Other than 0000H: Completed with an error (error code)
Description
Store the IP address of an external device.
Store the destination port number of an external device.
Store the own station port number.
Store the usage of a connection.
...
b15 b14
b9 b8
(d)+4
(3)
0
(2)
(1)
(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
...
b0
0
Setting range
Set by
System
Setting range
Set by
00000001H to
System
FFFFFFFFH
00000000H: No
communication
destination
(FFFFFFFFH:
simultaneous
broadcast)
0001H to FFFFH
System
(FFFFH:
Simultaneous
broadcast)
0001H to 1387H
System
1392H to FFFEH
System

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents