8-2-4 Route Path ..................................................................................................................................8-6
8-2-5 Request Path (IOI) ....................................................................................................................8-16
8-2-6 Service Data and Response Data.............................................................................................8-20
8-2-7 Sample Programming for CIP Connectionless (UCMM) Message Communications................8-22
8-2-8 Sample Programming for CIP Connection (Class 3) Message Communications .....................8-27
8-2-9 Operation Timing.......................................................................................................................8-34
8-2-10 Response Codes.......................................................................................................................8-35
8-3 CIP Communication Server Function ................................................................................8-39
8-3-1 CIP Message Structure for Accessing CIP Objects ..................................................................8-39
8-3-2 CIP Message Structure for Accessing Variables.......................................................................8-40
8-4 Specifying Request Path.....................................................................................................8-41
8-4-1 Examples of CIP Object Specifications.....................................................................................8-41
8-4-2 Examples of Variable Specifications .........................................................................................8-42
8-4-3 Logical Segment .......................................................................................................................8-42
8-4-4 Data Segment ...........................................................................................................................8-42
8-4-5 Specifying Variable Names in Request Paths ...........................................................................8-43
8-5 CIP Object Services .............................................................................................................8-47
8-5-1 CIP Objects Sent to the Built-in EtherNet/IP Port .....................................................................8-47
8-5-2 Identity Object (Class ID: 01 hex) .............................................................................................8-47
8-5-3 NX Configuration Object (Class ID: 74 hex)..............................................................................8-50
8-5-4 TCP/IP Interface Object (Class ID: F5 hex) ..............................................................................8-72
8-5-5 Ethernet Link Object (Class ID: F6 hex)....................................................................................8-75
8-5-6 Controller Object (Class ID: C4 hex).........................................................................................8-81
8-6 Read and Write Services for Variables ..............................................................................8-83
8-6-1 Read Service for Variables........................................................................................................8-83
8-6-2 Write Service for Variables ........................................................................................................8-84
8-7 Variable Data Types .............................................................................................................8-87
8-7-1 Data Type Codes ......................................................................................................................8-87
8-7-2 Common Format .......................................................................................................................8-87
8-7-3 Elementary Data Types .............................................................................................................8-88
8-7-4 Derived Data Types...................................................................................................................8-89
Section 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
CONTENTS
11
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)