95
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
7
7.1 C
ommunication Usin
g TCP
(c) Sample program
*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.)
<<Fixed length mode setting>>
*
1
*
2
Setting TCP receive mode to 1
Setting receive data size to 6
Changing TCP receive mode of
Connection 1
Obtaining information of connected
device
Setting send data length
Setting send data
Sending data to Connection No.1
Normal completion
Error completion
Normal completion
Error completion
Receiving data
<<Target checking>>
<<Data sending>>
<<Data receiving>>
Summary of Contents for melsec q03ud(E)cpu
Page 2: ......
Page 11: ...9 Memo ...
Page 209: ...207 APPENDICES A Appendix 4 Specifications Comparison with Ethernet Module Memo ...
Page 213: ...211 Memo ...
Page 219: ......