No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice. Every precaution has been taken in the preparation of this manual. Neverthe- less, OMRON assumes no responsibility for errors or omissions.
This manual covers the following products. • NY-series IPC Machine Controller Industrial Panel PC • NY532-15 • NY532-14 • NY532-13 • NY532-5400 • NY-series IPC Machine Controller Industrial Box PC • NY512-15 • NY512-14 • NY512-13 Part of the specifications and restrictions for the Industrial PC are given in other manuals. Refer to Rel- evant Manuals on page 2 and Related Manuals on page 21.
Relevant Manuals Relevant Manuals The following table provides the relevant manuals for the NY-series Controller. Read all of the manuals that are relevant to your system configuration and application before you use the NY-series Controller. Most operations are performed from the Sysmac Studio Automation Software. Refer to the Sysmac Stu- dio Version 1 Operation Manual (Cat.
Manual Structure Manual Structure Some of the descriptions of functions in this manual are common to NJ/NX-series. Therefore, note the following conditions. • The same function names are used for the common functions of the NJ/NX/NY-series. If the term “CPU Unit” is included in the function names, such as the CPU Unit names, CPU Unit write protection and other functions, it indicates the “Controller”...
Page 6
Manual Structure Special Information Special information in this manual is classified as follows: Precautions for Safe Use Precautions on what to do and what not to do to ensure safe usage of the product. Precautions for Correct Use Precautions on what to do and what not to do to ensure proper operation and performance. Additional Information Additional information to read as required.
Sections in this Manual Sections in this Manual FTP Server Introduction Installing Ethernet FTP Client Networks System-defined Variables Related to the Built-in Eth- SNMP Agent erNet/IP Port Communications Per- Determining formance and Commu- IP Addresses nications Load Sysmac Studio Settings Checking Communications for the Built-in Ether- Status of Network and...
CONTENTS CONTENTS Introduction ....................... 1 Relevant Manuals ...................... 2 Manual Structure ....................... 3 Sections in this Manual .................... 5 Terms and Conditions Agreement................. 12 Safety Precautions ....................14 Precautions for Safe Use..................15 Precautions for Correct Use................... 16 Regulations and Standards ..................17 Versions ........................
Page 9
CONTENTS 2-1-3 Ethernet Switch Functions ......................2-3 2-1-4 Precautions for Ethernet Switch Selection.................. 2-4 Network Installation......................... 2-6 2-2-1 Basic Installation Precautions..................... 2-6 2-2-2 Recommended Network Devices ....................2-6 2-2-3 Precautions When Laying Twisted-pair Cable ................2-6 2-2-4 Precautions When Installing and Connecting Ethernet Switches ..........2-9 Connecting to the Network ....................
Page 10
CONTENTS Section 7 Tag Data Link Functions Introduction to Tag Data Links ....................7-2 7-1-1 Tag Data Links ..........................7-2 7-1-2 Data Link Data Areas ........................7-3 7-1-3 Tag Data Link Functions and Specifications................7-6 7-1-4 Overview of Operation ........................ 7-7 7-1-5 Starting and Stopping Tag Data Links ..................
Page 11
CONTENTS CIP Object Services....................... 8-40 8-5-1 CIP Objects Sent to the Built-in EtherNet/IP Port ..............8-40 8-5-2 Identity Object (Class ID: 01 Hex) .................... 8-40 8-5-3 TCP/IP Interface Object (Class ID: F5 hex)................8-44 8-5-4 Ethernet Link Object (Class ID: F6 Hex)................... 8-47 8-5-5 Controller Object (Class ID: C4 Hex)..................
Page 12
CONTENTS 10-5-2 Using the Commands......................10-11 10-6 Using SD Memory Card Operations................... 10-16 10-6-1 File Types..........................10-16 10-6-2 Format of Variable Data ......................10-17 10-7 Application Example from a Host Computer ..............10-18 Section 11 FTP Client 11-1 Using the FTP Client to Transfer Files................. 11-2 11-1-1 Transferring Files ........................
Page 13
CONTENTS 14-1-1 Starting the Device Monitoring....................14-2 14-1-2 Status Displays of the Device Monitoring ................. 14-2 14-2 Connection Status Codes and Troubleshooting ..............14-9 Appendices A-1 Functional Comparison of the EtherNet/IP Port with Other Series........A-2 A-2 Use the Sysmac Studio to Set the Tag Data Links (EtherNet/IP Connections)....A-3 A-2-1 Overview of the Tag Data Links (EtherNet/IP Connections) Settings with the Sysmac Studio...
Omron’s exclusive warranty is that the Products will be free from defects in materials and workman- ship for a period of twelve months from the date of sale by Omron (or such other period expressed in writing by Omron). Omron disclaims all other warranties, express or implied.
Page 15
Disclaimers Performance Data Data presented in Omron Company websites, catalogs and other materials is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of Omron’s test conditions, and the user must correlate it to actual application requirements. Actual perfor- mance is subject to the Omron’s Warranty and Limitations of Liability.
Precautions for Safe Use Precautions for Safe Use Refer to the following manuals for precautions for safe use. • NY-series Industrial Panel PC Hardware User’s Manual (Cat. No. W557) • NY-series Industrial Box PC Hardware User’s Manual (Cat. No. W556) •...
Precautions for Correct Use Precautions for Correct Use Refer to the following manuals for precautions for correct use. • NY-series Industrial Panel PC Hardware User’s Manual (Cat. No. W557) • NY-series Industrial Box PC Hardware User’s Manual (Cat. No. W556) •...
Concepts EMC Directive OMRON devices that comply with EU Directives also conform to the related EMC standards so that they can be more easily built into other devices or the overall machine. The actual products have been checked for conformity to EMC standards.* Whether the products conform to the standards in the system used by the customer, however, must be checked by the customer.
Versions Versions Hardware revisions and unit versions are used to manage the hardware and software in NY-series Con- trollers and EtherCAT slaves. The hardware revision or unit version is updated each time there is a change in hardware or software specifications. Even when two Units or EtherCAT slaves have the same model number, they will have functional or performance differences if they have different hard- ware revisions or unit versions.
Page 21
Versions Changing Information Displayed in Production Information Dialog Box Click the Show Detail or Show Outline Button at the lower right of the Production Information Dialog Box. The view will change between the production information details and outline. Outline View Detail View The information that is displayed is different for the Outline View and Detail View.
Page 22
Versions Unit Versions of Controllers and Peripheral Tool Versions When you set tag data links for the built-in EtherNet/IP port on NY-series Controller, use the versions of the Network Configurator and the Sysmac Studio that are given in the following table. Network Configurator CPU Unit Sysmac Studio...
Related Manuals Related Manuals The followings are the manuals related to this manual. Use these manuals for reference. Manual name Cat. No. Model numbers Application Description NY-series NY532- Learning the basic An introduction to the entire NY-series system W557 IPC Machine Controller specifications of the is provided along with the following informa- Industrial Panel PC...
Page 24
NJ501-5300 Performing numeri- Describes the functionality to perform the Controller User’s Manual cal control with numerical control. Use this manual together NY532-5400 NJ/NY-series Control- with the NJ/NY-series G code Instructions lers. Reference Manual (Cat. No. O031) when pro- gramming. NJ/NY-series...
Revision History Revision History A manual revision code appears as a suffix to the catalog number on the front and back covers of the manual. W563-E1-03 Cat. No. Revision code Revision code Date Revised content September 2016 Original production April 2017 •...
Page 26
Revision History NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
1 Introduction Introduction 1-1-1 EtherNet/IP Features EtherNet/IP is an industrial multi-vendor network that uses Ethernet. The EtherNet/IP specifications are open standards managed by the ODVA (Open DeviceNet Vendor Association), just like DeviceNet. Eth- erNet/IP is not just a network between Controllers. It is also used as a field network. Because Ether- Net/IP uses standard Ethernet technology, various general-purpose Ethernet devices can be used in the network.
1 Introduction 1-1-2 Features of Built-in EtherNet/IP Port on NY-series Industrial PCs Tag Data Links Cyclic communications between Controllers or between Controllers and other devices are possible on an EtherNet/IP network. Tag data links can quickly perform data exchanges. ...
Page 30
1 Introduction Complete Troubleshooting Functions A variety of functions are provided to quickly identify and handle errors. • Self-diagnosis at startup • Event log that records the time of occurrence and other error details Transfer of IP Packets to Devices on Other Network Segments The built-in EtherNet/IP ports have an IP routing function that sends IP packets to devices on other IP network segments.
1 Introduction 1-2-2 Support Software Required to Construct a Network This section describes the Support Software that is required to construct an EtherNet/IP network. The built-in EtherNet/IP port has Ethernet Settings and Tag Data Link Settings, which are stored in the non- volatile memory of the Controller.
1 Introduction Built-in EtherNet/IP Port 1-3-1 Specifications Specifications Item NY52- Unit version 1.12 or later Communications protocol TCP/IP or UDP/IP Sysmac Studio connection, tag data link, CIP message communi- Supported services cations, socket services, FTP server, FTP client, SNMP agent, DNS client, and BOOTP client Number of ports 1 (With IP routing function)
Page 34
1 Introduction Specifications Item NY52- Unit version 1.12 or later Number of tags per 8 (7 tags when the tag set contains the Controller status) connection (= 1 tag set) Maximum link data 184,832 bytes size per node 1,444 bytes Maximum data size Data concurrency is maintained within each connection.
Page 35
1 Introduction *6 The built-in EtherNet/IP port uses the TCP/UDP port numbers shown in the following table. Do not set the same port number for more than one TCP/UDP service. Service Protocol Port number Remarks EIP data links 2222 Fixed values Used by system 2223, 2224 9610...
1 Introduction 1-3-2 Part Names and Functions Parts and Names Built-in EtherNet/IP port MAC Address Notation A specific MAC address is allocated to each device connected to the Ethernet network. A MAC address of the built-in EtherNet/IP port is given in 6-digit hexadecimal on the ID information indication on the back side of the product as shown below.
Page 37
1 Introduction Indicators (LEDs) The following provides information on indicators associated with the built-in EtherNet/IP port on NY- series Controllers. LINK/ACT/10/100/1000 LINK/ACT 10/100/1000 • LINK/ACT indicator: This shows the Ethernet communications status. • 10/100/1000 indicator: This shows the baud rate status. Indicator Color Status...
1 Introduction Introduction to Communications Services 1-4-1 IP Communications with Windows In an Industrial PC, both the Controller and Windows have an internal port, by which they can perform IP communications to exchange data in IP packets over the internal communications network. Refer to the NY-series Industrial Panel PC / Industrial Box PC Setup User’s Manual (Cat.
Page 39
In the case of relay hops, the timeout for the relay route must be added to the timeout for the request. OMRON products that support CIP subtract 5 seconds per hop. 1-13 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
1 Introduction 1-4-3 IP Routing The two built-in EtherNet/IP ports on the NY-series Controller both have the IP routing function. The IP routing function sends IP packets to other network segments based on the routing information set in the IP router table. To communicate with devices on other network segments, you must set the IP router table and default gateway settings for the NY-series Controller and each device on the network appropriately for your network configuration.
Page 41
1 Introduction IP Forward Function This function transfers IP packets received from a network to another network. It allows the Controller in an NY-series Industrial PC to relay IP packets between the internal com- munications network and machine networks. IP packets are transferred between the internal ports and the built-in EtherNet/IP port on the Controller to be relayed to a different network.
Page 42
1 Introduction Packet Filter Function This function checks IP packets received from a network to determine whether they should be either received or relayed to another network. It allows the Controller in an NY-series Industrial PC to limit the access to any machine network in which a Controller exists via the internal port, based on a condition predefined by the user.
1 Introduction 1-4-4 BOOTP Client You set the built-in EtherNet/IP port in the BOOTP settings to use the BOOTP client to obtain settings, such as the built-in EtherNet/IP port IP address. BOOTP server BOOTP command Ethernet Built-in Built-in IP address EtherNet/IP port EtherNet/IP port BOOTP client...
1 Introduction 1-4-6 FTP Client The built-in EtherNet/IP port contains an FTP client. With it, you can use FTP client communications instructions to transfer files between the Controller and computers on Ethernet. This makes it possible to exchange data files between a computer and the Controller with the Controller as the FTP client and the computer as the FTP server.
1 Introduction 1-4-7 Socket Service You can send data to and receive data from any node on Ethernet with the UDP or TCP protocol. To send/receive data with a socket service, you execute multiple socket communications instructions in sequence in an ST program to execute the required communications processes. After a connection with the other communications device is opened with an open instruction, the values of the variables that are specified for the send instruction are sent and the data that was received for a receive instruc- tion is stored in the specified variables.
1 Introduction 1-4-9 SNMP Agent The SNMP agent has the following functions. SNMP Agent The SNMP agent passes internal status information from the built-in EtherNet/IP port to network man- agement software that uses an SNMP manager. Monitoring Ethernet/IP Devices SNMP manager Built-in EtherNet/IP port Ethernet...
1 Introduction EtherNet/IP Communications Procedures Basic Operation Section 2 Installing Ethernet Wire the Ethernet network with twisted-pair cable. Networks ↓ Section 4 Determining IP Set the built-in EtherNet/IP port IP address with the Sysmac Studio. Addresses 1. Use the Sysmac Studio to create a new project. 2.
Page 48
1 Introduction ↓ 1-3-2 Part Names and Func- Check operation. tions • Check the built-in EtherNet/IP port indicators. Section 14 Checking Com- • Use the Sysmac Studio to check the communications status with the All Tag munications Status of Net- Data Link Communications Status system-defined variable.
Page 49
1 Introduction Using the FTP Client Section 11 FTP Client Execute the FTP client communications instructions in the user pro- gram. ↓ Check operation. • Use the Sysmac Studio to check the communications status with the end codes of the instruction (Done, Error, and ErrorID). Precautions for Correct Use Precautions for Correct Use To use the FTP client, you need to make the Virtual SD Memory Card settings in advance.
Page 50
1 Introduction 1-24 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
The following table shows the devices recommended for use with the EtherNet/IP. Ethernet Switches Manufacturer Model Description OMRON W4S1-03B • Packet priority control (QoS): EtherNet/IP control data priority • Failure detection: Broadcast storm, LSI error detection W4S1-05B • 10/100Base-TX W4S1-05C •...
Ethernet switch as IGMP snooping or GMRP. “Specific nodes” are nodes equipped with an IGMP client that have made transfer requests to the Ethernet switch. (OMRON built-in EtherNet/IP ports are equipped with an IGMP client.) When the Ethernet switch does not use multicast filtering, multicast packets are sent to all nodes, just like broadcast packets, which increases the traffic in the network.
2 Installing Ethernet Networks 2-1-4 Precautions for Ethernet Switch Selection The functions supported by the Ethernet switch may affect tag data link transmission delays and the settings in the Controller configurations and setup. In addition, if the Ethernet switch supports advanced functions, special settings are required for those functions.
Page 55
2 Installing Ethernet Networks Selecting the Ethernet Switch Based on the Ethernet Switch’s Supported Functions L2 Ethernet Switch without Multicast Filtering We recommend this kind of Ethernet switch when only tag data links are executed and any of the following conditions is met.
2 Installing Ethernet Networks Network Installation 2-2-1 Basic Installation Precautions • Take the greatest care when you install the Ethernet System. Be sure to follow ISO 8802-3 specifica- tions. Be sure you understand them before attempting to install an Ethernet System. •...
Page 57
2 Installing Ethernet Networks Ethernet switches Connect shield to connector hood Connector terminal NY-series Industrial PC Built-in EtherNet/IP port Connector (Shield) terminal b) Connecting the shields on the Ethernet switch side only Connect only the shield at the end of the cable on the Ethernet switch side to the connector hood.A clamp core must be attached at the end of the cable on the EtherNet/IP port side.
Page 58
2 Installing Ethernet Networks Between two Ethernet switches Regardless of which baud rate is used, check with the Ethernet switch manufacturers for information about installing the network between Ethernet switches, and in particular whether or not it is neces- sary to connect the cable shields to the connector hoods.
2 Installing Ethernet Networks 2-2-4 Precautions When Installing and Connecting Ethernet Switches Precautions When Installing Ethernet Switches • Do not ground the Ethernet switch in the same location as a drive-system component, such as an inverter. • Always use a dedicated power supply for the Ethernet switch’s power supply. Do not use the same power supply for other equipment, such as an I/O power supply, motor power supply, or control power supply.
2 Installing Ethernet Networks Connecting to the Network 2-3-1 Ethernet Connectors The following standards and specifications apply to the connectors for the Ethernet twisted-pair cable. • Electrical specifications: Conforming to IEEE 802.3 standards. • Connector structure: RJ45 8-pin Modular Connector (conforming to ISO 8877) •...
2 Installing Ethernet Networks 2-3-2 Connecting the Cable Precautions for Correct Use Precautions for Correct Use • Turn OFF the Controller's power supply before connecting or disconnecting Ethernet commu- nications cable. • Allow extra space for the bending radius of the communications cable. For the CPU Unit dimensions when the communications cable is connected to the Unit, refer to the NY-series Industrial Box PC Hardware User’s Manual (Cat.
Page 62
2 Installing Ethernet Networks 2-12 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
System-defined Variables Related to the Built-in EtherNet/IP Port 3-1 System-defined Variables Related to the Built-in EtherNet/IP Port ..3-2 3-2 System-defined Variables ........3-3 3-3 Specifications for Individual System-defined Variables .
Page 64
3 System-defined Variables Related to the Built-in EtherNet/IP Port System-defined Variables Related to the Built-in EtherNet/IP Port You can use the system-defined variables that are provided for the built-in EtherNet/IP port in programs to check the status of the built-in EtherNet/IP port. ...
3 System-defined Variables Related to the Built-in EtherNet/IP Port System-defined Variables The variables are described in the tables as shown below. Range of Variable name Meaning Function Data type Reference values This is the system- This is the mean- The function of the variable is described. The data The range of The page of...
Page 66
3 System-defined Variables Related to the Built-in EtherNet/IP Port Range of Variable name Meaning Function Data type Reference values _EIP1_PortErr Communications This is the error status variable for the WORD 16#0000 to page 3-14 Port1 Error communications port. 16#00F0 It represents the collective status of the following error flags.
Page 67
3 System-defined Variables Related to the Built-in EtherNet/IP Port Range of Variable name Meaning Function Data type Reference values _EIP_TcpAppErr TCP Application This is the error status variable for TCP appli- WORD 16#0000 to page 3-15 Communications cation communications. 16#00F0 Error It represents the collective status of the following error flags.
Page 68
3 System-defined Variables Related to the Built-in EtherNet/IP Port Range of Variable name Meaning Function Data type Reference values _EIP1_IPAdrCfgErr Port1 IP Address Set- Indicates the IP address setting errors for BOOL TRUE or page 3-17 ting Error the communications port 1. FALSE TRUE: •...
Page 69
3 System-defined Variables Related to the Built-in EtherNet/IP Port Range of Variable name Meaning Function Data type Reference values _EIP_IPRTblErr IP Route Table Error NY-series Controller: Indicates that the BOOL TRUE or page 3-18 default gateway settings or IP router table FALSE settings are incorrect.
Page 70
3 System-defined Variables Related to the Built-in EtherNet/IP Port Range of Variable name Meaning Function Data type Reference values _EIP_TcpAppCfgErr TCP Application TRUE: At least one of the set values for a BOOL TRUE or page 3-20 Setting Error TCP application (FTP, NTP, FALSE SNMP) is incorrect.
Page 71
3 System-defined Variables Related to the Built-in EtherNet/IP Port Meanings of Error Status Bits Bit: WORD Meaning Reserved) Collective slave error status: This bit indicates if a Controller error was detected for levels (e.g., a Unit, slave, axis, or axes group) that are lower than the event source (i.e., for a function module). TRUE: A Controller error has occurred at a lower level.
Page 72
3 System-defined Variables Related to the Built-in EtherNet/IP Port Range of Variable name Meaning Function Data type Reference values _EIP1_EtnOnlineSta Port1 Online Indicates that the built-in EtherNet/IP BOOL TRUE or page 3-21 port’s communications can be used via FALSE the communications port 1 (that is, the link is ON, IP address is defined, and there are no errors).
Page 73
3 System-defined Variables Related to the Built-in EtherNet/IP Port Range of Variable name Meaning Function Data type Reference values _EIP_TargetPLC- Target PLC Operat- NY-series Controller: Shows the operating ARRAY TRUE or page 3-22 ModeSta [255] ing Mode status of the target node Controllers that [0..255] OF FALSE are connected for CIP communications 1,...
Page 74
3 System-defined Variables Related to the Built-in EtherNet/IP Port Range of Variable name Meaning Function Data type Reference values .ExecTime NTP Last Operation NY-series Controller: No change from the DATE_AND_ Depends on page 3-23 Time initial value. TIME data type. .ExecNormal NTP Operation Result NY-series Controller: No change from the BOOL...
3 System-defined Variables Related to the Built-in EtherNet/IP Port Specifications for Individual System- defined Variables The specifications for each system-defined variable are given as described below. Variable name This is the system-defined variable name. The prefix Members The member names are given for gives the category name.
Page 76
3 System-defined Variables Related to the Built-in EtherNet/IP Port Variable name _EIP_PortErr Meaning Communications Port Error Global/local Global Function This is the error status variable for the communications port. NY-series Controllers: Represents the collective status of the following error flags. •...
Page 77
3 System-defined Variables Related to the Built-in EtherNet/IP Port Variable name _EIPIn1_PortErr Meaning Internal Port1 Error Global/local Global Function This is the error status variable for the internal port 1. It represents the collective status of the following error flags. •...
Page 78
3 System-defined Variables Related to the Built-in EtherNet/IP Port Variable name _EIP1_MacAdrErr Meaning Port1 MAC Address Error Global/local Global Function Indicates that an error occurred when the MAC address was read on the communications port 1 at startup. TRUE: Error FALSE: Normal Data type BOOL...
Page 79
3 System-defined Variables Related to the Built-in EtherNet/IP Port Variable name _EIP_IPAdrCfgErr Meaning IP Address Setting Error Global/local Global Function NY-series Controller: Indicates the IP address setting errors for the communications port 1. TRUE: • There is an illegal IP address setting. •...
Page 80
3 System-defined Variables Related to the Built-in EtherNet/IP Port Variable name _EIP1_IPAdrDupErr Meaning Port1 IP Address Duplication Error Global/local Global Function Indicates that the same IP address is assigned to more than one node for the communications port 1. TRUE: Duplication occurred. FALSE: Other than the above.
Page 81
3 System-defined Variables Related to the Built-in EtherNet/IP Port Data type BOOL Range of values TRUE or FALSE R/W access Retained Not retained. Network Publish Published. Usage in user pro- Possible. Related gram instructions Variable name _EIP_IdentityErr Meaning Identity Error Global/local Global Function...
Page 82
3 System-defined Variables Related to the Built-in EtherNet/IP Port Variable name _EIP_TagAdrErr Meaning Tag Name Resolution Error Global/local Global Function NY-series Controller: Indicates that tag resolution for CIP communications 1 failed (i.e., the address could not be identi- fied from the tag name). TRUE: Tag resolution failed (i.e., the address could not be identified from the tag name).
Page 83
3 System-defined Variables Related to the Built-in EtherNet/IP Port Functional Classification: EtherNet/IP Communications Status Variable name _EIP_EtnOnlineSta Meaning Online Global/local Global Function NY-series Controller: Indicates that the built-in EtherNet/IP port’s communications can be used via the communications port 1 (that is, the link is ON, IP address is defined, and there are no errors). TRUE: The built-in EtherNet/IP port’s communications can be used.
Page 84
3 System-defined Variables Related to the Built-in EtherNet/IP Port Variable name _EIP_RegTargetSta [255] Meaning Registered Target Node Information Global/local Global Function NY-series Controller: Gives a list of nodes for which built-in EtherNet/IP connections are registered for CIP commu- nications 1. This variable is valid only when the built-in EtherNet/IP port is the originator.
Page 85
3 System-defined Variables Related to the Built-in EtherNet/IP Port Variable name _EIP_TargetNodeErr [255] Meaning Target Node Error Information Global/local Global Function NY-series Controller: Indicates that the connection for the Registered Target Node Information for CIP communica- tions 1 was not established or that an error occurred in the target Controller. The array elements are valid only when the Registered Target Node Information is TRUE.
Page 86
3 System-defined Variables Related to the Built-in EtherNet/IP Port 3-24 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
4 Determining IP Addresses IP Addresses 4-1-1 IP Address Configuration IP addresses are made up of 32 bits of binary data that specify the network number (net ID) and host number (host ID). The network number identifies the network, and the host number identifies the node (or host) on the network.
4 Determining IP Addresses 4-1-2 Allocating IP Addresses You must assign IP addresses nodes so that each IP address is assigned only once in the network or between several networks. 4-1-3 Subnet Masks Operation and management of a network can become very difficult if too many nodes are connected on a single network.
4 Determining IP Addresses As shown in the above table, node 1 and node 2 have the same network address, which means these nodes belong to the same network. 4-1-4 CIDR CIDR, or classless interdomain routing, is used to assign IP addresses that do not use classes. IP addresses that use classes are separated into blocks according to network IDs and host IDs, resulting in inefficient usage of IP address space.
4 Determining IP Addresses Controller IP Address Settings 4-2-1 Determining IP Addresses Use one of the following methods to set the IP address for the built-in EtherNet/IP port on the NY-series Controller. The IP address for the internal port can be set only by using a user-specified address. Setting a User-specified IP Address If you need to change the default IP address of the built-in EtherNet/IP port or if you need to use the built-in EtherNet/IP port with another EtherNet/IP node, set the IP address to the required value.
4 Determining IP Addresses 4-2-2 Setting IP Addresses Use the Sysmac Studio to set the IP addresses of the built-in EtherNet/IP port and the internal port. Additional Information You can also set these IP addresses by using the Industrial PC Support Utility, instead of the Sysmac Studio.
Page 93
4 Determining IP Addresses After the IP address settings are downloaded, the IP address is reflected in the NY-series Con- troller as follows: Setting a User-specified IP Address After the IP address settings are downloaded, the set IP address is automatically saved in the Controller.
4 Determining IP Addresses 4-2-3 Online Connection Connect the Sysmac Studio online to the Controller. Types of Connections between the Controller and Computer That Runs the Sysmac Studio The Controller and the computer that runs Sysmac Studio are connected as shown below via USB or Ethernet: Ethernet Connection Direct Connection via Ethernet (1:1 Connection...
Page 95
4 Determining IP Addresses Precautions for Correct Use Precautions for Correct Use If there is more than one node with the same IP address in the EtherNet/IP network, the built-in EtherNet/IP port will connect to the node that is detected first. An IP Address Duplication Error will not occur.
4 Determining IP Addresses Connecting from a Saved Project The connection configuration that is set (EtherNet/IP) is saved in the project. (The file is xxx.smc.) If you open a saved project on the Sysmac Studio, you can connect to the EtherNet/IP network without redoing the settings.
4 Determining IP Addresses Private and Global Addresses 4-3-1 Private and Global Addresses There are two kinds of IP addresses, private and global. IP address Description Global address These are IP addresses that connect directly to the Internet. Allocated by application to NIC, each address is unique in the world, and as many as 4.3 billion can be allocated world- wide.
4 Determining IP Addresses 4-3-2 Using a Private Address for the Built-in EtherNet/IP Port Intranet CIP client on a Explicit message computer, such as Sysmac Studio or Network Configurator Ethernet (EtherNet/IP) Communications in intranet Firewall Controller IP router Built-in EtherNet/IP port: Private address Internet Intranet Explicit message...
4 Determining IP Addresses 4-3-3 Using a Global Address for the Built-in EtherNet/IP Port Intranet CIP client on a computer, such as Network Configurator Ethernet (EtherNet/IP) Communications Firewall over Internet Private address IP router Cannot connect to Internet Internet Global address (required) Cannot connect to Internet Intranet...
Page 100
4 Determining IP Addresses 4-14 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port TCP/IP Settings Display IP Address - EtherNet/IP Port Setting Description Default IP address setting Select one of the following IP address setting methods for Fixed setting method the built-in EtherNet/IP port. •...
Page 103
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port DNS Setting Description Default Enable using DNS if a DNS is used to resolve host names Do not use. when host names are specified for the remote communica- tions nodes in CIP communications and socket instructions. A DNS server is required to use DNS.
Page 104
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port Default Gateway Setting Description Default Set the IP address of the default gateway for the built-in None Default gateway EtherNet/IP port. This setting is not required when the default gateway is not used. *1 Even if you select Fixed setting for both EtherNet/IP port and internal port, you can only set the default gate- way for one of the ports.
Page 105
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port Port Forward Setting Description Default IP Forward Specify whether to relay IP packets between the built-in Ether- Net/IP port and the internal port on the Controller. Specify whether to convert the source IP address to the IP address for the built-in EtherNet/IP port if packets from Windows are relayed via the internal port to a network on the built-in Ether- Net/IP port side.
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port Link Settings Display LINK settings - EtherNet/IP Port Set for each built-in EtherNet/IP port. Setting Description Default LINK settings Set the baud rate for the built-in EtherNet/IP port. Auto • Auto •...
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port FTP Display Setting Description Default FTP server Specify whether to use the FTP server. FTP connections Do not use. from external devices will not be possible if the Do not use Option is selected.
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port SNMP Settings Display SNMP Service Setting Description Default SNMP service Do not use. Specify whether to use the SNMP monitor service. If not using the SNMP monitor service is specified, an SNMP manager cannot connect from an external device.
Page 109
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port Recognition 1 Setting Description Default Recognition method Set the method to use to specify SNMP managers for which IP address access is permitted. • IP address • Host name Make these settings to permit access by only certain SNMP managers.
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port SNMP Trap Settings Display SNMP Trap Setting Description Default SNMP trap Specify whether to use the SNMP trap (network error detec- Do not use. tion). If the SNMP trap service is not used, SNMP traps are not sent to the SNMP manager.
Page 111
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port Trap 1 Setting Description Default Specifying method Set the specifying method for the SNMP manager destination IP address for SNMP traps. • IP address • Host name IP address Set the IP address of the SNMP manager. (Set this setting if None the specifying method in the trap 1 settings is set to the IP address Option.)
5 Sysmac Studio Settings for the Built-in EtherNet/IP Port CIP Settings Display CIP Settings Setting Description Default CIP routing Specify whether to route the CIP messages received by the built-in EtherNet/IP port or internal port to other ports. If you select Do not use, CIP messages that you receive will be dis- carded.
6 Testing Communications Testing Communications If the basic settings (in particular the IP address and subnet mask) have been made correctly for the built-in EtherNet/IP port, then it is possible to communicate with nodes on the EtherNet/IP network. This section describes how to use the PING command to test communications with the built-in EtherNet/IP port.
6 Testing Communications 6-1-3 Host Computer Operation The PING command can be executed from the host computer to send an echo request packet to a built-in EtherNet/IP port. The following example shows how to use the PING command in the host com- puter.
Page 116
6 Testing Communications NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Page 117
Tag Data Link Functions 7-1 Introduction to Tag Data Links ........7-2 7-1-1 Tag Data Links .
7 Tag Data Link Functions Introduction to Tag Data Links 7-1-1 Tag Data Links Tag data links enable cyclic tag data exchanges on an EtherNet/IP network between Controllers or between Controllers and other devices. Variables are assigned to tags. The settings for tag data links are made with the Network Configurator.
7 Tag Data Link Functions 7-1-2 Data Link Data Areas Tags A tag is a unit that is used to exchange data with tag data links. Data is exchanged between the local network variables and remote network variables specified in the tags or between specified I/O memory areas.
Page 120
7 Tag Data Link Functions Example In the following example, input tags a to g at the originator are a tag set named SP1_IN and output tags i and ii are a tag set named SP1_OUT. A connection is set between these two tag sets. Originator device Target Device IP address: N...
Page 121
7 Tag Data Link Functions Number of Tags in Tag Sets You can set any tag sets containing one or more tags for the input and output tag sets for one con- nection. For example, you can set a tag set with one tag for the input tag set and set a tag set with more than one tag for the output tag set.
7 Tag Data Link Functions 7-1-3 Tag Data Link Functions and Specifications The tag data link and performance specifications of the NY-series Controller are given below. Specification Item NY52- Unit version 1.12 or later Communications type Standard EtherNet/IP implicit communications (connection-type cyclic commu- nications) Setting method After you have set the tags, tag sets, and connections with the Network Config-...
7 Tag Data Link Functions 7-1-4 Overview of Operation In this manual, the connection information that is set is called tag data link parameters. This section describes how to set tag data links with the Sysmac Studio and the Network Configurator. Setting Network Variables (Sysmac Studio) First, create any variables that you want to use for tag data links as network variables in the Sysmac Studio.
Page 124
7 Tag Data Link Functions Create Controller variables for input (consume) tags and output (produce) tags. You can import and export network variables that are created on the Sysmac Studio to CSV files. This allows you to register them as tags on the Network Configurator. Output tags can be defined to clear output data to 0 or to hold the output data from before the error when a fatal error occurs in the Controller.
7 Tag Data Link Functions Additional Information • To calculate the number of connections of each connection type, refer to 13-1-2 Calculating the Number of Connections. • If the maximum number of connections is exceeded, you must review the number of connec- tions for the built-in EtherNet/IP port, or the number of nodes.
7 Tag Data Link Functions Example: Using an NY-series Controller to send the Target PLC Operating Mode of the Target Node with an IP Address of 192.168.250.2 IP address = 192.168.250.2 _EIP_TargetPLCModeSta (Target PLC Operating Mode) Value of last byte = 2 Target ID = #002 Controller status NY-series Controller...
Page 127
7 Tag Data Link Functions When you use multiple connections to communicate with one specific node, the information in the Con- troller status is stored in the following variables if the Controller status is specified in the input tags and the output tags for all connections.
7 Tag Data Link Functions 7-1-7 Concurrency of Tag Data Link Data To maintain the concurrency of data in a tag data link, you must set a refreshing task for each network variable that is assigned to a tag. • Maintain concurrency in the tag data in a tag set. •...
Page 129
7 Tag Data Link Functions • Not Setting Refreshing Tasks for Tags (Network Variables) Concurrency of the tags in the tag set is not maintained. NY-series Controller NJ/NX-series Controller Refreshing task Refreshing task Value of variable Tag set Tag set Value of variable values of Connection...
Page 130
7 Tag Data Link Functions (2) Tag (network variable) without a refreshing task The values are written to the variables in a system service. Execution Primary period priority High IO UPG IO UPG IO UPG IO UPG IO UPG Primary periodic task Task period Priority-16...
Page 131
7 Tag Data Link Functions Required Processing Time to Maintain Concurrency When you set a refreshing task for tags (network variables) to maintain the concurrency of data link data, the processing time required for that specified task increases. Due to this increase in task pro- cessing time, the refreshing of tag data link data may not occur during the packet interval (RPI) period set for each connection.
Configurator. Using the Windows Start Menu To start the Network configurator, select OMRON - Sysmac Studio - Network Configurator for EtherNetIP - Network Configurator from the Windows Start Menu. When the Network Configurator starts, the following window is displayed.
Page 133
7 Tag Data Link Functions Main Window The Main Window consists of a Hardware List and a Network Configuration Pane, as shown in the fol- lowing diagram. Network Configuration Pane: This is used to configure the network by placing devices to be configured and monitored. Hardware List: This is a list of devices that you can add to the network.
7 Tag Data Link Functions 7-2-2 Tag Data Link Setting Procedure This section describes the procedure to set tag data links (i.e., connection information). For data links between Controllers, the connection information is set only in the originator, i.e., the node that receives data.
7 Tag Data Link Functions 7-2-3 Registering Devices Register all of the devices required in the equipment (such as EtherNet/IP Units performing tag data links) in the network configuration. Register the devices that will participate in the tag data links by dragging the devices from the Hardware List and dropping them in the Network Configuration Pane on the right.
Page 136
7 Tag Data Link Functions Precautions for Correct Use Precautions for Correct Use Make sure that you select the devices with the same device names and the same major CIP revisions as the devices that you use in actual operation. The following will occur if any device names or CIP revisions are different when you attempt to download tag data link parameters on the Network Configurator.
7 Tag Data Link Functions 7-2-4 Creating Tags and Tag Sets You must create the tag sets and set member tags required to create connections for a registered Eth- erNet/IP Unit. You can set the network variables used in control programs for tags. This section first describes the basic procedure to create tags and tag sets (1, below).
Page 138
7 Tag Data Link Functions Click the Tag Sets Tab at the top of the Edit Device Parameters Dialog Box. There are two kinds of tag sets: input (consume) and output (produce). Creating and Adding Tags Click the Edit Tags Button. The Edit Tags Dialog Box is displayed.
Page 139
7 Tag Data Link Functions Click the In - Consume Tab, and then click the New Button. The Edit Tag Dialog Box is dis- played. Enter the variable name directly into the Name Box. ( Example: Var_In_a) Additional Information • You can use the following characters in tag names. 0 to 9, A to Z, a to z, single-byte kana, _ (underbar), and multi-byte characters (e.g., Japanese) •...
Page 140
7 Tag Data Link Functions The Fault Action setting is not required for input (consume) tag sets. • Retain output for major fault: Hold (default) Output data maintains its previous status even after a major fault occurs. • Clear output at major fault: Clear Output data is cleared to 0 when a major fault occurs.
Page 141
7 Tag Data Link Functions Precautions for Correct Use Precautions for Correct Use Make the following settings to refresh all of the tag data in the same tag set at the same time. • Use the Sysmac Studio to specify, in advance, the same refreshing task for all of the variables that are assigned to tags in the tag set.
Page 142
7 Tag Data Link Functions If an input tag is already registered in an input tag set, and you want to change its registration to a different input tag set, it is necessary to delete the tag from the tag set in which it was originally registered.
Page 143
7 Tag Data Link Functions To edit a registered tag set and add tags, either double-click the tag set, or select the tag set and click the Edit Button. The Edit Tag Set Dialog Box is displayed. The Tag List on the left side of the dialog box shows the tags that are already registered, and the Candidate Tag List on the right side of the dialog box shows the other tags that are not reg- istered yet.
Page 144
7 Tag Data Link Functions After you register all of the required tags, click the OK Button at the bottom of the Edit Tags Dia- log Box. At this point, a confirmation dialog box is displayed to check whether the registered tag names are used as the tag set names.
Page 145
7 Tag Data Link Functions (2) Importing Variables with a Network Publish Attribute Created on the Sysmac Studio to the Network Configurator You can create network variables in the Sysmac Studio and import these variables to the Network Con- figurator to assign them to tags and tag sets. Use the following procedure. ...
Page 146
7 Tag Data Link Functions Click the Tag Sets Tab at the top of the Edit Device Parameters Dialog Box. Select Import from File from the To/From File Button. A confirmation dialog box is displayed that asks you how you want to import the variables as shown below.
Page 147
7 Tag Data Link Functions The variables will be imported as shown below on the Tag Sets Tab Page. Each variable will be imported into a different tag set and the device parameters will be automatically edited. (The variable name will be used for the tag set name.) To place more than one input variable (input tag) imported from the Sysmac Studio into one tag set, you must delete the input tags that were registered.
7 Tag Data Link Functions You can change tag set names in this dialog box. To confirm a change, click the Regist Button in the Edit Tag Set Dialog Box. Perform steps 1 to 3 for all the devices to import variables and to create tag sets. 7-2-5 Connection Settings After you create the tag sets, click the Connections Tab at the top of the Edit Device Parameters Dia-...
Page 149
7 Tag Data Link Functions In the Unregister Device List, click the target device that requires connection settings so its color changes to gray, and click the Button. The selected target device is displayed in the Register Device List, as shown in the following diagram. Target node IDs are assigned to the devices that are registered in the Register Device List.
Page 150
7 Tag Data Link Functions Editing Settings for Individual Connections You can edit each connection separately. Note Refer to the following section for information on how to perform batch editing in a table format. Click the Connections Tab and then click the New Button. The following Edit Connection Dia- log Box is displayed according to the type of device that is selected.
Page 151
7 Tag Data Link Functions The settings are as follows: Setting Description Connection I/O Type Select Input Only (tag type) to use tag data links with a CS1W-EIP21, CJ1W-EIP21, CJ2B-EIP21, CJ2M-EIP21, CJ1W-EIP21(CJ2), CJ1W-EIP21(NJ), NX701, NJ501- , NJ301-, NJ101, or NY52. When you create tag data links for other devices, select the connection I/O type specified in that device’s EDS file.
Page 152
7 Tag Data Link Functions The settings are as follows: Setting Description Target Device Select the target device. Connection Name Any name can be given to the connection (32 single-byte characters max.). If this field is left blank, a default name is assigned. The connection name is used as a comment.
Page 153
7 Tag Data Link Functions Confirming the Connections Settings An overview of the connections that were set in the Register Device List is displayed in the Con- nections Tab Page. Click the OK Button. The following kind of diagram is displayed. Indicates the IP address of the originator where the connection was set.
Page 154
7 Tag Data Link Functions Automatically Setting Connections (Network - Auto Connection) You can use automatic detection of the tag set names that are set for devices to automatically set con- nections between input and output tag sets with the same name (or the same names excluding speci- fied ellipses).
Page 155
7 Tag Data Link Functions Select Auto Connection Configuration from the Network Menu. The connections will be set automatically. A dialog box will appear to set forward and backward ellipses for both output and input tag sets as soon as automatic connection setting processing has begun. Input the ellipses and click the OK Button.
Page 156
7 Tag Data Link Functions A device connection structure tree is displayed when processing is completed. Use the device connection structure tree as required to change the RPI and timeout settings. 7-40 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Page 157
7 Tag Data Link Functions Device Connection Structure Tree Connection settings can be displayed on the network configuration. Select View Device’s Connection Structure Tree from the Network Menu. • You can use the Display the detail of Connection Check Box to switch between device-level and con- nection-level displays of tag data link communications.
Set tags and tag sets for all devices before starting the Wizard. Refer to 7-2-4 Creating Tags and Tag Sets for the setting procedure. For tag data links between OMRON PLCs, a connection is created in the PLC (i.e., the origina- tor device) that receives data as input data.
Page 159
7 Tag Data Link Functions Create the connection following the instructions that are given by the Wizard after the Wizard starts. (See the following figure.) A list of tag sets is displayed on the right side of the Wizard Dialog Box with target devices that support receiving input data.
Page 160
7 Tag Data Link Functions Click the Next Button to switch to the table in the following Wizard Dialog Box. Follow the instructions to select the input tag set of the originator device that receives the output tag set of the target device from the list box.
(1) Refer to 7-2-4 Creating Tags and Tag Sets for information on creating the settings if the target is one of the OMRON EtherNet/IP devices given above. (2) If the target is another EtherNet/IP device, refer to the manual of that device and per- form settings as required.
Page 162
7 Tag Data Link Functions A dialog box as in the following figure for connection allocation will be displayed when you drag the target device and drop it at the OMRON EtherNet/IP device. (1) Using One of the Above OMRON EtherNet/IP Devices As Target...
Page 163
7 Tag Data Link Functions The following display will appear when you click the Show Detail Button. The specified values for detailed parameters will be displayed. Change the values as required. Connection names are automatically created using the following rule. default_N (where N is a 3-digit number (001, 002, etc.) starting from 1) Additional Information The following dialog box will be displayed if a target device that does not have I/O data is...
7 Tag Data Link Functions 7-2-8 Connecting the Network Configurator to the Network This section describes how to Connect the Network Configurator online. Connecting through Ethernet Connect to the built-in EtherNet/IP port on the Controller via an Ethernet switch. Precautions for Correct Use Precautions for Correct Use The first time you connect via Ethernet with Windows XP (SP2 or higher), Windows Vista, or Windows 7, you much change the Windows firewall settings.
Page 165
7 Tag Data Link Functions Click the OK Button. Select the network to connect. The Network Configurator will connect to the EtherNet/IP network. If the Network Configurator goes online normally, “Online” is displayed in the status bar at the bottom of the window. The network connection icon is displayed in blue on the Network Tab Page in which the Network Configurator is connected.
Page 166
7 Tag Data Link Functions The following dialog box is displayed. Click the OK Button. Select the network to connect to. Additional Information If the following dialog box appears in the Network Configurator when you go online with an NY- series Controller, refer to the following table for possible causes and corrections.
Page 167
7 Tag Data Link Functions Direct Connection via Ethernet to Built-in EtherNet/IP Port Use the following procedure to directly connect to the built-in EtherNet/IP port via Ethernet. You can connect to the built-in EtherNet/IP port even if the IP address has not been set on the computer. Select the communications interface.
Page 168
7 Tag Data Link Functions Select the network to connect. The Network Configurator will connect to the EtherNet/IP network. If the Network Configurator goes online normally, “On-line” is displayed in the status bar at the bottom of the window. Additional Information If the following dialog box appears in the Network Configurator when you go online with an NY- series Controller, refer to the following table for possible causes and corrections.
7 Tag Data Link Functions 7-2-9 Downloading Tag Data Link Parameters To make tag data links, you must download tag data link parameters, such as tag set settings and con- nection settings, to all devices in the EtherNet/IP network. When the download operation is executed, the tag data link parameters are transferred to the EtherNet/IP Units that require the settings.
Page 170
7 Tag Data Link Functions Connect the Network Configurator online. There are two ways to download the parameters. Downloading to All Devices in the Network Select Network - Download. The following dialog box is displayed. Downloading Individually to Particular Devices Select the icon of the EtherNet/IP Unit to which you want to download.
Page 171
7 Tag Data Link Functions Click the Yes Button to download the tag data link parameters to the EtherNet/ IP Unit. The fol- lowing dialog box is displayed if any of the Controllers is not in PROGRAM mode. If the Download after changed to Program mode Button is clicked, all Controllers are changed to PROGRAM mode and the parameters are downloaded.
7 Tag Data Link Functions 7-2-10 Uploading Tag Data Link Parameters You can upload tag data link parameters (such as the tag set settings and connection settings) from EtherNet/IP Units in the EtherNet/IP network. The following procedure shows how to upload the param- eters.
Page 173
7 Tag Data Link Functions Clicking the No Button: Performing a Batch Upload over the Network Parameters are uploaded from all devices on the network. The current Network Configuration Information will be lost. The following dialog box will be displayed. Select the devices for which to upload parameters and click the OK Button.
Page 174
7 Tag Data Link Functions Uploading Individually from Particular Devices Connect the Network Configurator online and select the icon of the EtherNet/IP Unit from which you want to upload the parameters. To select multiple nodes, press and hold the Shift Key or the Ctrl Key while you select additional icons.
7 Tag Data Link Functions 7-2-11 Verifying the Tag Data Links Tag data link parameters (such as the tag set settings and connection settings) can be compared with the parameters of the built-in EtherNet/IP ports in the EtherNet/IP network. The following procedure shows how to compare the parameters.
Page 176
7 Tag Data Link Functions Differences Found in the Comparison Differences Found in the Device Type Click the OK Button or the Close Button. Verifying the Device Parameters Use the following procedure to compare the device parameters for the devices selected in the Network Configuration Pane with those of the devices connected on the EtherNet/IP network.
Page 177
7 Tag Data Link Functions The following dialog box is displayed. Click the Yes Button or the No Button. The following dialog box is displayed. Differences Not Found in the Comparison Differences Found in the Comparison Differences Found in the Device Type Click the OK Button or the Close Button.
Page 178
7 Tag Data Link Functions If multiple nodes have been selected and compared, the following message is displayed. Click the Yes Button. The comparison results are displayed in order of the selected nodes. 7-62 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
7 Tag Data Link Functions 7-2-12 Starting and Stopping Tag Data Links Automatically Starting Tag Data Links Tag data links are automatically started immediately after the data link parameters are downloaded from the Network Configurator. (They are automatically started after the CPU Unit’s power is turned ON or the Unit is restarted.) Additional Information A Tag Data Link Connection Timeout error will occur if a connection is not established with the...
7 Tag Data Link Functions Starting and Stopping Tag Data Links for Individual Devices Using the Network Configurator You can start and stop tag data links for individual devices using the Connection Tab Page in the Monitor Device Dialog Box. This applies only to tag data links for which the device is the originator. Select Monitor from the Device Menu to access the Monitor Device Dialog Box.
Page 181
7 Tag Data Link Functions Select Device - Reset. You can also right-click the icon and select Reset from the popup menu. The following dialog box is displayed. Yes Button: The following dialog box is displayed. Select the Initialize tag data link configuration, and then emulate cycling power Option and then click the OK Button.
7 Tag Data Link Functions Additional Information You can also execute the Reset service of the Identity object for the Controller to clear the tag data link settings. The procedures to execute the service from the Network Configurator is given below.
Page 183
7 Tag Data Link Functions Input the file name, and then click the Save Button. This completes the network configuration file save operation. When the network configuration is changed later, you can overwrite the existing network config- uration file if you select File - Save or click the Button.
7 Tag Data Link Functions 7-2-15 Reading a Network Configuration File You can read a previously saved network configuration file into the Network Configurator. Select File - Open or click the Button. The following dialog box is displayed. If the network configuration file that you want to read is not displayed, change to another folder. If you select the network configuration file that you want to read, that file name is displayed in the File name Field.
7 Tag Data Link Functions The Network Configurator’s Title Bar will display the name of the file that was read. Select any of the options as necessary. The options are listed below. Setting Description Select target network Allows you to select specific networks from the network configuration and open them.
Page 186
7 Tag Data Link Functions The following dialog box is displayed if there are parameter errors. Check the displayed details and review the settings. If an inconsistency is found, open the originator’s Edit Device Parameter Dialog Box and click the Connection Tab. The inconsistent connection in the Register Device List is displayed with a icon (instead of the normal icon).To change the connection setting and select a different target variable, select the connection as shown below and click the Edit Button.
7 Tag Data Link Functions 7-2-17 Changing Devices You can change devices that are registered in a network configuration with the Network Configurator. Select Change Device from the Device Menu to display a list of the possible devices to change to. Select the desired device.
7 Tag Data Link Functions 7-2-18 Displaying Device Status Device status is displayed using the following icons in Maintenance Mode. To enter Maintenance Mode, select Large Icons - Maintenance Mode from the View Menu. Icon Status Offline (white) Default (including no Controller Configurations and Setup) (gray) Idle (including when CPU Unit of Controller is in PROGRAM mode)
(_EIP_EstbTargetSta) is TRUE. Condition for the Controller operating mode (operating or stopped) of the target node (valid for OMRON Controllers only): (4) The bit corresponding to the target node address in the Target PLC Operating Mode (_EIP_TargetPLCModeSta) is TRUE.
Page 190
7 Tag Data Link Functions Programming Example to Detect Normal Operation The following programming can be used to confirm that normal communications are being per- formed for each target node. If the Controller status is included in the tag data, the status of the Con- troller can also be detected.
Page 191
7 Tag Data Link Functions Programming Example to Detect Errors The following programming can be used to check for tag data link errors for each target node. This programming is used to detect errors only after the data links for all nodes have started normally. Normal Target Online Node Information (#1)
Page 192
7 Tag Data Link Functions • You can use MC - MCR instructions and JMP instructions to process data only when the data links are operating normally as shown below. Node A data link normal operation flag Node A data processing Node B data link normal operation flag Node B data processing...
7 Tag Data Link Functions 7-3-2 Status Flags Related to Tag Data Links The status of the tag data links is reflected in the following system-defined variables. Variable name Description _EIP_TargetPLCModeSta[255] (Target PLC This variable shows the operating status of the target node Operating Mode) Controllers that are connected with the built-in EtherNet/IP port as the originator.
7 Tag Data Link Functions Tag Data Links with Other Models The performance of tag data links depends on the Controller and EtherNet/IP Unit model as shown below. When you use tag data links between the built-in EtherNet/IP port on the NY-series Controller and another Controller or EtherNet/IP Unit, use tag data link settings of the Unit with the lower commu- nications performance.
Page 195
7 Tag Data Link Functions Differences in Tag Data Link Performance Specifications CJ2M-CPU3 CS1W- NJ-series CPU Unit EIP21, Unit version NY-series NX-series CJ1W- Item Unit ver- Unit ver- Controller Controller EIP21, or sion 1.00 sion 1.03 2.1 or later CJ2H- to 1.02 or later...
Page 196
7 Tag Data Link Functions *2 To use a data size of 505 bytes or more, the system must support a large forward open (an optional CIP spec- ification). The SYSMAC CS/CJ-series Units support Large_Forward_Open, but before you connect to nodes of other companies, confirm that those devices also support it.
Page 197
CIP Message Communications 8-1 Overview of the CIP Message Communications Service ....8-3 8-1-1 Overview of the CIP Message Communications Service ....8-3 8-1-2 Message Communications Service Specifications .
Page 198
8 CIP Message Communications 8-5 CIP Object Services ......... . . 8-40 8-5-1 CIP Objects Sent to the Built-in EtherNet/IP Port .
8 CIP Message Communications Overview of the CIP Message Communications Service 8-1-1 Overview of the CIP Message Communications Service CIP commands can be sent to devices on the EtherNet/IP network whenever they are required. You execute CIP_SEND instructions in a program in the NY-series Controller to send CIP commands, such as those to read and write data and to receive the responses.
8 CIP Message Communications CIP Messaging Communications Client Function 8-2-1 Overview The CIP Messaging Communications Client function is available for an NY-series Controller. This func- tion allows you to request a service by sending CIP messages to an external device and specifying a self-contained object of a device supporting the CIP Communication Server functions.
8 CIP Message Communications 8-2-2 CIP Communications Instructions The following CIP communications instructions are available. For details on CIP communications instructions, refer to the NY-series Instructions Reference Manual (Cat. No. W560). Communica- Instruction Name Description tions method Read Variable Reads the value of a variable with a Network Publish attribute from CIP UCMM CIPUCMMRead UCMM Explicit...
8 CIP Message Communications 8-2-3 Using CIP Communications Instructions CIP message communications include the following processes. If CIP class 3 connections are used, the open and close processes are required before and after the data is sent and received. Process Description Instruction Open process...
8 CIP Message Communications 8-2-4 Route Path The route path indicates the path from the local Controller to the remote Controller on the network. Routing is performed for CIP communications instructions based on route paths. Route Path Notation The EPATH data type is used to give route paths. The basic format is shown below. Network_type_number \Remote_address The network type number and the destination address for the Controller in an NY-series Industrial PC are determined as shown in the following table.
Page 204
8 CIP Message Communications Route Path Notation Examples This section provides examples of route paths. Output from the Controller in an Industrial PC to a Node on the EtherNet/IP Network Communicating between Built-in EtherNet/IP Ports Example: Communicating between Built-in EtherNet/IP Ports on Controller 1 and Controller 2 Controller 1 Controller 2 IP address:...
Page 205
8 CIP Message Communications Accessing via a Relay Node Example: Communicating from Controller 1 to Controller 3 via Controller 2 Controller 3 Controller 1 Controller 2 EtherNet/IP Unit 2 EtherNet/IP Unit 3 Backplane Backplane IP address: Unit address port #01 192.168.250.2 port #01 00 hex...
8 CIP Message Communications 8-2-5 Request Path (IOI) A request path indicates an object of a device on the network. A CIP communications instruction uses the request path to access an object of a device. Overview of Request Path In the CIP world, each device is modeled as a collection of objects. An Object abstractly represents the specific configuration elements of a device.
Page 207
8 CIP Message Communications Providing the Structure Variables to Input Request Paths For a CIP commincations instruction, you prepare a variable to store the request path. In this variable, you specify the object to access with the user program. A structure in which the Class ID, Instance ID and Attribute ID are specified is provided for the data type of a variable for a request path.
Page 208
8 CIP Message Communications Input a value for each standard structure variable member. Input the following values into the communications parameters that were registered as mem- bers of the standard structure variable. MOVE Variable name OUT1 A. ClasslD MOVE Member name of RqPath data type A .
Page 209
8 CIP Message Communications Variable table Name Data type _sREQUEST_PATH_EX Select an extension structure for the data type of variable A. Input a value for each extension structure variable member. Input the following values into the communications parameters that were registered as mem- bers of the extension structure variable.
8 CIP Message Communications 8-2-6 Service Data and Response Data CIP communications instructions send and receive data that is stored in array variables. Preparing Array Variables to Input and Output Service Data and Response Data This section describes the array variables for storing service data and response data that CIP commu- nications instructions send and receive.
8 CIP Message Communications Use the following procedure to create a variable in the variable table. Select the Array Check Box. Specify the element first number, the element last number, and the data type. Example: UINT Array Variable table Array Variable name Data type Specify the array element first...
Page 212
8 CIP Message Communications IP address: 192.168.250.2 Built-in EtherNet/IP port Built-in EtherNet/IP port Value of variable written. Variable name: WritingDat WriteDat Global variable Network Publish attribute Value of variable read. Variable name: OriginalDat ReadDat Global variable Network Publish attribute Message sent to read identity information (product name).
8 CIP Message Communications 8-2-8 Sample Programming for CIP Connection (Class 3) Message Communications This sample uses CIP class 3 messages to write a variable, read a variable, and send a message. The Controllers are connected to an EtherNet/IP network. The IP address of the remote node is 192.168.250.2.
Page 217
8 CIP Message Communications Variable Data type Initial value Comment OperatingEnd BOOL False Processing finished. Trigger BOOL False Execution condition Operating BOOL False Processing WriteDat 1234 Source data ReadDat Read data ReqPath _sREQUEST_ (ClassID:=0, InstanceID:=0, isAt- Request path PATH tributeID:=False, AttributeID:=0) RespDat ARRAY[0..10] OF [11(16#0)]...
Page 219
8 CIP Message Communications Processing after normal end Inline ST CIPClose_instance.Done Operating 1 // Processing after normal end Processing after error end. Inline ST CIPOpen_instance.Error Operating 1 // Processing after error end. CIPWrite_instance.Error CIPRead_instance.Error CIPSend_instance.Error CIPClose_instance.Error 8-23 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Page 220
8 CIP Message Communications Internal Variable Data type Initial value Comment Variables Trigger BOOL False Execution condition DoCIPTrigger BOOL False Processing Stage Status change WriteDat 1234 Write data ReadDat Read data ReqPath _sREQUEST_ (ClassID:=0, InstanceID:=0, Request path PATH isAttributeID:=False, AttributeID:=0) RespDat ARRAY[0..10] OF [11(16#0)]...
Page 221
8 CIP Message Communications IF (DoCIPTrigger=TRUE) THEN CASE Stage OF // Open CIP Class 3 Connection (Large_Forward_Open) CIPOpen_instance( Execute :=TRUE, TimeOut :=UINT#20, // Timeout time: 2.0 s RoutePath :='02\192.168.250.2'); // Route path IF (CIPOpen_instance.Done=TRUE) THEN Stage :=INT#2; // Normal end ELSIF (CIPOpen_instance.Error=TRUE) THEN Stage :=INT#10;...
Page 222
8 CIP Message Communications // Send message ReqPath.ClassID :=UINT#01; ReqPath.InstanceID :=UINT#01; ReqPath.isAttributeID:=TRUE; ReqPath.AttributeID :=UINT#07; CIPSend_instance( Execute :=TRUE, Handle :=CIPOpen_instance.Handle, // Handle ServiceCode:=BYTE#16#0E, // Service code RqPath :=ReqPath, // Request path ServiceDat :=Dummy, // Service data Size :=UINT#0, // Number of elements RespServiceDat:=RespDat);...
8 CIP Message Communications 8-2-9 Operation Timing Output Variable Operation and Timing You can monitor the values of the output variables to determine the status throughout instruction exe- cution. The following timing chart shows the operation of the output variables. Execute Busy (Executing)
8 CIP Message Communications Precautions for Correct Use Precautions for Correct Use If Execute changes back to FALSE before Done changes to TRUE, Done stays TRUE for only one task period. (Example 1) If you want to see if Done is TRUE at any time, make sure to keep Execute TRUE until you con- firm that Done is TRUE.
Page 225
8 CIP Message Communications General sta- Status name Description of status tus code (hex) Service not supported The requested service was not supported or was not defined for this object class/instance. Invalid attribute value Invalid attribute data was detected. Attribute list error An attribute in the Get_Attribute_List or Set_Attribute_List response has a non-zero status.
Page 226
8 CIP Message Communications General sta- Status name Description of status tus code (hex) Write-once value or medium An attempt was made to write to a write-once medium already written (e.g. WORM drive or PROM) that was previously written or cannot be changed. Invalid Reply Received An invalid reply was received.
Page 227
8 CIP Message Communications General Sta- Additional Status (hex) Description tus (hex) 0116 Major or minor revision information in the key segment does not match the device. 0117 Invalid connection point. 0118 Invalid configuration format. 0119 Connection request failed because there is no controlling connection currently open.
8 CIP Message Communications CIP Communication Server Functions The CIP Communication Server functions are exclusively available for the NY-series Controllers. These functions execute services for a specified self-contained object in the Controller after receiving the CIP messages from external devices. This section provides information on CIP message structure along with information about how to use the CIP message communications server functions to read and write the values of variables in pro- grams such as the following:...
8 CIP Message Communications 8-3-1 CIP Message Structure for Accessing CIP Objects This section shows how to specify messages to access CIP objects. The CIP objects to access are expressed by connecting the segments that are defined in the CIP Com- mon specifications in the request path field in a CIP explicit message.
8 CIP Message Communications Specifying Request Path The CIP object, variable name, structure member name, and array index are specified for the request path. In CIP, the EPATH data type is used for the request path. With this method, the request path is divided into segments and a value is assigned to each segment.
8 CIP Message Communications 8-4-3 Logical Segment A logical segment is used to give the range of the CIP Object or variable (array) in the request path. Segment Format Bits Segment Type Logical Type Logical Format Logical Type Meaning Class ID Instance ID Member ID Connection Point...
8 CIP Message Communications 8-4-4 Data Segment A data segment is used to give the specified variable name in the request path. Segment Type Segment Type Segment Type Segment Type Segment Type Segment Type Segment Sub-Type Segment Sub-Type Segment Sub-Type Segment Sub-Type Segment Sub-Type Segment Sub-Type...
8 CIP Message Communications 8-4-5 Specifying Variable Names in Request Paths Variable Names A variable name is specified as a symbolic segment (ANSI extended symbol segment). Variable Name Specification Format BYTE 91 hex ANSI Extended Symbol Segment BYTE Length in BYTE Length of variable name in bytes Array of Variable name encoded in UTF-8...
Page 234
8 CIP Message Communications Specification Examples This example shows how to specify VarAA.MemB[1.2] for the following structure variable. struct UINT MemA; BOOL MemB[10][10]; } VarAA; Variable Name Specification Format BYTE 91 hex ANSI Extended Symbol Segment BYTE 05 hex Length of variable name in bytes Array of Variable name octet...
Page 235
8 CIP Message Communications Specification Example for Structure Members and Array Elements 0x91 0x05“VarAA”0x00 0x91 0x04“MemB” 0x28 0x01 0x28 0x02 VAR://VarAA.member[1][2] VarAA.memB[1.2] This example shows how to specify VarAA[1].MemB[1.2] for the following structure variable. struct UINT MemA; BOOL MemB[10][10]; } VarAA[3]; Variable Name Specification Format BYTE 91 hex...
8 CIP Message Communications CIP Object Services This section shows services that specify the CIP object in the Request Path and access the CIP mes- sage server function of the NY-series Controllers. 8-5-1 CIP Objects Sent to the Built-in EtherNet/IP Port The following CIP objects can be sent to an EtherNet/IP port.
Page 237
8 CIP Message Communications Class Attribute ID The class attribute ID specifies the attribute of the entire object. Read data Attribute ID Parameter name Description Attribute Data Value type 01 hex Revision Revision of the object Read UINT 0001 hex 02 hex Max Instance The maximum instance number...
Page 238
8 CIP Message Communications (3) Status Details of the Built-in EtherNet/IP Port Name Description Owned Indicates when the built-in EtherNet/IP port has an open connection as the target of a tag data link. Reserved Always FALSE. Configured Tag data link settings exist. Reserved Always FALSE.
Page 239
8 CIP Message Communications Request Paths (IOIs) to Specify Objects When you specify an object, specify the request path (IOI) for each service code as given below. Service code Class ID Instance ID Attribute ID 01 hex Get_Attribute_All 01 hex •...
8 CIP Message Communications 8-5-3 TCP/IP Interface Object (Class ID: F5 hex) This object is used to read and write settings such as the IP address, subnet mask, and default gate- way. Service Codes Specify the service to execute with the service code. Supported services Service Parameter name...
Page 241
8 CIP Message Communications Instance Attribute ID The instance attribute ID specifies the attribute of the instance. Read/write data Attribute ID Parameter name Description Attribute Data Value type 01 hex Interface Configuration Indicates the IP address settings Read DWORD Bits 0 to 3: Interface Configura- Status status of the interface.
Page 242
8 CIP Message Communications Request Paths (IOIs) to Specify Objects When you specify an object, specify the request path (IOI) for each service code as given below. Service code Class ID Instance ID Attribute ID 01 hex Get_Attribute_All F5 hex •...
8 CIP Message Communications 8-5-4 Ethernet Link Object (Class ID: F6 Hex) This object is used to set and read Ethernet communications and read Ethernet communications status information. Service Codes Specify the service to execute with the service code. Supported services Service Parameter name Description...
Page 244
8 CIP Message Communications Read/write data Attribute ID Parameter name Description Attribute Data Value type 03 hex Physical Address Gives the MAC address of the Read ARRAY Reads the current value of the interface. [0...5] OF MAC address. USINT 04 hex Interface Counters The number of packets Read...
Page 245
8 CIP Message Communications Read/write data Attribute ID Parameter name Description Attribute Data Value type 05 hex Media Counters Media counters for the communi- Read Struct cations port. Alignment Errors Number of frames received that UDINT Reads the current value. were not octets in length.
Page 246
8 CIP Message Communications Read/write data Attribute ID Parameter name Description Attribute Data Value type 0C hex HC Interface Counters The number of packets Read Struct sent/received through the HC interface. HCInOctets The number of octets received ULINT Reads the current value. through the interface.This counter is the 64-bit edition of In Octets.
Page 247
8 CIP Message Communications (1) Interface Flag Details Name Description LinkStatus FALSE: The link is down. TRUE: The link is up. Half/FullDuplex FALSE: Half duplex TRUE: Full duplex 2 to 4 Negotiation Status 00 hex: Auto-negotiation is in progress. 01 hex: Auto-negotiation and speed detection failed. 02 hex: Auto-negotiation failed, but speed detection succeeded.
8 CIP Message Communications 8-5-5 Controller Object (Class ID: C4 Hex) This object is used to get the status of the Controller or to change the operating mode of the Controller. Service Codes Specify the service to execute with the service code. Supported services Service Parameter name...
8 CIP Message Communications Read and Write Services for Variables This section shows services that specify the CIP object in the Request Path and access the CIP mes- sage server function of the NY-series Controllers. 8-6-1 Read Services for Variables Specify service code 4C hex to read the value of the variable that is specified by the request path.
Page 250
8 CIP Message Communications Response Codes Meaning Cause status status SUCCESS The service ended normally. RESOURCE_UNAVAILABLE The internal processing buffer is not avail- able. PATH_SEGMENT_ERROR The request path specification is not cor- rect. PATH_DESTINATION_UNKNOWN The variable specification is not correct. OBJECT_STATE_CONFLICT 8010 Downloading, starting up...
8 CIP Message Communications 8-6-2 Write Service for Variables Specify service code 4D hex to write the value of the variable that is specified by the request path. Request Data Format for Writing a Variable Request Path Data Variable name specification Request Service Data Data type of variable to write Data Type...
Page 252
8 CIP Message Communications Response Codes Meaning Cause status status SUCCESS The service ended normally. RESOURCE_UNAVAILABLE The internal processing buffer is not available. PATH_SEGMENT_ERROR The request path specification is not cor- rect. PATH_DESTINATION_UNKNOWN The link was followed to the end, but the variable was not found.
Union Vendor Specific * “CIP Common” indicates codes that are defined in the CIP Common Specifications. “Vendor Specific” indicates codes that are assigned by OMRON. 8-57 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
8 CIP Message Communications 8-7-2 Common Format The basic format on the data line is shown below. Data Format Refer to Data Type Codes on page 8-57 for specific values. USINT Data Type Additional information: Field length in bytes USINT AddInfo Length Additional information: CRC value of structure or other (AddInfo)
Page 255
8 CIP Message Communications Fixed-length 8-byte Data Applicable data types: LINT, ULINT, ULINT BCD, LREAL, and LWORD Data Format USINT Data Type USINT 00 hex UINT Num of Elem 01 hex 00 hex Data (Least-significant byte) (Most-significant byte) Boolean Data Data Format USINT Data Type...
8 CIP Message Communications 8-7-4 Derived Data Types Arrays and structures are handled as derived data types. Accessing One Member The data format for accessing one element of an array or one member of a structure is the same as the data format for the corresponding elementary data type.
Page 257
8 CIP Message Communications • Handling Multi-dimensional Array Elements for a multi-dimensional array are given in order from the deepest elements. For exam- ple, the data is read in the following format when Var is specified for a variable defined with UINT Var[2][2].
Page 258
8 CIP Message Communications 8-62 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Page 259
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 Socket Service Basic Knowledge on Socket Communications 9-1-1 Sockets A socket is an interface that allows you to directly use TCP or UDP functions from the user program. In a host computer (e.g., personal computer), sockets are provided in the form of a C language interface library.
9 Socket Service Basic Knowledge on Protocols 9-2-1 Differences between TCP and UDP The TCP and UDP functions used on socket services differ as shown below. TCP Communications The following operations are performed each time data is sent to ensure that it reaches the destination node.
Page 262
9 Socket Service TCP Communications Procedure You execute socket communications instructions in sequence to perform TCP communications for the built-in EtherNet/IP port. Client Server Socket Bind SktTCPAccept Instruction Listen Socket • Execution of Socket Functions Socket(), Bind(), Listen(), and SktTCPConnect Instruction Accept Connect Accept()
9 Socket Service 9-2-2 Fragmenting of Send Data The receive buffer for the built-in EtherNet/IP port is a maximum of 9,000 bytes per socket handle. If any data that is larger than 9,000 bytes is received, any data over 9,000 bytes is discarded. Up to 2,000 bytes can be received for a single request.
Page 264
9 Socket Service Using UDP The conditions shown in the following figure occur when data is sent in fragments in UDP communica- tions. (1) A send request is sent from the user program at the sending node. It specifies a vari- able with a data length of 2,000 bytes.
9 Socket Service 9-2-3 Data Reception Processing This section describes data reception processing for TCP and UDP. TCP Receive Processing With TCP communications, the receive data that is stored in the receive buffer can be separated and received. (The receive buffer holds up to 9,000 bytes.) This can be used to receive data that exceeds the size that can be received with one data request (2,000 bytes), i.e., more than one receive request is used to receive all of the data.
Page 266
9 Socket Service UDP Receive Processing With UDP communications, the receive data that is stored in the receive buffer cannot be separated and received. (The receive buffer holds up to 9,000 bytes.) Therefore, the data that is sent for each send request must be received with one receive request.
Page 267
9 Socket Service • When There Is Only One Receive Request for Data Sent for Multiple Send Requests You cannot use just one receive request to receive the data that was sent for multiple send requests, regardless of the size of the data. Example 2: Receive Request for 1,000 Bytes when 200 Bytes of Data Was Sent for Two Send Requests 1.
9 Socket Service 9-2-4 Broadcasting You can set the destination IP address to a broadcast address for a UDP socket to broadcast data to the host and all nodes on the same network as the EtherNet/IP port. If there is a router on the network, packets are not sent beyond the router.
9 Socket Service Overview of Built-in EtherNet/IP Port Socket Services 9-3-1 Overview Socket services on the built-in EtherNet/IP port are used to exchange data between Controllers and general-purpose applications that do not support CIP message communications. The Controller requests the socket service from the user program. General purpose (non-CIP communications) application Intranet At the host, system calls of sockets, e.g.,...
9 Socket Service Settings Required for the Socket Services Make the following settings in the Unit Setup to use the socket services. Sysmac Studio Unit Settings Tab Setting Setting conditions Page Setting Local IP Address Required Subnet Mask Required TCP/IP Keep Alive Optional (Change when the default setting of 5 minutes is unacceptable.) Linger Option...
9 Socket Service Socket Service Instructions You can use the following socket service instructions for socket services use. Refer to the NY-series Instructions Reference Manual (Cat. No. W560) for information on the socket service instructions. UDP/TCP Instruction Socket service UDP sockets SktUDPCreate Create UDP Socket instruction SktUDPRcv...
9 Socket Service Details on Using the Socket Services 9-6-1 Using the Socket Services The built-in EtherNet/IP port has the total number of sockets for TCP and UDP that is given in the fol- lowing table. Number of sockets UDP/TCP NY-series Controller UDP socket service Total of 30 sockets...
9 Socket Service 9-6-2 Procedure to Use Socket Services You execute special instructions for sockets in sequence to use the socket services according to the procedure shown below. Use the values of the output variables for each instruction to confirm that each instruction is completed normally.
Page 274
9 Socket Service Open Processing Execute SktUDPCreate instruction. Error End Check error details based on Output variable: Error = TRUE the error code and take Instruction end normally? suitable actions. Output variable: ErrorID Normal End Output variable: Done = TRUE Send Processing Execute SktUDPSend instruction.
9 Socket Service 9-6-3 Timing Chart for Output Variables Used in Communications Output Variable Operation and Timing You can monitor the values of the output variables to determine the status throughout instruction execu- tion. The following timing chart shows the operation of the output variables. Execute Busy (Executing)
Page 276
9 Socket Service Precautions for Correct Use Precautions for Correct Use If Execute changes back to FALSE before Done changes to TRUE, Done stays TRUE for only one task period. (Example 1) If you want to see if Done is TRUE at any time, make sure to keep Execute TRUE until you con- firm that Done is TRUE.
9 Socket Service 9-6-4 UDP Sample Programming In this sample, the UDP socket service is used for data communications between the NY-series Con- troller and a remote node. IP address: 192.168.250.2 IP address: 192.168.250.1 UDP port number: 6001 UDP port number: 6000 Data sent.
Page 279
9 Socket Service // Request receiving data. SktUDPRcv_instance( Execute :=TRUE, Socket :=WkSocket, // Socket TimeOut :=UINT#0, // Timeout value Size :=UINT#2000, // Receive data size RcvDat :=RcvSocketDat[0]); // Receive data IF (SktUDPRcv_instance.Done=TRUE) THEN Stage :=INT#4; // Normal end ELSIF (SktUDPRcv_instance.Error=TRUE) THEN Stage :=INT#30;...
Page 280
9 Socket Service Internal Variable Data type Initial value Comment Variables Trigger BOOL False Execution condition DoSendAndRcv BOOL False Processing Stage Status change RcvSocketDat ARRAY[0..1999] OF [2000(16#0)] Receive data BYTE WkSocket _sSOCKET (Handle:=0, Socket SrcAdr:=(PortNo:=0, IpAdr:=’’), DstAdr:=(PortNo:=0, IpAdr:=’’)) SendSocketDat ARRAY[0..1999] OF [2000(16#0)] Send data BYTE...
Page 281
9 Socket Service // Request receiving data. SktUDPRcv_instance( Execute :=TRUE, Socket :=WkSocket, // Socket TimeOut :=UINT#0, // Timeout value Size :=UINT#2000, // Receive data size RcvDat :=RcvSocketDat[0]); // Receive data IF (SktUDPRcv_instance.Done=TRUE) THEN Stage :=INT#3; // Normal end ELSIF (SktUDPRcv_instance.Error=TRUE) THEN Stage :=INT#20;...
9 Socket Service 9-6-5 TCP Sample Programming In this sample, the TCP socket service is used for data communications between the NY-series Control- ler and a remote node. IP address: 192.168.250.2 TCP port number: 6000 IP address: 192.168.250.1 TCP port number: Automatically assigned. Data sent.
Page 283
9 Socket Service // Start sequence when Trigger changes to TRUE. IF ((Trigger=TRUE) AND (DoTCP=FALSE) AND (_EIP_EtnOnlineSta=TRUE)) THEN DoTCP :=TRUE; Stage :=INT#1; SktTCPConnect_instance(Execute:=FALSE); // Initialize instance. SktClearBuf_instance(Execute:=FALSE); // Initialize instance. SktGetTCPStatus_instance(Execute:=FALSE); // Initialize instance. SktTCPSend_instance( // Initialize instance. Execute :=FALSE, SendDat :=SendSocketDat[0]);...
Page 284
9 Socket Service // Request reading status. SktGetTCPStatus_instance( Execute :=TRUE, Socket :=WkSocket); // Socket IF (SktGetTCPStatus_instance.Done=TRUE) THEN Stage :=INT#4; // Normal end ELSIF (SktGetTCPStatus_instance.Error=TRUE) THEN Stage :=INT#30; // Error end END_IF; // Send request SktTCPSend_instance( Execute :=TRUE, Socket :=WkSocket, // Socket SendDat :=SendSocketDat[0], // Send data...
Page 285
9 Socket Service // Normal end DoTCP :=FALSE; Trigger :=FALSE; ELSE // Interrupted by error. DoTCP :=FALSE; Trigger :=FALSE; END_CASE; END_IF; Remote Node Programming In this example, programming is also required in the remote node. The order of sending and receiv- ing is reversed in comparison with the above procedure.
Page 286
9 Socket Service // Start sequence when Trigger changes to TRUE. IF ((Trigger=TRUE) AND (DoTCP=FALSE) AND (_EIP_EtnOnlineSta=TRUE)) THEN DoTCP :=TRUE; Stage :=INT#1; SktTCPAccept_instance(Execute:=FALSE); // Initialize instance. SktTCPSend_instance( // Initialize instance. Execute :=FALSE, SendDat :=SendSocketDat[0]); // Dummy SktTCPRcv_instance( // Initialize instance. Execute :=FALSE, RcvDat...
Page 287
9 Socket Service // Send request SendSocketDat:=RcvSocketDat; SktTCPSend_instance( Execute :=TRUE, Socket :=WkSocket, // Socket SendDat :=SendSocketDat[0], // Send data Size :=UINT#2000); // Send data size IF (SktTCPSend_instance.Done=TRUE) THEN Stage :=INT#4; // Normal end ELSIF (SktTCPSend_instance.Error=TRUE) THEN Stage :=INT#30; // Error end END_IF;...
9 Socket Service Precautions in Using Socket Services 9-7-1 Precautions for UDP and TCP Socket Services • Communications processing are sometimes delayed when multiple functions of the built-in Ether- Net/IP port are used simultaneously or due to the contents of the user program. •...
Page 289
9 Socket Service • For TCP sockets, the send data is resent up to 12 times if an acknowledgment (ACK) from the remote node is not received. The resend interval increases to between one second and 64 seconds for each resend. •...
Page 290
9 Socket Service 9-32 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
10 FTP Server 10-1 Overview and Specifications 10-1-1 Overview The built-in EtherNet/IP port contains an FTP (file transfer protocol) server. You can therefore send FTP commands from an FTP client software application on a computer on an Ethernet network to upload and download large files on the Virtual SD Memory Card.
10 FTP Server 10-1-2 Specifications Item Specification Executable commands open: Connects the specified host FTP server. user: Specifies the user name for the remote FTP server. ls: Displays file names in the remote host. mls: Displays file names in the remote host. dir: Displays file names and details in the remote host.
10 FTP Server 10-2 FTP Server Function Details 10-2-1 Supported Files The file system in the Controller that can be accessed by the built-in EtherNet/IP port includes files in any Virtual SD Memory Card in the NY-series Controller. The directory tree is shown below. /: root MEMCARD1: SD Used by system...
Page 295
10 FTP Server Restrictions on Login Name and Password Setting The following restrictions apply to login names and passwords. • Only single-byte alphanumeric characters can be used in the login name and password. The login name and password are case sensitive. •...
Page 296
10 FTP Server Restrictions on Connection to FTP Server If you repeat connection to and disconnection from the FTP server frequently in a short period of time, your access may be restricted temporarily to protect the system. If you cannot connect to the FTP server, wait for 10 minutes and try again.
10 FTP Server 10-3 Using the FTP Server Function 10-3-1 Procedure Make the basic settings. Refer to 1-5 EtherNet/IP Communications Procedures for basic operations. Set up the FTP server on the Sysmac Studio. (Refer to 5-3 FTP Display.) Select Built-in EtherNet/IP Port Settings under Configuration - Controller Setup on the Sys- mac Studio.
10 FTP Server 10-4 FTP Server Application Example An example application of the FTP server when the login name is “user1” and the password is “pass- word” is shown below. Additional Information When a general-purpose FTP application is used, you can use a graphical user interface similar to Explorer to transfer and read files.
Page 299
10 FTP Server Enter FTP commands (underlined in the following diagram) to read and write files. The following directory tree is used in this example. / (root directory) MEMCARD1 (subdirectory) DEF.BIN (file) ftp>ls File names read. 200 PORT command successful. 150 Opening ASCII mode data connection for ‘file list’...
10 FTP Server 10-5 Using FTP Commands This section describes the FTP commands which the host computer (FTP client) can send to the FTP server of the built-in EtherNet/IP port. The descriptions should also apply to most workstations, but slight differences may arise. Refer to your workstation’s operation manuals for details. 10-5-1 Table of Commands The FTP commands which can be sent to the built-in EtherNet/ IP port are listed in the following table.
10 FTP Server 10-5-2 Using the Commands open Format open [IP_address or host_name_of_FTP_server] Function Connects the FTP server. Normally when the FTP client is booted, the FTP server IP address is specified to execute this command automatically. user ...
Page 302
10 FTP Server Format dir [remote_file_name [local_file_name]] Function • Displays the names, creation dates, and sizes of files on the remote host (on the Virtual SD Mem- ory Card). • It displays the same information as command [ls -l]. •...
Page 303
10 FTP Server rmdir Format rmdir directory_name Function • Deletes the directory with the specified name from the remote host (from the Virtual SD Memory Card). • The directory must be empty to delete it. • An error will occur if the specified directory does not exist or is not empty. ...
Page 304
10 FTP Server Function • Specifies the file data type. • The following data types are supported: ascii: Files are transferred as ASCII data. binary (image): Files are transferred as binary data. The Controller handles binary files. Use the type command to specify binary transfers before you upload or download files.
Page 305
10 FTP Server • Any existing file with the same name in the remote host (on the Virtual SD Memory Card) is over- written by the contents of the transferred file. delete Format delete file_name Function • Deletes the specified remote file (on the Virtual SD Memory Card). mdelete ...
10 FTP Server 10-6 Using SD Memory Card Operations The built-in EtherNet/IP port can be used to upload and download the following data between the Vir- tual SD Memory Card in the NY-series Controller and the FTP server. • Variables files (binary format) The following three methods are used by the Controller to store and read data on the Virtual SD Mem- ory Card.
10 FTP Server File Names Handled by Controller The files described in the following table can be read or written by the Controller. File type File names Extension Contents Description Variables file (binary Refer to .bin Specified variables This variables file contains the val- format) 10-6-1 File ues of specified variables (which...
10 FTP Server 10-7 Application Example from a Host Computer The following procedure provides an example of FTP operations from a host computer. In this example, the following assumptions are made. • The IP address of the built-in EtherNet/IP port is registered in the hosts as host name [nj]. •...
Page 309
10 FTP Server Read the file RESULT.BIN and transfer it to the workstation. ftp> get RESULT.BIN Read file. 200 PORT command successful. 150 opening data connection for result.bin (**IPaddress**port#**) (**bytes). 226 Transfer complete. ** bytes received in *.*** seconds (**bytes/s) ftp>...
Page 310
10 FTP Server 10-20 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Page 311
FTP Client 11-1 Using the FTP Client to Transfer Files ......11-2 11-1-1 Transferring Files .
11 FTP Client 11-1 Using the FTP Client to Transfer Files You can use the FTP client to transfer files between the FTP client and an FTP server. You can transfer files in either direction: download data from the FTP server to the FTP client or upload data from the FTP client to the FTP server.
11 FTP Client • FTP server in a built-in EtherNet/IP port on NJ/NX-series Controller • CJ-series EtherNet/IP Unit with unit version 2.0 or later • CJ-series CJ2 CPU Unit with Built-in EtherNet/IP • CJ-series CJ1M CPU Unit with Ethernet Functions •...
11 FTP Client Overwriting You can specify whether to overwrite a file of the same name at the file transfer destination. If you specify not overwriting files and a file of the same name as the transferred file exists at the transfer destination, the source file is not transferred.
11 FTP Client 11-2 FTP Client Communications Instructions All file transfers that use the FTP client are executed with FTP client communications instructions. The FTP client communications instructions and their functions are given in the following table. Instruction Function FTPGetFileList Gets a file list from the FTP server.
Page 316
11 FTP Client Additional Information The updated dates of files at 12 am and 12 pm are improved in the CPU Unit with unit version 1.14 or later. FTPGetFile Instruction The FTPGetFile instruction downloads the specified file from the specified directory on the FTP server to the specified directory in the Virtual SD Memory Card.
11 FTP Client FTP server Ethernet Uploading One or more files Virtual SD Memory Card FTP client FTPRemoveFile Instruction The FTPRemoveFile instruction deletes the specified file in the specified directory on the FTP server. You can use wildcards to specify the file name to allow you to delete more than one file at the same time.
Page 318
11 FTP Client • If you execute more than one FTP client communications instruction to read and write data in a Vir- tual SD Memory Card at a time, unexpected operation may result, such as reading data from a file to which data is being written.
11 FTP Client 11-3 FTP Client Application Example All FTP client functionality is executed with FTP client communications instructions. This section pro- vides sample programming that uses the FTP client communications instructions. This programming executes an SD Memory Card backup and then uploads all of the backup-related files to the /Backup/yyyy-mm-dd directory on the FTP server.
Page 320
11 FTP Client Internal Vari- Variable Data type Initial value Comment ables FTPPutFile_in- Instance of FTPPutFile FTPPutFile stance instruction _sFTP_CON- (Adr := '', PortNo := 0, User- Connected FTP server FTPAddr NECT_SVR Name := '', Password := '') settings ARRAY[0..0] OF [(Name := '', TxError := False, PutResult _sFTP_FILE_RE-...
12 SNMP Agent 12-1 SNMP Agent The SNMP (simple network management protocol) is a network management protocol. You can use the SNMP to manage any network that consists of devices that support SNMP. The server that manages the network is called the SNMP manager. The managed network devices are called SNMP agents. EtherNet/IP devices are monitored.
12 SNMP Agent SNMP Traps When a failure or some other specific problem occurs, a status report called a trap is sent. This enables monitoring changes in status even if the SNMP manager does not monitor the built-in EtherNet/IP port periodically.
12 SNMP Agent 12-1-4 MIB Specifications This section describes the specifications of the MIB that is supported by the built-in EtherNet/IP port. MIB System Diagram The built-in EtherNet/IP port MIB consists of the following tree structure. root iso (1) org (3) dod (6) internet (1) mgmt (2)
Page 329
Subtree name Standard [(identifier) attribute] Support Implementation specifications sysDescr (1) RO Sup- “OMRON Corporation” + CPU ported. Unit model + CPU Unit version Device information (including hardware, OS, software names, and versions) • CPU Unit model (example): ASCII characters only.
Page 330
12 SNMP Agent Interfaces Group Implementation Subtree name Standard [(identifier) attribute] Support specifications ifNumber (1) RO Sup- ported. The number of network interfaces. ifTable (2) NA Interface entity table ifEntry (1) NA Row data for interface information The index is ifIndex. ifIndex (1) RO Sup-...
Page 331
12 SNMP Agent Implementation Subtree name Standard [(identifier) attribute] Support specifications ifLastChange (9) RO Sup- According to the ported. standard. The sysUpTime (in 0.01seconds) at the last change in ifOperStatus for this interface. ifInOctets (10) RO Sup- According to the ported.
Page 332
12 SNMP Agent Implementation Subtree name Standard [(identifier) attribute] Support specifications ifSpecific (22) RO Sup- ported. The object ID that represents a reference to the media-specific MIB for the interface. For example, for Ethernet, set the object ID of the MIB that defines Ethernet.
Page 333
12 SNMP Agent Ip Group: Ip Implementation Subtree name Standard [(identifier) attribute] Support specifications ipForwarding (1) RW Sup- • Forwarding (1) Indicates if the device operates as a gateway. IP ported. • Not-forwarding (2) gateways can transfer datagrams, but IP hosts Depends on the set- can perform only source routing.
Page 334
12 SNMP Agent Implementation Subtree name Standard [(identifier) attribute] Support specifications ipOutNoRoutes (12) RO Sup- According to the ported. standard. The number of IP datagrams that were discarded because there was no transmission path. This counter includes datagrams that attempted to be sent through ipForwDatagrams, but were dis- carded because they were set with no-route.
Page 335
12 SNMP Agent Implementation Subtree name Standard [(identifier) attribute] Support specifications ipAdEn- (5) RO Sup- According to the tReasmMax- ported. standard. The maximum IP packet size that can be reas- Size sembled from IP fragmented input IP datagrams received through the interface. ipRouteTable (21) NA The IP routing table for this entity.
Page 336
12 SNMP Agent Implementation Subtree name Standard [(identifier) attribute] Support specifications ipRouteProto (9) RO Sup- According to the ported. standard. This is the routing mechanism used to determine routes. Some values correspond to gateway rout- ing protocols, but be aware that the host may not support those protocols.
Page 337
12 SNMP Agent Implementation Subtree name Standard [(identifier) attribute] Support specifications ipNetToMediaTable (22) NA The IP address conversion table used to map IP addresses to physical addresses. ipNetToMediaEntry (1) NA Row data for the conversion table. The indices are ipNetToMediaIfIndex and ipNetToMediaNetAd- dress.
Page 338
12 SNMP Agent Ip Group: Icmp Implementation Name Standard [(identifier) attribute] Support specifications icmpInMsgs (1) RO Sup- According to the ported. standard. The total number of received ICMP messages. This includes messages counted by icmpInErrors. icmpInErrors (2) RO Sup- According to the ported.
Page 339
12 SNMP Agent Implementation Name Standard [(identifier) attribute] Support specifications icmpOutRedirects (20) RO Sup- According to the ported. standard. The number of Redirect messages sent. icmpOutEchos (21) RO Sup- According to the ported. standard. The number of Echo (request) messages sent. icmpOutEchoReps (22) RO Sup-...
Page 340
12 SNMP Agent Ip Group: Tcp Implementation Name Standard [(identifier) attribute] Support specifications tcpRtoAlgorithm (1) RO Sup- According to the ported. standard. The algorithm used to determine the timeout value for resending. Other (1): Other than the following items. Constant (2): A constant RTO value.
Page 341
12 SNMP Agent Implementation Name Standard [(identifier) attribute] Support specifications tcpConnTable (13) NA According to the standard. The information table specific to the TCP connec- tion. tcpConnEntry (1) NA According to the standard. Entry information related to a specific TCP con- nection.
Page 342
12 SNMP Agent Ip Group: Udp Implementation Name Standard [(identifier) attribute] Support specifications udpInDatagrams (1) RO Sup- According to the stan- ported. dard. The total number of UDP datagrams (i.e., the number of packets) sent to the UDP user. udpNoPorts (2) RO Sup-...
Page 343
12 SNMP Agent Standard [(identi- Name fier) attribute] snmpInNoSuchNames (9) RO Sup- According to the ported. standard. The total number of PDUs received with an error status of noSuchName. snmpInBadValues (10) RO Sup- According to the ported. standard. The total number of PDUs received with an error status of badValue.
Page 344
12 SNMP Agent Standard [(identi- Name fier) attribute] snmpEnableAuthen (30) RW Sup- According to the Traps ported. standard. Determines if the agent generates verification failed traps. Enabled (1) Disabled (2) 12-20 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
12 SNMP Agent 12-2 Procedure to Use the SNMP Agent 12-2-1 Procedures Make the basic settings. Refer to 1-5 EtherNet/IP Communications Procedures for the flow of basic operations. Select Built-in EtherNet/IP Port Settings from the Controller Setup on the Sysmac Studio, and then set the following on the SNMP Settings Display or SNMP Trap Settings Display.
Page 346
12 SNMP Agent Tab page Setting Setting conditions Reference SNMP Trap Settings SNMP trap Required. page 5-10 Port No. Specified by user. Note Required to change from the default value of 162. Trap 1 and trap 2 page 5-11 IP address Required.
13 Communications Performance and Communications Load 13-1 Communications System 13-1-1 Tag Data Link Communications Method Requested Packet Interval (RPI) Settings In tag data links for the built-in EtherNet/IP port, the data transmission period is set for each connection as the RPI. The target device will send data (i.e., output tags) once each RPI, regardless of the number of nodes.
Page 349
13 Communications Performance and Communications Load Requested Packet Interval (RPI) and Bandwidth Usage (PPS) The number of packets transferred each second is called the used bandwidth or PPS (packets per sec- ond). The PPS is calculated from the RPI and heartbeat as follows for each connection: PPS used in a connection (pps) = (1,000 ÷...
13 Communications Performance and Communications Load 13-1-2 Calculating the Number of Connections The maximum number of connections for the built-in EtherNet/IP port for each series is as follows: • NY-series Controller: 128 The number of connections must be set to the above numbers or less combining both connections that the Unit opens as the originator and connections that are opened from an originator with the Unit as the target.
13 Communications Performance and Communications Load 13-1-3 Packet Interval (RPI) Accuracy The send processing delay occurs in the built-in EtherNet/IP port when data packets are sent once each packet interval (RPI). This delay varies with the RPI error shown in the following graph, so the send processing delay time is the maximum value for each RPI.
13 Communications Performance and Communications Load 13-2 Adjusting the Communications Load In an Ethernet network using an Ethernet switch, the network bandwidth is not shared by all of the nodes; independent transmission paths are established between individual nodes through the Ethernet switch.
13 Communications Performance and Communications Load 13-2-1 Checking Bandwidth Usage for Tag Data Links The Network Configurator can display the bandwidth actually used for tag data links at each built-in Eth- erNet/IP port, based on the connections set in the network configuration. The device bandwidth used by tag data links can be checked by clicking the Detail Button in the Usage of Device Bandwidth Area at the bottom of the Network Configuration Window.
13 Communications Performance and Communications Load Checking the Usage of Capacity and Network Bandwidth for Tag Data Links The percentage of the allowable communications bandwidth for tag data links for each built-in Ether- Net/IP port is displayed as the Usage of Capacity and the bandwidth used for tag data link commu- nications in the entire network is displayed as the Mbit/s.
13 Communications Performance and Communications Load 13-2-3 Adjusting Device Bandwidth Usage This paragraph provides the method to adjust the device bandwidth usage for tag data links. Precautions for Correct Use Precautions for Correct Use Ethernet switch must be corresponding to the maximum values of the network bandwidth, which can be set to Controller.
13 Communications Performance and Communications Load 13-2-4 Changing the RPI You can check the usage of capacity offline without multicast filtering against the tag data link’s allow- able bandwidth by following the procedures in 13-2-1 Checking Bandwidth Usage for Tag Data Links. The usage of capacity without multicast filtering can be adjusted against the tag data link’s allowable bandwidth by changing the packet interval (RPI).
Page 357
13 Communications Performance and Communications Load The usage of capacity without multicast filtering can be adjusted against the tag data link’s allowable bandwidth by changing the associated devices’ packet interval (RPI) settings. The RPI settings can be changed with the following three methods. Method 1: Change All Connections to the Same RPI The usage of capacity without a multicast filter can be adjusted for all devices by changing the...
Page 358
13 Communications Performance and Communications Load Method 2: Change a Particular Device’s Packet Interval (RPI) Setting: The usage of capacity without multicast filtering can be adjusted for only a particular device against the tag data link’s allowable bandwidth by changing the packet intervals (RPI) settings for all of the device’s connections together.
Page 359
13 Communications Performance and Communications Load Method 3: Changing a Particular Connection’s Packet Interval (RPI) Setting: The usage of capacity without multicast filtering can be adjusted against the tag data link’s allowable bandwidth by individually changing the packet interval (RPI) for a particular connec- tion.
Page 360
13 Communications Performance and Communications Load (3) In the Register Device List, select the connection for which you want to change the RPI, and click the Edit Button. (4) The device’s Edit Connection Dialog Box will be displayed. Input a new packet inter- val (RPI) value, and click the OK Button.
Page 361
13 Communications Performance and Communications Load If the usage of capacity cannot be adjusted to the desired level when the setting described above has been performed, reconsider the network configuration considering the following points. Refer to 13-2-3 Adjusting Device Bandwidth Usage. •...
13 Communications Performance and Communications Load 13-2-5 RPI Setting Examples The following examples explain how to calculate the packet intervals (RPIs) in the following network configuration. Conditions • Connections: Example:Seventeen NJ501-1300 Units are connected to the network. Each device has one 100-word tag for transmission and sixteen 100-word tags for recep- tion, so that the Units exchange data mutually.
Page 363
13 Communications Performance and Communications Load Checking the Device Bandwidth Usage When the Detail Button is clicked in the Usage of Device Bandwidth Area, it is apparent that the per- centage of the allowed tag data link bandwidth being used by each device’s tag data link (Usage of Capacity) is 40.83%, as shown in the following dialog box.
Page 364
13 Communications Performance and Communications Load Method 2: Changing the Packet Interval (RPI) of Only Specific Devices In this example, we want faster tag data links for devices 192.168.250.1 and 192.168.250.10 only. To do this, click the Set Packet Interval (RPI) Button at the bottom of the Usage of Device Band- width Dialog Box.
Page 365
13 Communications Performance and Communications Load In this case, if there is no multicast filter, the value becomes 100.33%. If there is no multicast filter for an Ethernet switch, communications errors may occur depending on the communications load of the built-in EtherNet/ IP Unit port.
Page 366
13 Communications Performance and Communications Load In the Edit Connection Dialog Box, input 10 ms as the new RPI value, and click the OK Button. The tag data link bandwidth used by device 192.168.250.1 (Usage of Capacity) increases to 50.17%, which indicates that a RPI is set to a higher speed for this device.
13 Communications Performance and Communications Load 13-3 I/O Response Time in Tag Data Links Additional Information This section describes the response time of the NY-series Controller built-in Ethernet/IP port. The data processing times for the EtherNet/IP Unit, the built-in EtherNet/IP port on the NX- and NJ-series Controller, the built-in EtherNet/IP port on the CJ2H-CPU6-EIP CPU Unit and the built-in EtherNet/IP port on the CJ2M-CPU3...
13 Communications Performance and Communications Load 13-3-2 Built-in EtherNet/IP Port Data Processing Time This section describes the data processing time required to transfer data between the built-in Ether- Net/IP port and the Controller. Data Processing Time Overview The time required for data processing consists of the following three elements. 1.
Page 369
13 Communications Performance and Communications Load Data Processing Time Calculation Example Here we provide an example of how to perform the tag data link calculations described earlier for the following tag data transfers. • Model Numbers of Controllers for Tag Data Links NY52-...
13 Communications Performance and Communications Load 13-3-3 Relationship between Task Periods and Packet Intervals (RPIs) Effect of Tag Data Links on Task Periods The tag data is transferred during task processing. Therefore, the tag data transfer process is added to the task processing for tasks set as a tag’s refreshing task.
13 Communications Performance and Communications Load 13-3-4 Maximum Tag Data Link I/O Response Time You can find the maximum I/O response time from the total of (1) to (6) in the following figure. I/O refreshing User program execution Motion control Data link processing (system common processing 2) Tag data link I/O response time...
Page 372
13 Communications Performance and Communications Load (4) Network Transmission Delay Time The transmission delay on an Ethernet line is 50 μs or less. This delay time can be ignored. (5) Receive Data Processing Time This is the time required to transfer data received on the built-in EtherNet/IP port to a variable in the Controller.
13 Communications Performance and Communications Load 13-4 Message Service Transmission Delay This section describes the delay time that occurs in CIP communications instruction (CIPWrite) service processing. Instruction (CIPWrite) executed. Instruction completed. IO UPG MC OI UPG MC OI UPG MC OI UPG MC Controller#1 Command generated.
Page 374
13 Communications Performance and Communications Load Additional Information • Depending on the actual operating environment, the transmission time may be longer than the one calculated with the equations given here. The following factors can cause longer transmis- sion times: other traffic on the network, window sizes of network nodes, other traffic at the built-in EtherNet/ IP port itself (e.g., simultaneous tag data link communications), and the sys- tem configuration.
Checking Communications Status of Network and Troubleshooting This section describes how to use the Network Configurator to check the communica- tions status on the EtherNet/IP network, and how to identify and correct errors based on the connection status of tag data links. 14-1 Device Monitoring on the Network Configurator .
14 Checking Communications Status of Network and Troubleshooting 14-1 Device Monitoring on the Network Configurator This section describes how to start the device monitoring and status to display on the Network Configu- rator. 14-1-1 Starting the Device Monitoring Connect the Network Configurator online, select the device to be checked, right-click to display the pop-up menu, and select Monitor.
Page 377
14 Checking Communications Status of Network and Troubleshooting Classification Item Corresponding system-defined variable Data Link Status Comparison Error The remote node information in the tag data link parameters was different from the actual node information. Main causes:• The specified target does not exist. •The variable name does not match.
Page 378
14 Checking Communications Status of Network and Troubleshooting Status 2 Tab Page This tab page displays information on nodes with tag data link originator settings based on _EIP_TargetPLCModeSta (Target PLC Operating Mode) and _EIP_TargetPLCErr (Target PLC Error Information) in the _EIP_EstbTargetSta (Normal Target Node Information) system-defined variable. This information is in blue if the connection is normal, or red if an error occurred.
Page 379
14 Checking Communications Status of Network and Troubleshooting Connection Tab Page Information about the target node that acts as the originator is displayed. If all tag data link connec- tions to the node are established and normal, this information is displayed in blue. However, if any connection is broken it is displayed in red.
Page 380
14 Checking Communications Status of Network and Troubleshooting Controller Log Tab Page This tab page displays the Controller event log that is stored in the Controller. The error history shows errors that have occurred. It can be saved in a file in the computer. Refer to the operation manual of the Controller for details on error information.
Page 381
14 Checking Communications Status of Network and Troubleshooting Tag Status Tab Page This tab page displays if the tag settings for each tag for tag data links are set so that data can be exchanged with the Controller. The following status is displayed depending on the status that is set. •...
Page 382
14 Checking Communications Status of Network and Troubleshooting Ethernet Information Tab Page This tab page displays the communications status at the communications driver level of the built-in Ethernet/IP port. The error counter information can be used to confirm whether communications problems have occurred.
14 Checking Communications Status of Network and Troubleshooting 14-2 Connection Status Codes and Troubleshooting This section explains how to identify and correct errors based on the tag data link’s connection status. The connection status can be read using the Connection Tab Page of the Network Configurator’s Mon- itor Device Window.
Page 384
14 Checking Communications Status of Network and Troubleshooting Connection status Handling General Additional Source of error Status Status Configuration 1 Configuration 2 Configuration 3 (hex) (hex) 0108 Error code returned from target: This error does not Check which connec- Check which connec- Attempted to open a connection with occur.
Page 385
14 Checking Communications Status of Network and Troubleshooting Connection status Handling General Additional Source of error Status Status Configuration 1 Configuration 2 Configuration 3 (hex) (hex) 011A Error code generated by originator: Unexpected network Unexpected network Depends on the tar- Connection could not be established traffic may have traffic may have been...
Page 386
(Contact the originator depends on the target’s device’s manufacturer.) specifications. (Con- tact the target device’s manufacturer.) OMRON error code 0810 Error code returned from target: This error may occur The meaning of this The meaning of this New data could not be obtained from if the Controller’s...
Appendices A-1 Functional Comparison of the EtherNet/IP Port with Other Series ..A-2 A-2 Use the Sysmac Studio to Set the Tag Data Links (EtherNet/IP Connections) ........A-3 A-2-1 Overview of the Tag Data Links (EtherNet/IP Connections) Settings with the Sysmac Studio .
Appendices Functional Comparison of the EtherNet/IP Port with Other Series OK: Supported., ---: Not supported. Built-in Built-in Built-in EtherNet/IP Unit (built-in port Ether- Ether- Ether- on CJ2 CPU Unit) Net/IP Net/IP Net/IP port on port on port on series Item Unit Unit Unit...
Appendices Use the Sysmac Studio to Set the Tag Data Links (EtherNet/IP Connections) A-2-1 Overview of the Tag Data Links (EtherNet/IP Connections) Settings with the Sysmac Studio You can use the Sysmac Studio to set the settings required for creating tag data links (EtherNet/IP con- nections) between NY-series Controllers.
Appendices Use the Network Configurator if a CS-/CJ-series PLC operates as the originator device. Settings for the originator device Settings for the target device CS-/CJ-series PLC NY-series Controller Setting only with the Network Configurator is possible. A-2-2 Procedure to Make the EtherNet/IP Connection Settings with the Sysmac Studio •...
Appendices A-2-3 EtherNet/IP Connection Settings This section describes the screen configuration for EtherNet/IP connection settings. Screen Transitions in the EtherNet/IP Connection Settings • Connection Settings Select EtherNet/IP Connection Settings from the Tools Menu. EtherNet/IP Device List Tab Page Double-click or right-click the EtherNet/IP Connection Settings (Tag Set Display) device to set and select Edit from the menu.
Page 392
Appendices EtherNet/IP Device List Tab Page (Refer to Registering the Tag and Tag Set on page A-13.) The list indicates the devices to which EtherNet/IP connections can be set. NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Page 393
Appendices EtherNet/IP Connection Settings (Tag Set Display) (Refer to Registering the Tag and Tag Set on page A-13.) Register tag sets required to create connections. Each tag set represents the data that is sent and received through a connection. You can register up to eight tags in one tag set. The name and size of the tag must be the same as those of the network variable Set whether to include the Controller status information in tags for the tag sets.
Page 394
Appendices EtherNet/IP Connection Settings (Connection Display) (Refer to Setting Connections for the Originator Device on page A-16.) Specify the target devices and set their connections. For each connection, set the following information: Connection Name, Connection I/O Type, I/O, tar- get device tag set (target variable), originator device tag set (originator variable), Packet Interval (RPI), and Timeout Value.
Page 395
Appendices EtherNet/IP Connection Monitor Tab Page (Refer to A-2-5 Checking Communications Status with the Sysmac Studio and Troubleshooting on page A-33.) You can check the EtherNet/IP connection setting status offline and communications status online. When online, you can start and stop connections. NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Appendices A-2-4 Making the EtherNet/IP Connection Settings with the Sysmac Studio This section describes the procedure to make the EtherNet/IP connection settings with the Sysmac Stu- dio. Here, we take the following system configuration as an example to describe how to set the EtherNet/IP connection settings.
Appendices Follow the flow below to set the settings to Controllers 1 and 2 for which to establish EtherNet/IP con- nections. The required settings for the originator device and the target device are shown below. Settings for the originator device (Controller 1) Settings for the target device (Controller 2) Registering the network variable Registering the network variable...
Page 398
Appendices Network Variables Used for the EtherNet/IP Connections • Network variable name You cannot specify an I/O memory address for a tag name in the EtherNet/IP connection settings. Thus, do not specify an I/O memory address for the network variable name that is to be assigned to a tag.
Page 399
Appendices Registering the Tag and Tag Set Register the required tag and tag set for the EtherNet/IP connections. You can register tags and tag sets in the EtherNet/IP Connection Setting Tab Page. Precautions for Correct Use Precautions for Correct Use Make the following settings to refresh all of the tag data in the same tag set at the same time.
Page 400
Appendices Precautions for Correct Use Precautions for Correct Use Any name can be specified for the tag set if the name matches one of the registered network variable names in the Controller. As you enter characters (or immediately after you press the Ctrl + Space Keys), the Sysmac Stu- dio Entry Assistance provides a list of variable names registered in the Controller.
Page 401
Appendices (3) The automatically registered tag is added to the list in the EtherNet/IP Connection Setting Tab Page. With automatic registration, the tag is registered under a tag set having the same name as the tag, i.e., a single tag is registered in a single tag set. Tag set name Tag name Set the following settings for the registered tag and tag set.
Page 402
Appendices Setting Connections for the Originator Device After the tag set registration, set the connection settings for transferring data using the EtherNet/IP con- nections. Make the connection settings in the originator device (i.e., Controller 1 in this example) only. Register the tag and tag set for Controller 2 (Target device) before setting the connection settings as described in this example.
Page 403
Appendices Drag the target device tag set Net_Out1 in the Variable Name column of the Toolbox to the con- nection list. As you enter characters (or immediately after you press the Ctrl + Space Keys), a list of target device variables that can be set for the connection is provided. Select the value from the list. Drag Specify Originator Variable and its Size [Byte] for the tag set Net_Out1 added in step 5.
Page 404
Appendices Name Setting Methods Size [Byte] The data sizes of the target variables are displayed. Originator Variable Select the originator node's tag set to assign it. • Input is specified for Input/Output: Select the originator's input (con- sume) tag set. •...
Page 405
Appendices Import devices that are registered in another project. (1) Click the (Import a device from another project) Button in the Toolbox on the right of the EtherNet/IP Connection Setting Tab Page. (2) The Import from Another Project Dialog Box is displayed. Click the Project Button, select a project to import and click the Open Button.
Page 406
Appendices Register devices as required. (1) Click the + Button under the Target Device List in the Toolbox. The Add Target Device Pane is displayed. (2) Enter relevant items for the target devices to add. Menu Description Node address Enter the target device IP address. Model name Select the target device model.
Page 407
Appendices Adding EDS Files Right-click anywhere in the Target Device List in the Toolbox of the EtherNet/IP Connection Set- ting Tab Page and select Display EDS Library from the menu. The EDS Library Dialog Box is displayed. Click the Install Button. Select the EDS file to add, and then click the Open Button.
Page 408
Appendices Changing the Target Device Settings After Making Connection Settings If you change the IP address, model, or revision of the target device after making the connection settings, you must also change the target device settings that are included in the connection set- tings.
Page 409
Precautions for Correct Use Precautions for Correct Use • Changeable target devices are limited to ones that have "OMRON" in the Vendor ID and is an EDS device of the Communications Adapter in the Device Type. • To display a device in the list of selectable new target devices, the device must be registered as the target device in the Toolbox.
Page 410
Appendices Registering the Network Variable for the Target Device Assign the network variable to the tag used for the EtherNet/IP connection for Controller 2 (tar- get device). This network variable stores data to send to Controller 1 (originator device). Set the Network Publish attribute to Input or Output in the Global Variable Table for the variable so that the variable serves as a network variable, i.e., the variable can be used for the Ether- Net/IP connections.
Page 411
Appendices Checking the Device Bandwidth Usage The bandwidth usage for the device can be displayed from the EtherNet/IP Connection Setting Tab Page. This value is for when multicast filtering is used. Precautions for Correct Use Precautions for Correct Use In the Device Bandwidth Dialog Box, you can only check the bandwidth being used for the Ether- Net/IP connections from one originator device to its target devices.
Page 412
Appendices Calculation Example for Bandwidth Used (PPS) for Each Device by the EtherNet/IP Connections Establishing following three EtherNet/IP connections between Controllers (1) to (3) in the Ether- Net/IP network Device bandwidth Connection type Relevant devices in the EtherNet/IP connections usage (PPS) Connection (1) NJ-series Controller 2 (target device)
Page 413
Appendices Connection (2) EtherNet/IP connection settings for Controller 2 In this example, the PPS for Connection (1) is 50 pps, the PPS for Connection (2) is 10 pps, and the PPS for Connection (3) is 210 pps. Therefore, bandwidth used (PPS) for each EtherNet/IP device is as given below.
Page 414
Appendices Transferring the Connection Settings Data Precautions for Correct Use Precautions for Correct Use • If the node addresses (IP addresses) are not set correctly, you may connect to the wrong Con- troller and set incorrect device parameters. Download data only after you confirm that you are connected to the correct Controller.
Page 415
Appendices Synchronizing/Transferring a Whole Project You can synchronize and transfer the EtherNet/IP connection settings along with the program data. You can also transfer all the EtherNet/IP connection settings along with the program data. • Synchronizing and transferring the data Establish an online connection between the computer and the Controller and then select Synchronization from the Controller Menu.
Page 416
Appendices • Transferring all data Establish an online connection between the computer and the Controller and then select Transfer - To Controller from the Controller Menu. (Or, click the Button on the Toolbar.) The Transfer to Controller Dialog Box is displayed. Clear the selection of the Do not transfer the EtherNet/IP connection settings (i.e., tag data link settings) Check Box then click the Execute Button.
Page 417
Appendices If the Controller connected online is in RUN mode, the dialog box to confirm whether to switch to PROGRAM mode before transferring the settings is displayed. Comparison The differences in the tag set and connection settings between the project and the EtherNet/IP devices can be displayed.
Page 418
Appendices Starting and Stopping EtherNet/IP Connections Automatically Starting EtherNet/IP Connections The EtherNet/IP device is automatically restarted and EtherNet/IP connections are automatically started immediately after the connection settings are downloaded from the Sysmac Studio. Precautions for Correct Use Precautions for Correct Use Connections are adversely cut off if any of the following errors occurs in the Controller that is the originator while EtherNet/IP connections are active.
Appendices A-2-5 Checking Communications Status with the Sysmac Studio and Troubleshooting You can monitor the communications status of the EtherNet/IP connections after their settings are set. You can also check errors. Precautions for Correct Use Precautions for Correct Use Make sure that the connection settings in both the Sysmac Studio and the Controller are consis- tent before using the monitor functions.
Page 420
Appendices • Connection Status Tab Page Current status of each connection is given. Name Description Connection Name Gives the current status of each connection with the following text colors. Blue: Normal Red: There is at least one connection that has not been established. Gray: There are no connections or the connection operation is stopped.
Page 421
Appendices • Output Tag Set and Input Tag Set Tab Pages You can monitor the status of each input/output tag set that is used for the EtherNet/IP con- nections. Note The tag set status monitor is not available for a built-in EtherNet/IP port on NJ-series Controller version 1.08 or earlier.
Page 422
Appendices Name Description Destination IP address Gives the destination IP addresses. If the multi-cast connections are (in the Output Tag Set used, its own multi-cast address is displayed. Tab Page) O->T RPI (packet inter- Gives the RPI of connection from the originator to the target in millisec- val) onds.
Appendices A-2-6 Troubleshooting In the case that there is a setting error or a communications error in the EtherNet/IP networks, the Sys- mac Studio displays the error in the Troubleshooting Dialog Box. Refer to NYseries Troubleshooting Manual (Cat. No.W564) for the confirmation methods for errors and information on errors.
Page 424
Appendices Problems • The connection setting data cannot be transferred Data Transmission Screen Problem Synchronization Window The Sysmac Studio displays the following error message and the data will not be transferred. Transfer to Controller Dialog The Sysmac Studio displays the following error dialog box and the data will not be transferred.
Page 425
Appendices • Monitoring the settings cannot be performed Monitor data items in the EtherNet/IP Connection Monitor Tab Page remain "---". A-39 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Page 426
Appendices Method 1: Disabling Windows Firewall Settings Precautions for Correct Use Precautions for Correct Use The main function of the firewall is to prevent unwanted access from external sources (e.g., the Internet). The changes that are made with the following procedures are to allow the Sysmac Studio and the NY-series Controller to connect.
Page 427
Appendices Clear the Block all incoming connections, including those in the list of allowed programs Check Box and click the OK Button. Select Advanced settings in the Windows Firewall Dialog Box. The Windows Firewall with Advanced Security Dialog Box is displayed. Click Inbound Rules in the left pane and then double click SysmacStudio in the Inbound Rules list.
Page 428
Appendices Method 2: Cycle the power supply to the Controller Cycle the power supply to the NY-series Controller and transfer/monitor the EtherNet/IP connections settings again. Note You may need to cycle the power supply when reflecting the changes in the IP address of the built-in Eth- erNet/IP port or executing Transfer to Controller.
Appendices EDS File Management This section describes the EDS file management functions used in the Network Configurator. Precautions for Correct Use Precautions for Correct Use For Windows Vista or Windows 7, we recommend that you start the Network Configurator as the administrator.
Appendices A-3-1 Installing EDS Files EDS File - Install The Network Configurator can support new devices if the proper EDS files are installed. To install the EDS file, use the following procedure. Select EDS File - Install. The Install EDS File Dialog Box is displayed. Select the EDS file to install and click the Open Button.
Appendices A-3-3 Deleting EDS Files EDS File - Delete To delete an EDS file, use the following procedure. Select the device from the Hardware List. Select EDS File - Delete. The following confirmation dialog box is displayed. Click the Yes Button. The selected device is deleted from the Hardware List together with the EDS file.
Appendices A-3-5 Searching EDS Files EDS File - Find To search the devices (EDS files) displayed in the Hardware List, use the following procedure. Select EDS file - Find. The following dialog box is displayed. Input the character string to search for and click the Find Next Button. When a matching device is found, the cursor moves to that position.
Appendices A-3-6 Displaying EDS File Properties EDS File - Property To display the properties of the EDS file, use the following procedure. Select the desired hardware (device) from the Hardware List. Select EDS File - Property. The following dialog box is displayed. The time and date when the EDS file was created is displayed, along with the device informa- tion.
Appendices Precautions for Using the Network Configurator on Windows XP, Windows Vista, or Windows 7 or Higher Better firewall security for Windows XP (SP2 or higher), Windows Vista, and Windows 7 higher has increased the restrictions for data communications. Therefore, you must perform the corresponding procedure given below to change the settings of the Windows firewall before you use the following operations to perform communications with the Network Configurator connected to an NY-series Controller.
Page 435
Appendices Open the Administrative Tools and select Windows Firewall with Advanced Security from the dialog box that is displayed. Select Inbound Rules under Windows Firewall with Advanced Security on Local Computer on the left side of the Windows Firewall with Advanced Security Dialog Box. Select New Rule under Inbound Rules in the Actions Area on the right side of the dialog box.
Page 436
Appendices Click the Allow access Button. (Windows 7) An EtherNet/IP connection will be approved for the Network Configurator, and you will be able to connect the Network Configurator in the future. A-50 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Appendices Variable Memory Allocation Methods You must be aware of the way in which memory is allocated to variables to align the memory locations of the members of structure or union variables with variables in other devices. Adjustments are neces- sary mainly when structure variables are used in the following type of communications with other devices.
Page 438
Appendices The alignments and the amounts of memory that are allocated for the basic data types and enumera- tions are given below. Amount of memory that Data type Alignment [bytes] is allocated [bytes] BOOL BYTE, USINT, or SINT WORD, UINT, or INT DWORD, UDINT, or DINT LWORD, ULINT, or LINT REAL...
Page 439
Appendices Therefore, the following formula gives the amount of memory that is allocated for a BOOL array. For 1 to 16 elements, 2 bytes are allocated. For 17 to 32 elements, 4 bytes are allocated. Number of elements − 1 Amount of memory = 2 Truncate the decimal portion of the result of the calculation in brackets.
Page 440
Appendices Variables with Eight-byte Alignments (e.g., LWORD) Eight bytes of memory are allocated for the eight-byte alignment. The location of the first byte of data in memory is an integer multiple of eight bytes. Therefore, if a variable with a two-byte alignment, such as WORD data, is inserted, six bytes of unused memory will remain.
Page 441
Appendices Arrays A continuous section of memory is allocated for the elements of the array based on the data size of the data type of the array variable. The alignment of an array is the same as alignment of the data type of the elements.
Page 442
Appendices Data Type Definitions First byte + Memory (integer multiple of 4) Name Data type Bytes Structure STR_A STRUCT First byte DINT First byte + 1 First byte + 2 First byte + 3 Variable A, Name Data type First byte + 4 8 bytes Structure STR_B STRUCT...
Page 443
Appendices Example: The alignments and the amounts of memory that are allocated for the four variable declara- tions given in the following figure are given in the following table. Variable Alignment [bytes] Amount of memory that is allocated [bytes] Data Type Definitions Memory First byte + Name...
Page 444
Appendices Unions For a union variable, the members overlap in the same memory locations. The alignment of a union is largest alignment of all of the members. The amount of memory that is allocated is the largest amount of memory that is allocated for any of the members. Example: The alignments and the amounts of memory that are allocated for the four variable declara- tions given in the following figure are given in the following table.
Appendices A-5-2 Important Case Examples When you exchange structure variable data between an NY-series Controller and a remote device, you must align the memory configuration of the structure variable members with those of the remote device. This section describes what to do in either the NY-series Controller or in the remote device. Additional Information This is not necessary when you exchange data between NY-series Controllers.
Page 446
Appendices Method 1: Changing the Memory Configuration of the Structure Variable in the NY-series Controller With an NY-series Controller, you can specify member offsets to change the memory configuration of the members of a structure variable. You can change the memory configuration of the members of a structure variable in the NY-series Controller so that it is the same as the memory configuration in a remote device that the Controller will communicate with.
Page 447
Appendices Data Type Definitions Data Type Definitions NY-series Structure CJ-series Structure Variable NY_X Variable CJ_X Name Data type Name Data type Bytes Bytes Structure Y STRUCT Structure Y STRUCT First byte First byte DINT DINT First byte + 4 First byte + 4 DINT DINT Communications is...
Page 448
Appendices Method 2: Changing the Memory Configuration of the Structure Variable in the Remote Device You can insert a member into the structure variable of the remote device to change it to match the memory configuration of the structure variable in the NY-series Controller. Both the memory configu- ration and the data types must be the same between the two structure variables.
Appendices Precautions When Accessing External Outputs in Controllers Observe the following precautions when you access variables that are assigned to external outputs in an NY-series Controller. Precaution on Writing from External Devices, Variables* That Are Assigned to External Outputs Any value that is written to a variable* that is assigned to an external output in an NY-series Control- ler through a tag data link or communications instruction will be overwritten by the execution results of the user program.
Appendices TCP State Transitions TCP protocol operates in 11 states for connections. You can check the TCP state of the socket service with the TCP connection status that is output by the SktGetTCPStatus (Read TCP Socket Status) instruction. The TCP states and their meanings are given in the following table. TCP state Meaning CLOSED...
Page 451
Appendices The following figure shows TCP state transitions. The TCP states are given in the boxes in the figure. Between the states, the text on top is the condition for a change in state and the text on the bottom is the action that is performed when the state changes. (If no action is given, then none is performed.) Example: When SYN and ACK are received in SYN SENT state, ACK is sent and the state changes to ESTABLISHED.
Page 452
Appendices A-66 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Page 453
Index Index-1 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Page 454
Index Index batch editing ............7-35 editing individual connections ........ 7-34 Register Device List ..........7-32 Accept TCP Socket instruction ........9-13 Connection Tab Page ..........14-5 addresses ..............5-8 Connection Type ..........7-35, 7-36 All Tag Data Link Communications Status ..3-10, 3-21 connections array variables checking ..............
Page 456
Index SktTCPConnect ............. 9-13 saving ..............7-66 SktTCPRcv ............9-13 Network Configurator ............ 1-6 SktTCPSend ............9-13 connections via Ethernet to NJ-series CPU Unit ... 7-51 SktUDPCreate ............9-13 Ethernet connections ..........7-48 SktUDPRcv ............9-13 network transmission delay time ....... 13-26 SktUDPSend ............
Page 457
Index request path ..............8-10 specifications ............7-6 requested packet intervals ......... 7-8, 13-25 Tag Data Link Communications Error ....3-7, 3-19 accuracy ..............13-5 Tag Data Link Communications Start Switch ..3-12, 3-23 adjusting according to task periods ..... 13-24 Tag Data Link Communications Status ....
Page 458
Index variable memory allocation rules ...............A-51 versions ............... 5-11 Windows firewall settings changing ..............A-48 Write Variable Class 3 Explicit instruction ..... 8-5 Write Variable UCMM Explicit instruction ...... 8-5 Index-6 NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
Need help?
Do you have a question about the NY532-5400 and is the answer not in the manual?
Questions and answers