Omron NX502-1 Series User Manual

Omron NX502-1 Series User Manual

Machine automation controller cpu unit

Advertisement

Machine Automation Controller
NX-series
CPU Unit
User's Manual
FINS Function
NX701-1720
NX701-1620
NX502-1£££
NX102-12££
NX102-11££
NX102-10££
NX102-90££
W596-E1-04

Advertisement

Table of Contents
loading

Summary of Contents for Omron NX502-1 Series

  • Page 1 Machine Automation Controller NX-series CPU Unit User's Manual FINS Function NX701-1720 NX701-1620 NX502-1£££ NX102-12££ NX102-11££ NX102-10££ NX102-90££ W596-E1-04...
  • Page 2 Moreover, because OMRON is constantly striving to improve its high-quality products, the infor- mation contained in this manual is subject to change without notice. 3. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON as- sumes no responsibility for errors or omissions.
  • Page 3: Intended Audience

    Introduction Introduction Thank you for purchasing an NX-series CPU Unit. This manual contains information that is necessary to use the NX-series CPU Unit. Please read this manual and make sure you understand the functionality and performance of the NX-series CPU Unit before you attempt to use it in a control system.
  • Page 4: Relevant Manuals

    Relevant Manuals Relevant Manuals The following table provides the relevant manuals for the NX-series CPU Units. Read all of the man- uals that are relevant to your system configuration and application before you use the NX-series CPU Unit. Most operations are performed from the Sysmac Studio Automation Software. Refer to the Sysmac Studio Version 1 Operation Manual (Cat.
  • Page 5 Relevant Manuals Manual Basic information Purpose of use Testing operation and debugging Using motion control ¡ Using EtherCAT ¡ ¡ Using EtherNet/IP ¡ Using OPC UA ¡ Using FINS ¡ Using the database connection service ¡ Learning about error management func- ¡...
  • Page 6: Terms And Conditions Agreement

    Omron’s exclusive warranty is that the Products will be free from defects in materials and work- manship for a period of twelve months from the date of sale by Omron (or such other period ex- pressed in writing by Omron). Omron disclaims all other warranties, express or implied.
  • Page 7: Application Considerations

    WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED IN CONTRACT, WARRANTY, NEGLIGENCE OR STRICT LIABILITY. Further, in no event shall liability of Omron Companies exceed the individual price of the Product on which liability is asserted. Application Considerations...
  • Page 8 Product. Errors and Omissions Information presented by Omron Companies has been checked and is believed to be accurate; how- ever, no responsibility is assumed for clerical, typographical or proofreading errors or omissions. Statement of security responsibilities for assumed use cases and...
  • Page 9: Manual Structure

    Manual Structure Manual Structure Page Structure The following page structure is used in this manual. Level 1 heading 4 Installation and Wiring Level 2 heading Mounting Units Level 3 heading Level 2 heading Gives the current Level 3 heading headings. 4-3-1 Connecting Controller Components The Units that make up an NJ-series Controller can be connected simply by pressing the Units together...
  • Page 10: Special Information

    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.
  • Page 11: Sections In This Manual

    Sections in this Manual Sections in this Manual FINS Server Function Client Function Troubleshooting Appendices Index NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 12: Table Of Contents

    CONTENTS CONTENTS Introduction ......................1 Intended Audience............................1 Applicable Products ............................1 Relevant Manuals..................... 2 Terms and Conditions Agreement................4 Warranty, Limitations of Liability ........................4 Application Considerations ..........................5 Disclaimers ..............................5 Statement of security responsibilities for assumed use cases and against threats.........6 Manual Structure...................... 7 Page Structure..............................7 Special Information ............................8 Precaution on Terminology ..........................8...
  • Page 13 CONTENTS FINS Commands Supported by NX-series CPU Units............2-3 Setting of FINS Node Address of Built-in EtherNet/IP Port ..........2-5 FINS Routing Table Setting....................2-7 FINS Write Protection Function....................2-8 FINS Command Execution Condition ..................2-9 TCP/UDP Port Close Function ....................2-10 Section 3 Client Function Overview of Client Function......................3-2 FINS Communications Instructions ....................3-3 Send ................................3-4...
  • Page 14: Safety Precautions

    Safety Precautions Safety Precautions Refer to the following manuals for safety precautions. • NX-series CPU Unit Hardware User's Manual (Cat. No. W535) • NX-series NX502 CPU Unit Hardware User’s Manual (Cat. No. W629) • NX-series NX102 CPU Unit Hardware User’s Manual (Cat. No. W593) NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 15: Precautions For Safe Use

    Precautions for Safe Use Precautions for Safe Use Refer to the following manuals for precautions for safe use. • NX-series CPU Unit Hardware User's Manual (Cat. No. W535) • NX-series NX502 CPU Unit Hardware User’s Manual (Cat. No. W629) • NX-series NX102 CPU Unit Hardware User's Manual (Cat. No. W593) NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 16: Precautions For Correct Use

    Precautions for Correct Use Precautions for Correct Use Refer to the following manuals for precautions for correct use. • NX-series CPU Unit Hardware User's Manual (Cat. No. W535) • NX-series NX502 CPU Unit Hardware User’s Manual (Cat. No. W629) • NX-series NX102 CPU Unit Hardware User's Manual (Cat. No. W593) NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 17: Regulations And Standards

    Regulations and Standards Regulations and Standards Refer to the following manuals for regulations and standards. • NX-series CPU Unit Hardware User's Manual (Cat. No. W535) • NX-series NX502 CPU Unit Hardware User’s Manual (Cat. No. W629) • NX-series NX102 CPU Unit Hardware User's Manual (Cat. No. W593) NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 18: Versions

    Versions Versions Hardware revisions and unit versions are used to manage the hardware and software in NX-series Units 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 19: Related Manuals

    Related Manuals Related Manuals The following manual are related. Use these manuals for reference. Manual name Cat. No. Model Application Contents NX-series CPU Unit W535 NX701-££££ Learning the basic An introduction to the entire NX701 system is Hardware User's Manual specifications of the provided along with the following information on NX701 CPU Units,...
  • Page 20 Related Manuals Manual name Cat. No. Model Application Contents CS/CJ/CP/NSJ-series W342 CS1G/H-CPU££ Learning the detailed This manual describes the C mode commands Communications Commands CS1D-CPU£££ communication com- and FINS commands for the CPU unit in detail. Reference Manual CS1W-SC£££-V1 mands for the CJ1G/H-CPU£££...
  • Page 21: Revision History

    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. W596-E1-04 Cat. No. Revision code Revision Revision date Revised content code April 2018 Original production June 2022 Corrected mistakes.
  • Page 22 Revision History NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 23: Fins

    FINS This section describes an overview, a system configuration, and types of FINS. Overview of FINS.................... 1-2 1-1-1 Server Function of FINS.................. 1-2 1-1-2 Client Function of FINS ................... 1-2 Applicable CPU Units ..................1-3 System Configuration ..................1-4 Relationship Between FINS Types and Units ..........1-5 Memory Used for CJ-series Units..............
  • Page 24: Overview Of Fins

    1 FINS Overview of FINS FINS is a command system for the message service that can be used commonly in OMRON network. The FINS command system allows to read sent and received data, status etc. between a host comput- er and an NX-series CPU Unit, and between an NX-series CPU Unit and an OMRON CPU Unit.
  • Page 25: Applicable Cpu Units

    1 FINS Applicable CPU Units FINS commands can be sent/received from/by the following CPU Units. Unit version of CPU Unit name Model Server function Client function Unit NX7 Database Connection *1*2 Available Not available Version 1.16 or later NX701-££20 CPU Unit NX502 CPU Unit Available Available...
  • Page 26: System Configuration

    System Configuration System configuration is available on conditions that it must issue FINS commands received from ex- ternal computers and OMRON CPU Units and receive FINS commands through the built-in EtherNet/IP port of the NX-series CPU Unit. CS/CJ/CP-series CPU Unit...
  • Page 27: Relationship Between Fins Types And Units

    1 FINS Relationship Between FINS Types and Units The following shows the relationship between applicable FINS types and Units. Units Item NX701-££20 NX502-1£££ NX102-££££ FINS/UDP Usable or not Port number 9600 FINS/TCP Usable or not Maximum number of con- nections Port number 9600 FINS communication serv-...
  • Page 28: Memory Used For Cj-Series Units

    1 FINS Memory Used for CJ-series Units The following describes how to set the memory used for the CJ-series Units and the area types of the compatible memory used for CJ-series Units. 1-5-1 Setting for the Memory Used for CJ-series Units For NX701-££20, NX502-1£££, and NX102 CPU Units, the memory used for CJ-series Units can be set using the Multiview Explorer of the Sysmac Studio.
  • Page 29: Server Function

    Server Function This section describes a function that issues FINS commands supported by the NX- series CPU Unit and, reads and writes the memory used for CJ-series Units. Overview of Server Function ................ 2-2 FINS Commands Supported by NX-series CPU Units ........ 2-3 Setting of FINS Node Address of Built-in EtherNet/IP Port......
  • Page 30: Overview Of Server Function

    2 Server Function Overview of Server Function The NX-series CPU Unit receives FINS commands issued from external devices such as host comput- ers or CS/CJ/CP-series CPU Units on the Ethernet network and then can execute the requested serv- ice. Precautions for Correct Use To use the FINS server function, select Configurations and Setup - Controller Setup - Built- in EtherNet/IP Port Settings from the Multiview Explorer of the Sysmac Studio, and then se- lect FINS Settings to select the Use Option for FINS/UDP and FINS/TCP.
  • Page 31: Fins Commands Supported By Nx-Series Cpu Units

    2 Server Function FINS Commands Supported by NX- series CPU Units This section describes FINS commands supported by the NX-series CPU Unit, restrictions, and execu- tion conditions. For details about each FINS command, refer to the SYSMAC CS/CJ/CP/NSJ-series Communications Commands Reference Manual (Cat. No. W342). FINS Commands Supported by NX-series CPU Units and Restric- tions The following describes FINS commands supported by the NX-series CPU Units and restrictions when...
  • Page 32 2 Server Function Sixteen ASCII code 20Hex (space) characters of below value are returned and can not be used. "Error message" NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 33: Setting Of Fins Node Address Of Built-In Ethernet/Ip Port

    2 Server Function Setting of FINS Node Address of Built-in EtherNet/IP Port This FINS node address is necessary to identify a node in the FINS communication. The following describes how to determine the FINS node address of the built-in EtherNet/IP port and how to set the FINS node address from the Sysmac Studio.
  • Page 34 2 Server Function NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 35: Fins Routing Table Setting

    2 Server Function FINS Routing Table Setting The routing table is a table that is used to find the communication path of the FINS message when the FINS communication service is in use. The routing table consists of two types of tables: local network table and relay network table. Here are the cases, where the setting of FINS routing table is required.
  • Page 36: Fins Write Protection Function

    2 Server Function FINS Write Protection Function When data is written into the CPU Unit using the FINS command, this data writing can be disabled so that the data is not written into the memory of the CPU Unit. This function is called the FINS write protection function. The models that support the FINS write protection function are NX701-££20, 502-1£££, and NX102-££££.
  • Page 37: Fins Command Execution Condition

    2 Server Function FINS Command Execution Condition The following describes the FINS command execution conditions. Command code Execution condition (Hex) Command name Write protection in proc- RUN mode PROGRAM mode MEMORY AREA READ Supported Supported Supported MEMORY AREA WRITE Not supported MEMORY AREA FILL Not supported MULTIPLE MEMORY AREA...
  • Page 38: Tcp/Udp Port Close Function

    2 Server Function TCP/UDP Port Close Function You can close unused FINS/UDP and FINS/TCP ports. This improves security of communications over the network. The procedure for closing FINS/UDP port and FINS/TCP port, operation, and timing of the setting to be applied are as follows. When to apply Port Procedure for closing the port...
  • Page 39: Client Function

    Client Function This section describes the instructions that issue the FINS command from the NX102 CPU Unit for OMRON Unit provided with the FINS server function and then send and receive data. Overview of Client Function ..................3-2 FINS Communications Instructions................ 3-3...
  • Page 40: Overview Of Client Function

    3 Client Function Overview of Client Function FINS communication instructions is a set of instructions, which allows to control data send/receive, mode change etc. as required, for various types of Units such as CPU Units and CPU Special Units on the network or CPU Rack.
  • Page 41: Fins Communications Instructions

    FINS Communications Instructions Instructions Name Page Send Send to Network page 3-4 Receive from Network page 3-8 SendCmd Send Command page 3-14 NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 42: Send

    3 Client Function Send Sends data to a node on the network. Instruction Name Graphic expression ST expression Send_instance Send Execute Done Send_instance(Execute, DstNe- DstNetAdr Busy tAdr, CommPort, SrcDat, Send- CommPort Send to Net- Send Size, DstArea, DstCh, Option, work ErrorIDEx Done, Busy, Error, ErrorID, ErrorI- DEx);...
  • Page 43 3 Client Function Real Times, durations, Bit strings Integers num- lean dates, and text strings bers DstNetAdr Refer to Function on page 3-5 for details on the structure _sDNET_ADR. CommPort For enumeration_ePORT enumerator, refer to Function on page 3-5. SrcDat[] ar- SendSize DstArea For enumeration_eAREA enumerator, refer to Function on page 3-5.
  • Page 44 3 Client Function Enumerator Meaning _EM18 24 bank area of Expansion Memory Area The data type of Option is structure_sRESPONSE. The specifications are shown below. Initial Variable Name Contents Data type Valid range Unit value Response monitoring _sRES- Option Response and retry specifications PONSE TRUE: Response is not...
  • Page 45 3 Client Function • When this instruction is written in the ST program, make sure that the instruction is executed for each task period during execution of this instruction. Otherwise, normal processing may not be pos- sible. • You cannot use this instruction in an event task. A compiling error will occur. •...
  • Page 46: Rcv

    3 Client Function Requests a node on the network to send and receives data. Instruction Name Graphic expression ST expression Rcv_instance Execute Done SrcNetAdr Busy Rcv_instance(Execute, SrcNetAdr, CommPort Receive from CommPort, SrcArea, SrcCh, Network RcvSize, DstDat, Option, Done, ErrorIDEx Busy, Error, ErrorID, ErrorIDEx); DstDat Variable Input/...
  • Page 47 3 Client Function Real Times, durations, Bit strings Integers num- lean dates and text strings bers SrcNetAdr Refer to Function on page 3-9 for details on the structure _sDNET_ADR. CommPort For enumeration_ePORT enumerator, refer to Function on page 3-9. SrcArea For enumeration_eAREA enumerator, refer to Function on page 3-9.
  • Page 48 3 Client Function Enumerator Meaning ⋮ ⋮ _EM18 24 bank area of Expansion Memory Area The data type of Option is structure_sRESPONSE. The specifications are shown below. Initial Variable Name Contents Data type Valid range Unit value Response monitoring _sRES- Option Response and retry specifications...
  • Page 49 3 Client Function Refer to A-1 Difference Between CS/CJ-series and NX-series in FINS Routing on page A-2 for information on differences in routing specification. • When this instruction is written in the ST program, make sure that the instruction is executed for each task period during execution of this instruction.
  • Page 50 3 Client Function Inter- Name Data type Initial value Comment varia- State SINT Sample programming status InDNetAdr _sDNET_ADR NetNo:=0, NodeNo:=0, Network address at send desti- UnitNo:=16#0 nation InOption _sRESPONSE isNonResp:=FALSE, Response TimeOut:=0, Retry:=0 SrcDat ARRAY [0..1] OF [2(16#0)] Send data WORD DstDat ARRAY [0..1] OF...
  • Page 51 3 Client Function SrcCh := 100, RcvSize := 2, DstDat := DstDat[0], Option := InOption); CASE State OF 1: // Execute Send. SendExecute := TRUE; IF (SendInstance.Done=TRUE) THEN State := 2; ELSIF (SendInstance.Error=TRUE) THEN State := 99; END_IF; 2: // Execute Rcv. RcvExecute := TRUE;...
  • Page 52: Sendcmd

    3 Client Function SendCmd Issues a desired command and receives a response. Instruction Name Graphic expression ST expression SendCmd_instance SendCmd Execute Done DstNetAdr Busy SendCmd_instance(Execute, CommPort Send Com- DstNetAdr, CommPort, CmdDat, SendCmd mand CmdSize, RespDat, Option, Done, ErrorIDEx Busy, Error, ErrorID, ErrorIDEx); RespDat Variables Meaning...
  • Page 53 3 Client Function Function The SendCmd instruction sends the contents of command array CmdDat[] to the destination specified with destination network address DstNetAdr and destination serial port CommPort. The command data size CmdSize specifies how many elements of CmdDat[] contain the command. The response that is returned is stored in response storage array RespDat[].
  • Page 54 3 Client Function Related System-defined Variables Data Name Meaning Description type Number of Used _Port_numUsingPort USINT This is the number of ports that are currently used. Ports Network Communi- TRUE: A port is available. _Port_isAvailable cations Instruction BOOL FALSE: A port is not available. Enabled Flag Precautions for Correct Use •...
  • Page 55 3 Client Function Sample Programming In this sample, the SendCmd instruction sends CPU UNIT DATA READ command from the network No. 0, node No. 2, Unit No. 0 and receives the data. Node address 2 Unit No. 0 Node address 1 CPU UNIT DATA READ Ethernet cable Internal...
  • Page 56 3 Client Function CmdDat[0] :=BYTE#16#05; // Set command array. CmdDat[1] :=BYTE#16#01; END_IF; IF (DoFinsTrigger=TRUE) THEN SendCmdInstance( Execute :=SendCmdExecute, DstNetAdr:=InDNetAdr, CommPort :=_NONE, CmdDat := CmdDat [0], CmdSize :=UINT#2, RespDat := RespDat [0], Option :=InOption); CASE State OF 1: // Execute SendCmd. SendCmdExecute := TRUE;...
  • Page 57: Troubleshooting

    Troubleshooting This section describes the errors that may occur during communications with CPU Units. Troubleshooting ..................... 4-2 NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 58 Commands Reference Manual (Cat. No. W342) for details about the errors that may occur during communications with CPU Units. Refer to the manual of each relevant unit for details about the errors that may occur during communi- cations with other OMRON Units. NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 59: Appendices

    Appendices Difference Between CS/CJ-series and NX-series in FINS Routing... A-2 A-1-1 Communication When 0 Is Specified for the Destination Network Address..A-2 A-1-2 Operation of Routing Table during Clear All Memory Operation ..... A-4 NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 60: Difference Between Cs/Cj-Series And Nx-Series In Fins Routing

    Appendices A-1 Difference Between CS/CJ-series and NX-series in FINS Routing The FINS routing specification settings in the NX-series CPU Units differ from those in the CS/CJ-ser- ies CPU Units by the following points: • Communication when 0 is specified for the destination network address •...
  • Page 61 Appendices Additional Information For the CS/CJ-series CPU Units, the FINS command is issued to the network of the FINS net- work Communications Unit that has the smallest unit number. No settings for the local network table EtherNet/IP Unit (Unit number 0) Local network table Unit number Network...
  • Page 62: Operation Of Routing Table During Clear All Memory Operation

    Appendices CS/CJ-series CPU Unit NX-series CPU Unit Response frame FINS command Ethernet Network address 2 Unit number 0 Unit number 1 The example below shows the routing table setting for the NX-series CPU Unit. The example below shows the routing table setting for the CS/CJ-series CPU Unit. [Local network table] No.
  • Page 63 Index NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 64 Index Index Rcv (Receive from Network)..........3-8 Receive from Network............3-8 Send (Send to Network)............ 3-4 Send Command...............3-14 Send to Network..............3-4 SendCmd (Send Command)........... 3-14 version................16 NX-series CPU Unit FINS Function User's Manual (W596)
  • Page 66 Hoffman Estates, IL 60169 U.S.A. Tel: (31) 2356-81-300 Fax: (31) 2356-81-388 Tel: (1) 847-843-7900 Fax: (1) 847-843-7787 ©OMRON Corporation 2018-2023 All Rights Reserved. OMRON ASIA PACIFIC PTE. LTD. OMRON (CHINA) CO., LTD. In the interest of product improvement, 438B Alexandra Road, #08-01/02 Alexandra Room 2211, Bank of China Tower, specifications are subject to change without notice.

Table of Contents