60
1 FUNCTIONS
1.4 Socket Communications
Applicable dedicated instructions
The following table lists the dedicated instructions for exchanging data with socket communications.
For details on dedicated instructions, refer to the following.
MELSEC iQ-R Programming Manual (CPU Module Instructions, Standard Functions/Function Blocks
MELSEC iQ-R Programming Manual (Module Dedicated Instructions)
List of dedicated instructions
The following table lists the dedicated instructions used by each module.
■Instructions used by the RJ71EN71 and the RnENCPU (network part)
■Instructions used by the CPU module (CPU part for the RnENCPU)
If the instruction has a completion device, do not change the various data (such as control data and request
data) specified with the executed instruction until execution of the instruction is completed.
Applicable connections
The following connections can be used for data exchange with socket communications.
Instruction Description
GP.CONOPEN Establishes a connection.
GP.CONCLOSE Closes the connection.
GP.SOCRCV Reads the receive data from the external device.
G.SOCRCVS
GP.SOCSND Sends data to the external device.
Instruction Description
SP.SOCOPEN Establishes a connection.
SP.SOCCLOSE Closes the connection.
SP.SOCRCV Reads the receive data from the external device.
G.SOCRCVS
S.SOCRCVS
GP.SOCSND Sends data to the external device.
SP.SOCSND
SP.SOCCINF Reads connection information
SP.SOCCSET Changes the communication target
SP.SOCRMODE Changes the connection receive mode.
S(P).SOCRDATA Reads the specified size of data from the socket communications receive data area.
Module Usable connections
RJ71EN71 P1 connector Connection No.17 to 64
P2 connector Connection No.1 to 64
RnENCPU (network part) P1 connector Connection No.17 to 64
CPU module (built-in Ethernet port part) Connection No.1 to 16