Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual
Page 8

Publication ENET-UM527E-EN-P - October 2006
8 Table of Contents
Use the Web Server Module To
Connect Over Ethernet
About This Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Socket Interface Architecture . . . . . . . . . . . . . . . . . . . . . . . 126
Number and Type of Sockets . . . . . . . . . . . . . . . . . . . . 126
Typical Sequence of Transactions For a TCP Client . . . . 128
Typical Sequence of Transactions For a TCP Server . . . . 129
Typical Sequence of Transactions For UDP Without
OpenConnection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Typical Sequence of Transactions For UDP With
OpenConnection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Communicate With the Socket Object Via a MSG Instruction 132
Message Transfer Sizes . . . . . . . . . . . . . . . . . . . . . . . . . 133
Service Timeouts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
MSG Instruction Timeouts . . . . . . . . . . . . . . . . . . . . . . . . . 134
Socket Instance Timeouts . . . . . . . . . . . . . . . . . . . . . . . . . 134
Programming Considerations . . . . . . . . . . . . . . . . . . . . . . . 135
TCP Connection Loss . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Web Server Module Reset. . . . . . . . . . . . . . . . . . . . . . . 135
Change Controller Mode Between Run and Program . . . 136
Application Messages and TCP . . . . . . . . . . . . . . . . . . . 137
Partial Reads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Partial Writes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Socket Object Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
CreateSocket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . 141
OpenConnection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . 143
AcceptConnection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . 146
Read. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . 148
Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . 151
DeleteSocket. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
MSG Configuration Parameters . . . . . . . . . . . . . . . . . . . 153
DeleteAllSockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154