EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 1104

Mitsubishi Electric MELSEC iQ-R Series
2110 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
Loading...
1102
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.2 Socket Communications Instructions
Control data
Processing details
In UDP/IP communications, this instruction changes the communication target IP address and port number of the connection
specified by (s1).
Using the SP.SOCCSET instruction allows the user to change the communication destination without
closing the connection.
If the SP.SOCCSET instruction is executed while there is data in the receive data area, the instruction is
validated after the SP.SOCRCV or S.SOCRCVS dedicated instruction is executed. If the SP.SOCCSET
instruction is executed while there is no data in the receive data area, the instruction is validated soon after
it is executed.
Precautions
Do not use the SP.SOCCSET instruction to change the communication destination during execution of the SP.SOCSND
instruction.
Operation error
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)
Operand: (s2)
Device Item Description Setting range Set by
+0 System area 
+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
+3
IP address of external
device
Store the IP address of an external device. 00000001H to
FFFFFFFFH
(FFFFFFFFH:
simultaneous
broadcast)
User
+4 Destination port
number
Store the destination port number of an external device. 0001H to FFFFH
(FFFFH:
simultaneous
broadcast)
User
Error code
(SD0)
Description
3405H The connection number specified by (s1) is a value other than 1 to 16.

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals