EasyManua.ls Logo

Omron CS CJ1W-ETN21 - Section 6; Socket Services

Omron CS CJ1W-ETN21
242 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
97
SECTION 6
Socket Services
This section describes the functionality provided by the Ethernet Unit via the socket services.
6-1 Overview of Socket Communications from Ethernet Units . . . . . . . . . . . . . . 99
6-1-1 What are Sockets?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
6-1-2 Socket Port Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
6-2 Protocol Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
6-2-1 Differences between TCP and UDP . . . . . . . . . . . . . . . . . . . . . . . . . 100
6-2-2 Opening TCP Sockets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
6-2-3 Fragmentation of Send Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
6-3 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
6-3-1 Socket Service Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
6-3-2 Using Socket Services with Socket Service Request Switches . . . . 104
6-3-3 Using Socket Services with CMND(490). . . . . . . . . . . . . . . . . . . . . 105
6-3-4 Specific Socket Service Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6-3-5 Differences with Previous Models . . . . . . . . . . . . . . . . . . . . . . . . . . 106
6-4 Socket Service Function Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
6-4-1 Manipulating Dedicated Control Bits. . . . . . . . . . . . . . . . . . . . . . . . 106
6-4-2 Executing CMND(490) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
6-5 Using Socket Service Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6-5-1 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6-5-2 Settings Required for Socket Service Function . . . . . . . . . . . . . . . . 107
6-5-3 Setup Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
6-6 Socket Service Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
6-6-1 CIO Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
6-6-2 DM Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
6-7 Using Socket Services by Manipulating Dedicated Control Bits . . . . . . . . . . 112
6-7-1 Application Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
6-7-2 Socket Services and Socket Status . . . . . . . . . . . . . . . . . . . . . . . . . . 113
6-7-3 Socket Service Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
6-7-4 Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
6-7-5 Socket Service Request Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
6-7-6 Response Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
6-7-7 Timing Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
6-7-8 TCP/IP Communications Programming Example . . . . . . . . . . . . . . 127
6-7-9 UDP/IP Communications Programming Example . . . . . . . . . . . . . . 131

Table of Contents

Related product manuals