118
2 CPU MODULE INSTRUCTIONS
2.4 Built-in Ethernet Function Instructions
2.4 Built-in Ethernet Function Instructions
Open/close processing instructions
■Opening a connection
■Closing a connection
Socket communications instructions
■Reading receive data during the END processing
■Reading receive data when the instruction is executed
■Sending data
■Reading connection information
■Changing the communication target (UDP/IP)
■Changing the receive mode
■Reading socket communications receive data
Instruction symbol Processing details Reference
SP.SOCOPEN Opens the connection specified by (s1). Page 1085
SP.SOCOPEN
Instruction symbol Processing details Reference
SP.SOCCLOSE Closes the connection specified by (s1). (Closing a connection) Page 1088
SP.SOCCLOSE
Instruction symbol Processing details Reference
SP.SOCRCV Reads the receive data of the connection specified by (s1) during END processing from the socket
communication receive data area.
Page 1090
SP.SOCRCV
Instruction symbol Processing details Reference
S.SOCRCVS Reads the receive data of the connection specified by (s) during instruction execution from the
socket communication receive data area.
Page 1093
S.SOCRCVS
Instruction symbol Processing details Reference
SP.SOCSND Sends the data in the device specified by (s3) to the external device of the connection specified by
(s1).
Page 1096
SP.SOCSND
Instruction symbol Processing details Reference
SP.SOCCINF Reads the connection information of the connection specified by (s1). Page 1099
SP.SOCCINF
Instruction symbol Processing details Reference
SP.SOCCSET Changes the communication target IP address and port number of the connection specified by
(s1).
(UDP/IP communications only)
Page 1101
SP.SOCCSET
Instruction symbol Processing details Reference
SP.SOCRMODE Changes the TCP receive mode and receive data size for the connection specified by (s1). Page 1103
SP.SOCRMODE
Instruction symbol Processing details Reference
S.SOCRDATA Reads data by the number of words specified by (n) from the socket communication receive data
area of the connection specified by (s1), and stores them in the device specified by (d) and later.
Page 1107
S(P).SOCRDATA
SP.SOCRDATA