EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #632 background imageLoading...
Page #632 background image
630
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.2 Socket Communications Function Instructions
â– Control data
*1 The contents in the "Set by" column mean as follows:
System: The CPU module stores the execution result of the SP.SOCCINF instruction.
*2 When the instruction is executed for a connection that is not open, 0H is returned.
*3 Of the host station port numbers, 0001H to 03FFH are generally reserved port numbers and F000H to FFFEH are used by other
communication functions. Thus, using 0400H to 15ACH and 15C2H to EFFFH as the port numbers is recommended. Do not specify
15ADH to 15C1H since they are used by the system.
Processing details
This instruction reads the connection information of the connection specified by (s1).
For details, refer to  Built-in Ethernet communication manual.
Operation error
Device Item Description Setting range Set by
*1
(s2)+0 System area 
(s2)+1 Completion status The status at the completion of the instruction is stored.
0000H: Completed successfully
Other than 0000H: Completed with an error (error code)
For error codes, refer to  Built-in Ethernet communication manual.
 System
(d)+0
(d)+1
Target device IP address The IP address of the target device is stored. 00000001H to DFFFFFFEH
*2
System
(d)+2 Target device port
number
The port number of the target device is stored. 0001H to FFFEH
*2
(d)+3 Host station port number The host station port number is stored. 0001H to 15ACH,
15C2H to FFFEH
*2*3
(d)+4 Application setting area
[1] Communication method (protocol)
0: TCP/IP
1: UDP/IP
[2] Procedure of the socket communication function
1: Non-protocol method
[3] Open method
00: Active open or UDP/IP
10: Unpassive open
11: Fullpassive open
As shown on the left
*2
Error code
(SD0/SD8067)
Description
3405 The connection number specified by (s1) is other than 1 to 8.
2820 The device number specified by (s2) or (d) is outside the range of the number of device points.
2822 Device that cannot be specified is specified.
[3](d)+4
b15b14b13 b10
b9 b8 b7 b0
to
to
00[2][1]

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals