
Publication ENET-UM527E-EN-P - October 2006
8 Table of Contents
Appendix A
Use the Web Server Module To
Connect Over Ethernet
About This Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
CIP Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
CIP Connected Messaging Limits. . . . . . . . . . . . . . . . . . 122
CIP Unconnected Messaging Limits. . . . . . . . . . . . . . . . 122
TCP Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Additional Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Appendix B
Socket Interface
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
Kommentare zu diesen Handbüchern