9
Socket Service
9-1 Basic Knowledge on Socket Communications ........................................... 9-2
9-1-1
Sockets ........................................................................................................... 9-2
9-1-2 Port Numbers for Socket Services.................................................................. 9-2
9-2 Basic Knowledge on Protocols .................................................................... 9-3
9-2-1 Differences between TCP and UDP ............................................................... 9-3
9-2-2 Fragmenting of Send Data.............................................................................. 9-4
9-2-3 Data Receive Processing ............................................................................... 9-6
9-2-4 Broadcasting................................................................................................... 9-9
9-3 Overview of Built-in EtherNet/IP Port Socket Services ............................ 9-10
9-3-1 Overview....................................................................................................... 9-10
9-3-2 Procedure ..................................................................................................... 9-10
9-4 Settings Required for the Socket Services................................................ 9-11
9-5 Socket Service Instructions ........................................................................ 9-12
9-6 Details on Using the Socket Services ........................................................ 9-13
9-6-1 Using the Socket Services............................................................................ 9-13
9-6-2 Procedure to Use Socket Services ............................................................... 9-13
9-6-3 Timing Chart for Output Variables Used in Communications........................ 9-15
9-6-4 UDP Sample Programming .......................................................................... 9-16
9-6-5 TCP Sample Programming........................................................................... 9-22
9-7 Precautions in Using Socket Services....................................................... 9-29
9-7-1 Precautions for UDP and TCP Socket Services ........................................... 9-29
9-7-2 Precautions for UDP Socket Services .......................................................... 9-29
9-7-3 Precautions for TCP Socket Services........................................................... 9-29
9-8 TCP/UDP Message Service ......................................................................... 9-31
9-8-1 Outline of TCP/UDP Message Service ......................................................... 9-31
9-8-2 Specifications of TCP/UDP Message Service .............................................. 9-31
9-8-3 Settings Required for TCP/UDP Message Service....................................... 9-31
9-8-4 Command Format Specifications.................................................................. 9-31
9-1
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
9