Section 6 socket services – Omron CS CJ1W-ETN21 User Manual
Page 121
![background image](/manuals/203138/121/background.png)
97
SECTION 6
Socket Services
This section describes the functionality provided by the Ethernet Unit via the socket services.
Overview of Socket Communications from Ethernet Units . . . . . . . . . . . . . .
What are Sockets?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Socket Port Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Differences between TCP and UDP . . . . . . . . . . . . . . . . . . . . . . . . .
Opening TCP Sockets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fragmentation of Send Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Socket Service Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using Socket Services with Socket Service Request Switches . . . .
Using Socket Services with CMND(490). . . . . . . . . . . . . . . . . . . . .
Specific Socket Service Functions . . . . . . . . . . . . . . . . . . . . . . . . . .
Differences with Previous Models . . . . . . . . . . . . . . . . . . . . . . . . . .
Socket Service Function Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Manipulating Dedicated Control Bits . . . . . . . . . . . . . . . . . . . . . . . .
Executing CMND(490) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using Socket Service Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Settings Required for Socket Service Function . . . . . . . . . . . . . . . .
Setup Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CIO Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DM Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using Socket Services by Manipulating Dedicated Control Bits . . . . . . . . . .
Application Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Socket Services and Socket Status . . . . . . . . . . . . . . . . . . . . . . . . . .
Socket Service Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Socket Service Request Switches . . . . . . . . . . . . . . . . . . . . . . . . . . .
Response Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Timing Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TCP/IP Communications Programming Example . . . . . . . . . . . . . .
UDP/IP Communications Programming Example . . . . . . . . . . . . . .