CONTENTS
xvi
Ethernet module User’s Manual
the PC Link Protocol Transmission . . . 63
5.1 Computer Link Protocol Transmission . . . . . . . . . . . . 64
5.2 Sample Computer Link Protocol Program . . . . . . . . . 65
5.3 PC Link Protocol Transmission (Data write) . . . . . . . . 72
5.4 PC Link Protocol Transmission (Data read) . . . . . . . . 76
5.5 Sample PC Link Protocol Transmission Program . . . . 79
6 Socket Interface Communication . . . . . 87
6.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
6.2 EN311 Socket Interface Usage Notes . . . . . . . . . . . . 91
6.2.1 Transmission/Reception Data Handling in UDP Sock-
et Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91
6.2.2 Data handling and data segmentation in TCP socket
interface transmission and reception . . . . . . . . . . .92
6.2.3 Socket port numbers . . . . . . . . . . . . . . . . . . . . . . .96
6.2.4 General precautions for UDP/TCP socket . . . . . . .96
6.2.5 UDP socket interface notes . . . . . . . . . . . . . . . . . .97
6.2.6 Considerations for TCP socket . . . . . . . . . . . . . . . .97
6.3 Socket Interface Information . . . . . . . . . . . . . . . . . . . 100
6.4 Using the EN311 Socket Interface . . . . . . . . . . . . . . 102
6.4.1 UDP open request (using the USEND_T
instruction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103
6.4.2 UDP send request/broadcast send request (using the
USEND_T instruction) . . . . . . . . . . . . . . . . . . . . .104
6.4.3 UDP receive request (using the URECV_T
instruction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106
6.4.4 UDP close request (using the USEND_T
instruction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
6.4.5 TCP open request (using the USEND_T
instruction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
6.4.6 TCP send request (using the USEND_T
instruction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
6.4.7 TCP receive request (using the URCV_T
instruction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
6.4.8 TCP close request (using the USEND_T
instruction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
6.5 Sample Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
6.5.1 UDP socket sample programs . . . . . . . . . . . . . . .119
6.5.2 TCP socket sample programs . . . . . . . . . . . . . . .138
Summary of Contents for V Series
Page 1: ...6F8C0904 Integrated Controller V Series Ethernet module EN311 User s Manual Sep 30 2004 ...
Page 12: ......
Page 16: ......
Page 34: ......
Page 40: ......
Page 106: ......
Page 180: ......
Page 199: ...6F8C0904 179 7 5 RAS Information Readout 7 Figure 7 1 Packet Format IP Datagram ...
Page 200: ...180 Ethernet module User s Manual Chapter 7 RAS Information 7 ...
Page 224: ......
Page 240: ......
Page 244: ......
Page 248: ......
Page 250: ......
Page 256: ......
Page 258: ......