Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1104

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
+2
IP address of external
+3
device
+4
Destination port
number
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
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
1102
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)
Store the IP address of an external device.
Store the destination port number of an external device.
Setting range
Set by
System
00000001H to
User
FFFFFFFFH
(FFFFFFFFH:
simultaneous
broadcast)
0001H to FFFFH
User
(FFFFH:
simultaneous
broadcast)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents