14
NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
CONTENTS
8-3-4 Ethernet Link Object (Class ID: F6 Hex)...................................................................................8-34
8-3-5 Controller Object (Class ID: C4 Hex) ........................................................................................ 8-38
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 Reception Processing.........................................................................................................9-6
9-2-4 Broadcasting ...............................................................................................................................9-8
9-3 Overview of Built-in EtherNet/IP Port Socket Services........................................................ 9-9
9-3-1 Overview .....................................................................................................................................9-9
9-3-2 Procedure....................................................................................................................................9-9
9-4 Settings Required for the Socket Services ......................................................................... 9-10
9-4-1 Settings Required for the Socket Services................................................................................9-10
9-4-2 Making the Settings with the Sysmac Studio ............................................................................9-11
9-5 Socket Service Instructions..................................................................................................9-13
9-6 Details on Using the Socket Services.................................................................................. 9-14
9-6-1 Using the Socket Services ........................................................................................................9-14
9-6-2 Procedure to Use Socket Services ...........................................................................................9-15
9-6-3 Timing Chart for Output Variables Used in Communications....................................................9-16
9-6-4 UDP Sample Programming.......................................................................................................9-18
9-6-5 TCP Sample Programming .......................................................................................................9-23
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
Section 10 FTP Server
10-1 Overview and Specifications................................................................................................ 10-2
10-1-1 Overview ...................................................................................................................................10-2
10-1-2 Specifications............................................................................................................................10-2
10-2 FTP Server Function Details................................................................................................. 10-3
10-2-1 Supported Files.........................................................................................................................10-3
10-2-2 Connecting to the FTP Server ..................................................................................................10-3
10-3 Using the FTP Server Function ............................................................................................ 10-5
10-3-1 Procedure..................................................................................................................................10-5
10-3-2 List of Settings Required for the FTP Server Function..............................................................10-5
10-3-3 FTP Settings Display.................................................................................................................10-6
10-4 FTP Server Application Example ......................................................................................... 10-7
10-5 Using FTP Commands .......................................................................................................... 10-9
10-5-1 Table of Commands ..................................................................................................................10-9
10-5-2 Using the Commands..............................................................................................................10-10
10-6 Using SD Memory Card Operations................................................................................... 10-16
10-6-1 SD Memory Card Types..........................................................................................................10-16
10-6-2 File Types................................................................................................................................10-17
10-6-3 Initializing SD Memory Cards..................................................................................................10-17
10-6-4 Format of Variable Data ..........................................................................................................10-17
10-7 Application Example from a Host Computer .................................................................... 10-19