Mitsubishi MELSEC L Series User Manual page 49

Cpu module, built-in ethernet function
Hide thumbs Also See for MELSEC L Series:
Table of Contents

Advertisement

(c) Sample program
<<Fixed length mode setting>>
<<Target checking>>
<<Data sending>>
<<Data receiving>>
*1
There are two kinds of TCP receive modes: TCP standard receive mode and TCP fixed-length receive mode.For fixing
the data size, run the program enclosed by a dotted line.
(It can be omitted when the data size is not fixed.)
For the TCP receive mode, refer to the section for the SP.SOCRMODE instruction. (
*2
For acquiring information of the device connected on TCP, run the program enclosed by a dotted line.
(It can be omitted when the information acquisition is not needed.)
CHAPTER 6 SOCKET COMMUNICATION FUNCTION
1
*
Setting TCP receive mode to 1
Setting receive data size to 6
Changing TCP receive mode of
Connection 1
2
*
Obtaining information of connected
device
Setting send data length
Setting send data
Sending data to Connection No.1
Normal completion
Error completion
Receiving data
Normal completion
Error completion
Page 80, Section 6.4.8)
6
47

Advertisement

Table of Contents
loading

Table of Contents