Omron NJ501-1300 User Manual

Omron NJ501-1300 User Manual

Machine automation controller nj-series cpu unit opc ua
Hide thumbs Also See for NJ501-1300:
Table of Contents

Advertisement

Machine Automation Controller
NJ-series
CPU Unit
OPC UA
User's Manual
NJ501-1 00
W588-E1-01

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NJ501-1300 and is the answer not in the manual?

Questions and answers

Summary of Contents for Omron NJ501-1300

  • Page 1 Machine Automation Controller NJ-series CPU Unit OPC UA User’s Manual NJ501-1 00 W588-E1-01...
  • Page 2 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.
  • Page 3: Introduction

    Introduction Introduction Thank you for purchasing an NJ-series CPU Unit. This manual contains information that is necessary to use the OPC UA with the NJ-series CPU Unit. Please read this manual and make sure you understand the functionality and performance of the NJ- 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 NJ-series CPU Units. Read all of the manuals that are relevant to your system configuration and application before you use the NJ-series CPU Unit. The built-in EtherNet/IP port in the NJ-series CPU Unit is used for this product. For details on how to use the built-in EtherNet/IP port, refer to the NJ/NX-series CPU Unit Built-in Eth- erNet/IP Port User’s Manual (Cat.
  • Page 5: 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 headings. Level 3 heading 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 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.
  • Page 7: Sections In This Manual

    Sections in this Manual Sections in this Manual Overview of OPC UA Appendices Server Function Structure of the OPC Index UA Server Settings of the OPC UA Server Starting and Checking the Status of the OPC UA Server Security Function of OPC UA Server Connecting from the OPC UA Client and Reading/Writing Variables Execution Log Functions...
  • Page 8: Table Of Contents

    CONTENTS CONTENTS Introduction ....................... 1 Relevant Manuals ...................... 2 Manual Structure ....................... 3 Sections in this Manual .................... 5 Terms and Conditions Agreement................. 10 Safety Precaution ....................12 Precautions for Safe Use..................13 Precautions for Correct Use................... 14 Regulations and Standards ..................15 Versions ........................
  • Page 9 CONTENTS Section 3 Settings of the OPC UA Server Controller Setup ........................3-2 3-1-1 IP Address Settings of the Built-in EtherNet/IP Port ..............3-2 OPC UA Settings ........................3-3 3-2-1 Overview of OPC UA Settings ....................3-3 3-2-2 OPC UA Server Settings ......................3-5 3-2-3 When necessary to cycle the power supply to the Controller or reset the Controller ....
  • Page 10 CONTENTS Section 7 Execution Log Functions Execution Logs ........................7-2 7-1-1 Overview ............................. 7-2 7-1-2 How to Use the Execution Log....................7-4 7-1-3 Setting the Execution Log ......................7-4 7-1-4 Checking the Execution Log ....................... 7-4 7-1-5 Execution Log File Specifications ....................7-5 7-1-6 Format of Records ........................
  • Page 11 CONTENTS Appendices A-1 Task Design Procedure ......................A-2 A-1-1 Startup Time of the OPC UA Server (Reference Values) ............A-2 A-1-2 Guidelines for System Service Execution Time Ratio ..............A-3 A-1-3 Checking the System Service Execution Time Ratio..............A-4 A-2 OPC UA Instruction .........................A-6 A-2-1 OPCUA_Shutdown (Shutdown OPC UA Function) ..............
  • Page 12: Terms And Conditions Agreement

    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 13 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.
  • Page 14: Safety Precaution

    Safety Precaution Safety Precaution Refer to the following manuals for safety precautions. • NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500) • Sysmac Studio Version 1 Operation Manual (Cat. No. W504) NJ-series CPU Unit OPC UA User’s Manual (W588)
  • Page 15: Precautions For Safe Use

    Precautions for Safe Use Precautions for Safe Use This section describes the precautions for the safe use of the OPC UA Server. • Even if you accidentally add the client certificate of a client for which you do not want to permit con- nection in the Trusted Certificate List, the OPC UA Server of the NJ-series Controller will permit con- nections from that client.
  • Page 16: Precautions For Correct Use

    Precautions for Correct Use Precautions for Correct Use This section describes the precautions for the correct use of the OPC UA Server. • If the IP address of the built-in EtherNet/IP port is changed after starting the use of the OPC UA Server, the OPC UA server certificate in the CPU Unit will be disabled, and it will not be possible to communicate with the OPC UA client.
  • Page 17: Regulations And Standards

    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.
  • Page 18 It may not be possible to use the product in some locations. Contact your OMRON representative before attempting to use a Controller on a ship. Usage Conditions for NK and LR Shipbuilding Standards •...
  • Page 19 Regulations and Standards the GNOME project (http://xmlsoft.org/). Copyright (C) 1998-2003 Daniel Veillard. All Rights Reserved. OPC UA This product includes code that was developed by Unified Automation GmbH for the OPC UA SDK (http://www.unifiedautomation.com/). Copyright (C) 2008-2017 Unified Automation GmbH. All Rights Reserved. The OPC UA SDK is based in part on <OPC UA Ansi C Stack>...
  • Page 20: Versions

    Versions Versions Hardware revisions and unit versions are used to manage the hardware and software in the NJ-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 21 Versions Checking Unit Versions with the Sysmac Studio You can use the Sysmac Studio to check unit versions. Checking the Unit Version of a Unit You can use the Production Information while the Sysmac Studio is online to check the unit ver- sion of a Unit.
  • Page 22: Related Manuals

    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 NJ-series CPU Unit OPC W588 NJ501-1 00 Using the OPC UA with the Information on the OPC UA is provided. Use this UA User's Manual (This NJ-series CPU Unit.
  • Page 23: Terminology

    Terminology Terminology This section provides definitions of terms related to the OPC UA. Term Description Address space A collection of information that visualizes the OPC UA server with respect to the OPC UA client. By referencing this information, the OPC UA client can use the objects of the OPC UA server and their related information.
  • Page 24 Terminology Term Description OPC UA security mode Setting the encryption and signature of messages in the security-related settings of messages in the OPC UA. OPC UA security policy Specification of algorithms such as signatures and encryption in the security-related settings of messages in the OPC UA. OPC UA security profile A common name for the client certificate, CA certificate, certificate revocation list, and security settings.
  • Page 25: 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. W588-E1-01 Cat. No. Revision code Revision code Date Revised content January 2018 Original production NJ-series CPU Unit OPC UA User’s Manual (W588)
  • Page 26 Revision History NJ-series CPU Unit OPC UA User’s Manual (W588)
  • Page 27: Overview Of Opc Ua Server Function

    Overview of OPC UA Server Func- tion This section describes an overview of the OPC UA Server function. 1-1 Overview and Features ......... 1-2 1-1-1 Overview .
  • Page 28: Overview And Features

    1 Overview of OPC UA Server Function Overview and Features This section describes an overview and features of the OPC UA Server function. 1-1-1 Overview The OPC UA Server function enables the NJ-series CPU Unit to operate as an OPC UA server. With this function, OPC UA clients can connect via Ethernet to the built-in EtherNet/IP port of the NJ-series CPU Unit using the OPC UA communications, and then read and write variables in the CPU Unit.
  • Page 29 1 Overview of OPC UA Server Function • Allows to expand the visualization of information adapting to the system in the object-based Address Space. Providing the Server Function of OPC UA Communications in the NJ-series Controller The NJ-series OPC UA Server function has the following features. •...
  • Page 30: Specifications

    1-2-1 List of Supported CPU Units The OPC UA Server is supported by the following CPU Unit models. CPU Unit Models Unit version NJ501-1300 1.17 or later NJ501-1400 NJ501-1500 1 - 4 NJ-series CPU Unit OPC UA User’s Manual (W588)
  • Page 31: Function Specifications

    1 Overview of OPC UA Server Function 1-2-2 Function Specifications Specifications of the OPC UA Server Item Description Built-in EtherNet/IP Port on the CPU Unit Connection ports Note: The OPC UA Server function can be used simultaneously with EtherNet/IP communications. OPC UA function Server function Transport and data encoding...
  • Page 32: Opc Ua Server Procedures

    1 Overview of OPC UA Server Function OPC UA Server Procedures This section describes the OPC UA Server Procedures. 1-3-1 Overall Procedure The overall procedure for using the OPC UA Server is as follows. For details, refer to 1-3-2 Procedure Details on page 1-7.
  • Page 33: Procedure Details

    1 Overview of OPC UA Server Function 1-3-2 Procedure Details The procedure for using the OPC UA Server is shown separately for the OPC UA Server side and the OPC UA client side as follows. Step OPC UA Server Reference OPC UA client 1-1.
  • Page 34: Security Function Of Opc Ua Server 7

    1 Overview of OPC UA Server Function Step OPC UA Server Reference OPC UA client 1-6. Confirm- Confirm that the OPC UA 4-2-1 Checking STEP ing the start of Server is started. Based on OPC UA Settings OPC UA Server Status of the In the Sysmac Studio, connect Server (online) Sysmac Studio on...
  • Page 35 1 Overview of OPC UA Server Function Step OPC UA Server Reference OPC UA client 2-1. Connect- Connection to the OPC UA 6-1 Connecting from STEP ing from an Server. the OPC UA Client Opera- OPC UA client on page 6-2 Enter opc.tcp: // [IP tion address] : [port number] /...
  • Page 36 1 Overview of OPC UA Server Function Step OPC UA Server Reference OPC UA client 4-1. Client Confirm the error on the STEP error check OPC UA client side Trouble • Check network settings shooting • Confirm the URL • Confirm the security pol- •...
  • Page 37: Structure Of The Opc Ua Server

    Structure of the OPC UA Server This section describes the structure of the OPC UA Server. 2-1 Internal Structure of the Overall OPC UA Communications System ..2-2 2-1-1 Overview ........... . . 2-2 2-1-2 Details .
  • Page 38: Internal Structure Of The Overall Opc Ua Communications System

    2 Structure of the OPC UA Server Internal Structure of the Overall OPC UA Communications System This section describes the internal structure of the overall OPC UA communications system with the NJ-series CPU Units as an OPC UA server. 2-1-1 Overview An overview of the overall OPC UA communications system is provided below.
  • Page 39: Details

    2 Structure of the OPC UA Server 2-1-2 Details The details of the structure of the overall OPC UA communications system is described by using the fol- lowing figure. Note that the (Figure a) to (Figure e) in the table shown below correspond to the (a) to (e) in the following fig- ure.
  • Page 40 2 Structure of the OPC UA Server Basic mechanism (the number indicates the order of procedure) Reference 4. In the Sysmac Studio, connect online to the CPU Unit, and perform Sysmac Studio Version1 Operation operations of the application authentications and security settings Manual (Cat.
  • Page 41: Overview Of The Security Function Of The Opc Ua Server

    2 Structure of the OPC UA Server Overview of the Security Function of the OPC UA Server This section describes the overview of the security function of the OPC UA Server. The OPC UA Server of the NJ-series CPU Unit supports the server function of the OPC UA. There are the following two security functions as a server in the OPC UA Server.
  • Page 42 2 Structure of the OPC UA Server 2 - 6 NJ-series CPU Unit OPC UA User’s Manual (W588)
  • Page 43 Settings of the OPC UA Server This section describes the settings required to use the OPC UA Server. 3-1 Controller Setup ..........3-2 3-1-1 IP Address Settings of the Built-in EtherNet/IP Port .
  • Page 44: Settings Of The Opc Ua Server

    3 Settings of the OPC UA Server Controller Setup This section describes the following Controller Setup related to the OPC UA function. • Setting the IP address of the built-in EtherNet/IP port • Setting the Start delay time at startup when you want to shorten the startup time of the OPC UA Server For general settings of the built-in EtherNet/IP port, refer to the NJ/NX-series CPU Unit Built-in Ether- Net/IP Port User’s Manual (Cat.
  • Page 45: Opc Ua Settings

    3 Settings of the OPC UA Server OPC UA Settings You must set the OPC UA Settings before the OPC UA Server runs. This section describes how to set the OPC UA Settings. 3-2-1 Overview of OPC UA Settings The following is an overview of the OPC UA Settings. The OPC UA Settings are located in Configurations and Setup in Multiview Explorer in the Sysmac Studio as follows.
  • Page 46 3 Settings of the OPC UA Server Items of OPC Offline or Contents Procedure Reference UA Settings online Server Certifi- Display and operate the server Setting or Right-click OPC 3-2-3 When neces- cate certificate in the Server Certifi- operation UA Server Set- sary to cycle the cate Tab Page.
  • Page 47: Opc Ua Server Settings

    3 Settings of the OPC UA Server 3-2-2 OPC UA Server Settings The following shows how to make the OPC UA Server Settings and its contents. The OPC UA Server Settings consist of the following. • OPC UA Server Use Option setting •...
  • Page 48 3 Settings of the OPC UA Server Use of the OPC UA Server You can set whether to use the OPC UA Server in Server Function Setting, Set the following items. Setting Update Changes in Parameter Description Set value Default group Timing RUN mode...
  • Page 49 3 Settings of the OPC UA Server Precautions for Correct Use • The IP Address Displayed at the End point The IP address that is displayed at the End point is the IP address of the built-in EtherNet/IP port. For details on how to set the IP address from the Sysmac Studio, refer to the NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (Cat.
  • Page 50: When Necessary To Cycle The Power Supply To The Controller Or Reset The Controller

    3 Settings of the OPC UA Server 3-2-3 When necessary to cycle the power supply to the Controller or reset the Controller You need to cycle the power supply to the Controller or reset the Controller in the following cases: •...
  • Page 51: Setting And Displaying The Certificate

    3 Settings of the OPC UA Server 3-2-5 Setting and Displaying the Certificate The following shows how to set and display the certificate and their contents. The certificate setting can be operated only when online, and only by the Administrator in the operation authority verification settings.
  • Page 52 Name of the issued CA. In the case of a server certificate, it is self-signed and is as follows: CN = NxOpcUaServer@[IPAddress]:, O = Omron Corporation, L = Kyoto, S = Kyoto, C = JP Example: CN=NxOpcUaServer@192.168.250.1, O=Omron Corporation, L=Kyoto,...
  • Page 53 3 Settings of the OPC UA Server Updating Server Certificate Tab Page The display on the Server Certificate Tab Page is updated with the data in the CPU Unit connected online. Click the Update Button to reacquire the Server Certificate in the CPU Unit and update the Server Certificate Tab Page display.
  • Page 54 Controller power Studio is turned on Organiza- 0 to 9, a to z, A to Z, half- Value stored in the sub- OMRON Corporation Cannot be tion name width space [ ], hyphen [-], ject of the Certificate omitted dot [.], Underscore [_],...
  • Page 55 3 Settings of the OPC UA Server Client Authentication You can display and operate self-signed client certificates in the CPU Unit connected online. Additional Information For the CA-signed client certificate, refer to the A-3 When CA-signed Client Certificates Sup- ported on page A-10. In the Sysmac Studio, connect online to the CPU Unit, right-click OPC UA Server Settings under Configurations and Setup - OPC UA Settings in Multiview Explorer and select Client Authentication.
  • Page 56 3 Settings of the OPC UA Server The following contents are displayed. Parameter Description (A) Trusted Cer- The Trusted Client Certificate List in the CPU Unit is displayed. tificate List • Common name, expiration of validity period, organization, domain name are displayed. •...
  • Page 57 3 Settings of the OPC UA Server Select one or more client certificate files (extension .der) to be added, and click the Open But- ton. The following dialog box to confirm the execution is displayed. If you click the Yes Button, the selected client certificate is added to the Trusted Certificate List in the CPU Unit.
  • Page 58 3 Settings of the OPC UA Server If the addition fails, the following confirmation dialog box is displayed. • When the client certificate already exists in the Rejected Certificate List If the client certificate to be added already exists in the Rejected Certificate List in the CPU Unit, the following confirmation dialog box is displayed.
  • Page 59 3 Settings of the OPC UA Server Deleting a Client Certificate You can delete the selected client certificate in the CPU Unit. You can delete a certificate in the Trusted Certificate List and the Rejected Certificate List. Select the client certificate you want to delete and click the Delete Button ( ).
  • Page 60 3 Settings of the OPC UA Server Displaying the Detailed View of Certificates If you want to display the detailed contents of the selected client certificate, perform the following operations. Click the Show Detail Button. The Processing Dialog Box is displayed. After a while, the detailed contents of the client certificate in the CPU Unit are displayed.
  • Page 61 3 Settings of the OPC UA Server Updating the Client Authentication Tab Page The display on the Client Authentication Tab Page is updated with the data in the CPU Unit con- nected online. Click the Update Button to reacquire the Client Certificate List in the CPU Unit and update the Client Authentication Tab Page display.
  • Page 62: Security Settings

    3 Settings of the OPC UA Server 3-2-6 Security Settings The following shows how to make the security settings and their contents. The Security settings consist of the following contents. • User Authentication Settings • Anonymous login • Security Policy The Security settings can be operated only when online, and only by the Administrator in the operation authority verification settings.
  • Page 63 3 Settings of the OPC UA Server Set the following items. Update Changes in Parameter Description Set value Default Timing RUN mode User The list of configured user names is dis- None When click- User name and pass- Authentica- played. ing the allowed.
  • Page 64 3 Settings of the OPC UA Server Precautions for Correct Use When you take security into consideration, be sure to clear None under Security Policy. Adding a User Name Add a user name. When you click the Add Button( ), the following Add a User Dialog Box is displayed. In the User name field, enter the user name, and enter the password in the Password and Confirm Password fields, and then click the OK Button.
  • Page 65: Server Status

    3 Settings of the OPC UA Server Transfering the Security Settings The Security Settings (user authentication setting, anonymous login, and security policy) displayed in the Security Settings Tab Page are transferred to the CPU Unit. Click the Transfer to Controller Button. The following dialog box is displayed. Click the Yes Button to transfer the User name and Password displayed in the User Authentica- tion Settings to the CPU Unit.
  • Page 66: Operations For The Opc Ua Settings

    3 Settings of the OPC UA Server 3-2-9 Operations for the OPC UA Settings The following table shows whether the setting data of the OPC UA Settings is applied for each opera- tion of synchronization (transfer), backup or restore, or Clear All Memory. OK: Applicable, AS:Applicable by selection, NA: Not applicable Operations Backup...
  • Page 67: Creating Variables For Opc Ua Communications

    3 Settings of the OPC UA Server Creating Variables for OPC UA Com- munications This section describes how to create variables for OPC UA communications. The variables that can be published to OPC UA communications are the global variables *1. System-defined variables can not be published to OPC UA communications. 3-3-1 Global Variables Published to OPC UA Communications To publish global variables to the OPC UA communications, the attributes of variables is set to Network...
  • Page 68: Adding Or Deleting Network-Published Variables

    3 Settings of the OPC UA Server 3-3-2 Adding or Deleting Network-published Variables You can add or delete network-published variables in either of the following ways: • Downloading (synchronization) after editing the global variable table offline • Online editing 3 - 26 NJ-series CPU Unit OPC UA User’s Manual (W588)
  • Page 69: Starting And Checking The Status Of The Opc Ua Server

    Starting and Checking the Status of the OPC UA Server This section describes how to start or stop the OPC UA Server, and also how to check the status of the OPC UA Server. 4-1 Starting or Stopping the OPC UA Server ......4-2 4-1-1 How to Start or Stop the OPC UA Server .
  • Page 70: Starting Or Stopping The Opc Ua Server

    4 Starting and Checking the Status of the OPC UA Server Starting or Stopping the OPC UA Server This section describes how to start or stop the OPC UA Server. 4-1-1 How to Start or Stop the OPC UA Server The method of starting and stopping the OPC UA Server and the method of starting the OPC UA Server after stopping it are described below.
  • Page 71: Conditions Under Which The Opc Ua Server Cannot Be Started

    4 Starting and Checking the Status of the OPC UA Server Starting the OPC UA Server after Stopping It To start the OPC UA Server after shutting it down, either cycle the power supply to the Controller or reset the Controller. 4-1-2 Conditions under Which the OPC UA Server Cannot be Started The OPC UA Server cannot be started in the following cases.
  • Page 72: Operation Of The Opc Ua Service Function In Each State Of The Cpu Unit

    4 Starting and Checking the Status of the OPC UA Server 4-1-4 Operation of the OPC UA Service Function in each State of the CPU Unit The execution state of the OPC UA service function changes depending on the state of the CPU Unit. The operation of the OPC UA service function in the startup state, normal operation, and error state is described below.
  • Page 73: Checking The Status Of The Opc Ua Server

    4 Starting and Checking the Status of the OPC UA Server Checking the Status of the OPC UA Server This section describes how to check the status of the OPC UA Server. You can use the following methods to check the status of the OPC UA Server. •...
  • Page 74 4 Starting and Checking the Status of the OPC UA Server Category Item Description Operation OPC UA Server Displays the setting status of the OPC UA Server. Information Any one of the following is displayed. • Use • Do not use Server operating Displays the operating status of the OPC UA Server.
  • Page 75: Checking Based On The Event Log

    4 Starting and Checking the Status of the OPC UA Server 4-2-2 Checking Based on the Event Log You can check the operating status of the OPC UA Server by the event log of the Controller. For details, refer to 9-2 Troubleshooting on page 9-7. 4-2-3 Checking Based on the Execution Log You can check the operating status of the OPC UA Server by the Execution Log function of the OPC...
  • Page 76 4 Starting and Checking the Status of the OPC UA Server • If the OPC UA server is set to Use after the Controller power is turned ON , the OPC UA Server enters the Initializing state. When the initialization process is complete, the OPC UA Server enters the Preparing state, then it shifts to the Running state after the completion of preparation.
  • Page 77: Conditions For Reconfiguring The Opc Ua Server

    4 Starting and Checking the Status of the OPC UA Server 4-2-5 Conditions for Reconfiguring the OPC UA Server The OPC UA Server is reconfigured if the following changes are made while the OPC UA Server is run- ning. • When synchronization (download) is executed •...
  • Page 78 4 Starting and Checking the Status of the OPC UA Server 4 - 10 NJ-series CPU Unit OPC UA User’s Manual (W588)
  • Page 79: Security Function Of Opc Ua Server

    Security Function of OPC UA Server This section describes the security function of the OPC UA Server. 5-1 Details of the Connection Authentication Function of the OPC UA Server ........5-2 5-1-1 Application Authentication .
  • Page 80: Details Of The Connection Authentication Function Of The Opc Ua Server

    5 Security Function of OPC UA Server Details of the Connection Authentica- tion Function of the OPC UA Server This section describes the following two stages of connection functions in detail with regard to the con- nection authentication function of the OPC UA Server. Function Description Application authentication...
  • Page 81 Algorithm of the signature added to the certificate. rithm Issuer CN = NxOpcUaServer@[IPAddress]:, O = Omron Corporation, L = Kyoto, S = Kyoto, C=JP [IPAddress] is the IP address of the built-in EtherNet/IP port at the time of automatic generation.
  • Page 82 5 Security Function of OPC UA Server Precautions for Correct Use When you download to the CPU Unit a project for which OPC UA Server is set to Use in the OPC UA Settings, and then cycle the power supply to the Controller, the server certificate is automatically generated by the IP address of the built-in EtherNet/IP port at that time.
  • Page 83: User Authentication

    5 Security Function of OPC UA Server Addition of the Client Certificate (Transfer to the CPU Unit) This function is executed in cases where the OPC UA Server requires the client certificate before connecting to the OPC UA client. Note that addition (transfer) of the client certificate to the CPU Unit can be executed only by the Administrator set as the operation authority.
  • Page 84: Details Of The Message Security Function

    5 Security Function of OPC UA Server Details of the Message Security Function This section describes the details of the message security function in the OPC UA communications. In the OPC UA Server, the signature and encryption of messages allowed by the server is set by a security policy.
  • Page 85: Connecting From The Opc Ua Client And Reading/Writing Variables

    Connecting from the OPC UA Cli- ent and Reading/Writing Variables This section describes establishing a connection from the OPC UA client and read- ing/writing the variables of the OPC UA Server. 6-1 Connecting from the OPC UA Client ......6-2 6-1-1 Specifying the URL of the Target OPC UA Server .
  • Page 86: Connecting From The Opc Ua Client

    6 Connecting from the OPC UA Client and Reading/Writing Variables Connecting from the OPC UA Client This section presents an overview of connecting to the OPC UA Server from the OPC UA client. Execute the following on the OPC UA server from the OPC UA client. •...
  • Page 87: Reading/Writing Variables From The Opc Ua Client

    6 Connecting from the OPC UA Client and Reading/Writing Variables Reading/Writing Variables from the OPC UA Client This section describes the address space of the NJ-series Controller visible to the OPC UA client, and also reading/writing the variables of the CPU Unit from the OPC UA client. 6-2-1 Address Space of the NJ-series Controller The address space of the NJ-series Controller is published as described below.
  • Page 88 6 Connecting from the OPC UA Client and Reading/Writing Variables Controller State The Controller state is displayed as shown below under DeviceState. Properties Description Values ErrorState Indicates the error state • NoError: Normal of the Controller. • MajorFault: Major fault •...
  • Page 89: Reading/Writing The Variables Of The Cpu Unit

    6 Connecting from the OPC UA Client and Reading/Writing Variables 6-2-2 Reading/Writing the Variables of the CPU Unit With a read/write request from the OPC UA Client, global variables can be read from or written to the CPU Unit via the target OPC UA Server. Reading/writing the Global Variables of the CPU Unit The OPC UA Server publishes only those global variables to the OPC UA client in which the network pub- lish attribute is Publish Only, Output, or Input.
  • Page 90 6 Connecting from the OPC UA Client and Reading/Writing Variables Settings of Global Variable Attributes Global variable Setting of the variable on the OPC UA Server attribute Name Set to DisplayName and BrowseName. Data type Refer to Data Type of Variables Published to the OPC UA Client on page 6-6. Initial value AT specification Retained...
  • Page 91 6 Connecting from the OPC UA Client and Reading/Writing Variables • Array As for the arrays of the CPU Unit, as shown below, an entire array variable is published as one node. Example) ArrayVar1, ArrayVar2, and ArrayVar3 are array variables. GlobalVars ArrayVar1 ArrayVar2...
  • Page 92 6 Connecting from the OPC UA Client and Reading/Writing Variables Restrictions The restrictions on public variables in the OPC UA Server are described below. Scope of restriction Item Description All network-published Number of public variables 10,000 max. variables Number of value attributes 10,000 max.
  • Page 93 6 Connecting from the OPC UA Client and Reading/Writing Variables Method of Checking the CPU Unit When an address space is prepared in the OPC UA Server of the CPU Unit, the above restrictions are checked according to the procedures described below. Step 1: The group of network-published variables is sorted in the ascending order of the character code UTF-16 of the variable name.
  • Page 94 6 Connecting from the OPC UA Client and Reading/Writing Variables Method of Checking Variables Added through Online Editing For a variable added through online editing from the Sysmac Studio, the above check operation is performed for the added variable if any limit for all network-published variables has not been reached yet.
  • Page 95 Execution Log Functions This section describes how to use the Execution Logs for tracing the operations of the OPC UA Server. 7-1 Execution Logs ..........7-2 7-1-1 Overview .
  • Page 96: Execution Log Functions

    7 Execution Log Functions Execution Logs This section provides an overview of the Operation Logs, operational procedures, settings and specifi- cations for the Execution Logs. 7-1-1 Overview The Execution Logs are used to trace operations on the CPU Unit of the OPC UA Server. They are saved to the SD Memory Card (sold separately) mounted in the CPU Unit.
  • Page 97 7 Execution Log Functions Meaning of cat- Meaning of log name Description egory name Certificate Server certificate updated Registered when a server certificate is generated. Notice of expiration of Registered only once when the number of days left until expira- server certificate tion is less than 30.
  • Page 98: How To Use The Execution Log

    7 Execution Log Functions 7-1-2 How to Use the Execution Log Use the Execution Logs according to the following procedure. Step Reference STEP1 7-1-3 Setting the Execution Log on page 7-4 Set Execution Log. STEP2 NJ-series CPU Unit Hardware User’s Manual (Cat No. Insert the SD Memory Card W500) into the CPU Unit.
  • Page 99: Execution Log File Specifications

    7 Execution Log Functions 7-1-5 Execution Log File Specifications This section describes the specifications of Execution Log files. • Each Execution Log file is composed of multiple records. • Each record is expressed in one line. • The maximum number of records to be contained in each Execution Log file is set in the Sysmac Stu- dio.
  • Page 100 7 Execution Log Functions Parameter Size Description 8 bytes (Fixed) Time Displays hours, minutes, and seconds when the log was recorded. hh:mm:ss Example: 15:33:45 3 bytes (Fixed) Displays a 3-digit decimal integer (000 to 999) for the millisecond of Millisecond the time when the log was recorded.*1 Example: 10 ms: 010 623 ms: 623...
  • Page 101 7 Execution Log Functions Cate- code Meaning of log gory Details (Deci- name name name mal) SERV 0007 HaltEr- OPC UA Server Error message error Note Refer to below this table for a list of the error mes- (con- sages. tin- 0100 Max-...
  • Page 102 7 Execution Log Functions Cate- code Meaning of log gory Details (Deci- name name name mal) SERV 0110 NumOf- Number of OPC Format: Variables=xxxx, Values=xxxx, DataTypes=xxxx Vari- UA public variables • Variables: Total number of OPC UA public variables (con- ables •...
  • Page 103 7 Execution Log Functions Cate- code Meaning of log gory Details (Deci- name name name mal) CERT 0001 Update Server certificate Format: _Sever updated Distinguished name (common name) of certifi- 0002 Notify_- Notice of expiration cate<tab>Expiration date of certificate Server of server certificate •...
  • Page 104 7 Execution Log Functions Cate- code Meaning of log gory Details (Deci- name name name mal) CERT 0103 Discard Certificate dis- Details 1: (con- carded Type of certifi- tin- cate<tab>Store location ued) • Type of certificate: CLI- ENT: Client certificate •...
  • Page 105: Examples Of Records In Execution Log File

    7 Execution Log Functions *1 HaltError (OPC UA Server Error) Error Message List Error message Meaning Configuration Error Reading of the OPC UA Settings file failed. Cause There is no OPC UA Settings file. Or the file is damaged. Measure Download the OPC UA Settings file. Server Start Error Preparing of address space failed.
  • Page 106 7 Execution Log Functions • Example of when user authentication and application authentication end successfully, following a reconnection request from a client. 11 2017-10-17 14:54:39 AUTH 0002 User SUCCESS0x2ADA356B Anonymous 12 2017-10-17 14:54:39 AUTH 0001 Application OPEN 0x2ADA356B 192.168.255.2UaClient_1@SamplePC • Example of when the user shut down the OPC UA Server: 60 2017-10-17 16:05:45 SERVER0006 Shutdown...
  • Page 107: Checking The Execution Log

    7 Execution Log Functions Checking the Execution Log This section describes how to check Operation Logs stored in the SD Memory Card mounted in the CPU Unit. 7-2-1 How to Check the Execution Log You can use any of the following methods to check the Execution Log. •...
  • Page 108 7 Execution Log Functions The following information is displayed. Category Item Description Execution Displays a list of log records. Logs Displays the Entry, Date/Time, Category, Log Code, Operation and Log Name columns. The default data is displayed in the ascending order of entries. Clicking each column header sorts the list according to the name of the corre- sponding item.
  • Page 109 7 Execution Log Functions Select from the following options. Yes: Acquires the specified file from the Controller and then displays it. No: Displays the contents of the file that already exists on the computer without acquiring the selected file from the Controller. Cancel: The file list is displayed again.
  • Page 110: Checking Logs With The Sd Memory Card

    7 Execution Log Functions 7-2-3 Checking Logs with the SD Memory Card Remove the SD Memory Card from the CPU Unit and insert it into a computer. Then, check the con- tents of the logs in Microsoft Excel or a text editor or any other application. For the conditions for saving execution log files to the SD Memory Card and the method of replacing the SD Memory Card, refer to 7-4 SD Memory Card Operations on page 7-19.
  • Page 111: Opc Ua Server Shutdown Function

    7 Execution Log Functions OPC UA Server Shutdown Function This section describes the shutdown function of the OPC UA Server for preventing Execution Log data loss. Refer to 4-2 Checking the Status of the OPC UA Server on page 4-5 for details on the operating sta- tuses of the OPC UA Server.
  • Page 112: How To Execute The Shutdown Function

    7 Execution Log Functions a) The OPC UA Server is shut down by one of the followings: (1) Using the Sysmac Studio (2) Executing the OPCUA_Shutdown (Shutdown OPC UA Function) instruction b) The OPC UA Server shuts down. c) The connection is closed. d) The Execution Log files are saved to the SD memory card.
  • Page 113: Sd Memory Card Operations

    7 Execution Log Functions SD Memory Card Operations In the OPC UA Server, the SD Memory Card mounted in the CPU Unit is used for the Execution Log function. The Execution Log files are stored in the SD memory card. This section describes how to save the Execution Log files in the SD Memory Card and precautions for replacing the SD Memory Card.
  • Page 114: Execution Log Operation When Replacing The Sd Memory Card

    7 Execution Log Functions 7-4-3 Execution Log Operation when Replacing the SD Memory Card This section describes the Execution Log operation when the SD Memory Card is replaced while the OPC UA Server is running. Status during SD Memory Card Replacement When the SD Memory Card When no SD Memory When an SD Memory Card is...
  • Page 115: Other Functions

    Other Functions This section describes other functions of the OPC UA Server. 8-1 The Sysmac Studio Operation Authority Verification Related to the OPC UA Server ........8-2 8-2 Backup and Restore Functions Related to the OPC UA Server .
  • Page 116: The Sysmac Studio Operation Authority Verification Related To The Opc Ua Server

    8 Other Functions The Sysmac Studio Operation Authority Verification Related to the OPC UA Server This section describes the Sysmac Studio operation authority verification related to the OPC UA Server. This function is used to restrict online operations on the CPU Unit via the Sysmac Studio based on the granted authority.
  • Page 117 8 Other Functions Admin- Design Main- Opera- Observ Function Reference istrator tainer Security settings Display and edit 3-2-6 Security Set- (user authentica- tings on page 3-20 Transfer security tion settings, settings anonymous login, and security pol- icy) Service status Display and 4-2-1 Checking update Based on OPC UA...
  • Page 118: Backup And Restore Functions Related To The Opc Ua Server

    8 Other Functions Backup and Restore Functions Related to the OPC UA Server This section describes the functions for backing up and restoring data in the NJ-series CPU Unit that are related to the OPC UA Server. There are four types of features for backup and restoration. Refer to the NJ/NX-series CPU Unit Soft- ware User’s Manual (Cat.
  • Page 119: Backup Function

    8 Other Functions 8-2-1 Backup Function The following table indicates OPC UA Server-related data to be backed up by the CPU Unit backup function. Backed up by one of the following Data group for back Data Save location • SD Memory Card backup •...
  • Page 120: Restoration And Verification

    8 Other Functions 8-2-2 Restoration and Verification The following table shows OPC UA Server data items to be restored and verified by the CPU function. Restoration Verification Restored by Restored by one of the fol- one of the fol- Verified by one lowing lowing of the following...
  • Page 121: Compatibility Between Backup-Related Files

    8 Other Functions How to Select Whether or Not to Set OPC UA Security Profile as a Restore Target For restoring using the SD Memory Card Restore Function or the Sysmac Studio Controller Backup Function, you can select whether or not to restore the client certificates, CA certificates, Certificate Revocation List, and security settings together as the OPC UA Security Profile.
  • Page 122: How To Replace The Cpu Unit In Relation To The Opc Ua Server

    8 Other Functions 8-2-4 How to Replace the CPU Unit in Relation to the OPC UA Server The following shows how to replace the CPU Unit in relation to the OPC UA Server. Using the Controller backup functions (i.e., SD Memory Card backup function or the Sysmac Studio Controller backup function), back up the settings data other than the server certificate in the CPU Unit to the SD Memory Card or the computer as a backup file.
  • Page 123: Clear All Memory Function Related To The Opc Ua Server

    8 Other Functions Clear All Memory Function Related to the OPC UA Server This section describes the function for clearing all memory in the NJ-series CPU Unit from the Sysmac Studio that is related to the OPC UA Server. Clear All Memory is an operation to initialize the data in the CPU Unit from the Sysmac Studio. The following table shows whether or not each data of the OPC UA Server is target for the Clear All Memory function.
  • Page 124 8 Other Functions Select the following check box as needed. Check box Description Clearing the OPC UA server certif- If you select this check box, the OPC UA server certificate and OPC UA icate and security profile. security profile are cleared. If you deselect this check box, the OPC UA server certificate and OPC UA security profile are not cleared.
  • Page 125 8 Other Functions Click the OK Button. Reconfiguring Procedures After Clear All Memory After Clear All Memory, reconfigure the settings that are related to the OPC UA Server using the follow- ing procedures. When Not Clearing the Server Certificate And OPC UA Security Profile Reconfigure the OPC UA Server Settings offline from the Sysmac Studio and download them to the CPU Unit.
  • Page 126 8 Other Functions 8 - 12 NJ-series CPU Unit OPC UA User’s Manual (W588)
  • Page 127: Troubleshooting

    Troubleshooting This section describes the error confirmation methods and corrections for errors that can occur with the OPC UA Server. 9-1 Overview of Errors ..........9-2 9-1-1 How to Check for Errors .
  • Page 128: Overview Of Errors

    9 Troubleshooting Overview of Errors You manage all of the errors that occur on the NJ-series Controller as events. The same methods are used for all events. This allows you to see what errors have occurred and find corrections for them with the same methods for the entire range of errors that is managed (i.e., CPU Unit, EtherCAT slaves and CJ-series Units).
  • Page 129: How To Check For Errors

    9 Troubleshooting 9-1-1 How to Check for Errors You can check to see if an event has occurred with the following methods. Checking method What you can check Checking indicators CPU Unit operating status Checking with the troubleshooting func- You can check for current Controller errors, a log of past Controller tion of the Sysmac Studio errors, error sources, error causes, corrections, and error log of CJ-series Special Units.
  • Page 130 9 Troubleshooting Checking with the Troubleshooting Function of the Sysmac Studio When an error occurs, you can connect the Sysmac Studio online to the Controller to check current Controller errors and the log of past Controller errors. You can also check error causes and corrections. Refer to the NJ/NX-series Troubleshooting Manual (Cat.
  • Page 131: Error Checking Methods

    9 Troubleshooting 9-1-2 Error Checking Methods This section describes errors related to the OPC UA Server. Classification The source of OPC UA Server errors is described below. Event log category Detection loca- Event source Event source User-define tion details System log Access log d event log OPC UA Server...
  • Page 132 9 Troubleshooting OPC UA Server Errors The following tables list error events by event level. OPC UA Server Errors Error event level Error name Major fault None Partial fault None Minor fault • Execution Log Save Failed • OPC UA Server Setting Error •...
  • Page 133: Troubleshooting

    9 Troubleshooting Troubleshooting This section describes the errors that can occur in the OPC UA Server and the corrections for them. 9-2-1 Error Table Related to the OPC UA Server The errors (i.e., events) related to the OPC UA Server are given on the following pages. The following abbreviations and symbols are used in the event level column.
  • Page 134 9 Troubleshooting Level Event code Event name Meaning Assumed cause Reference Info 15020000 hex Server Certif- The IP address of The IP address of the built-in Eth- P. 9-13 icate Mis- the server certifi- erNet/IP port of the CPU Unit was match cate in the CPU changed when the OPC Server...
  • Page 135 9 Troubleshooting Level Event code Event name Meaning Assumed cause Reference Info 35D50000 hex Too Many The number of • When the OPC UA Server pre- P. 9-17 Public Value value attributes to pared the address space, the Attributes be published to the number of OPC UA value attri- OPC UA client butes has exceeded the upper...
  • Page 136 9 Troubleshooting Level Event code Event name Meaning Assumed cause Reference Info 95D40000 hex OPC UA The OPC UA • A restore was executed using a P. 9-22 Server Certif- Server certificate backup file created by a CPU icate and and Security Pro- Unit whose version does not Security Pro-...
  • Page 137: Opc Ua Server Error Description

    9 Troubleshooting 9-2-2 OPC UA Server Error Description This section describes the information that is given for individual errors. How to Read Error Descriptions The items that are used to describe individual errors (events) are described in the following copy of an error table.
  • Page 138 9 Troubleshooting Errors Related to the OPC UA Server Event name Execution Log Save Failed Event code 15000000 hex Meaning Failed to save the Execution Log to the SD Memory Card. PLC Function Module Source OPC UA Detection Continuously Source details Server timing...
  • Page 139 9 Troubleshooting Event name Server Certificate Mismatch Event code 15020000 hex The IP address of the server certificate in the CPU Unit is not the same as that of the built-in Ether- Meaning Net/IP port on the CPU Unit. PLC Function Module OPC UA At CPU Unit Server...
  • Page 140 9 Troubleshooting Event name OPC UA Server Setting Error Event code 35D00000 hex Meaning The OPC UA Server Settings are incorrect. PLC Function Module OPC UA At Download, Source Server Detection at CPU Unit Source power ON, at details timing Controller reset Level Minor fault...
  • Page 141 9 Troubleshooting Event name Server Certificate Expiration Notice Event code 35D20000 hex Meaning The server certificate is close to expiring. PLC Function Module OPC UA At CPU Unit Server power ON, at Source Detection Controller Source details timing reset, or Peri- odically (every 24 hours) Level...
  • Page 142 9 Troubleshooting Event name Unsupported Data Type Event code 35D40000 hex When the OPC UA Server was prepared, the network-published global variables included a data type Meaning variable that cannot be published to the OPC UA client. PLC Function Module OPC UA At CPU Unit Server...
  • Page 143 9 Troubleshooting Event name Too Many Public Value Attributes Event code 35D50000 hex The number of value attributes to be published to the OPC UA client exceeded the upper limit when the Meaning OPC UA Server was prepared. PLC Function Module OPC UA At CPU Unit Server...
  • Page 144 9 Troubleshooting Event name OPC UA System Processing Error Event code 44180000 hex Meaning A fatal error was detected in the OPC UA Server. PLC Function Module Source OPC UA Detection Source details Server timing Level Observation Log category System Error attributes Recovery User pro-...
  • Page 145 9 Troubleshooting Event name OPC UA Client Connection Rejected Event code 85600000 hex Meaning A connection request from an OPC UA client was rejected. PLC Function Module OPC UA When receiv- Server ing a connec- Source Detection Source tion request details timing from a OPC...
  • Page 146 9 Troubleshooting Event name OPC UA Server Started Event code 95D00000 hex Meaning The OPC UA Server started. PLC Function Module Source OPC UA Detection At start of OPC Source details Server timing UA Server Level Information Log category System Error attributes Recovery User pro-...
  • Page 147 9 Troubleshooting Event name Server Certificate Generated Event code 95D20000 hex A server certificate was generated. Meaning • The server certificate is automatically generated when there is no server certificate. • The server certificate is generated when Regenerate certificate is performed. PLC Function Module OPC UA When a server...
  • Page 148 9 Troubleshooting OPC UA Server Certificate and Security Profile 95D40000 hex Event name Event code Cleared Meaning The OPC UA Server certificate and Security Profile has been cleared. PLC Function Module OPC UA At Download, Server restore opera- tion, Clear All Source Detection Source...
  • Page 149 9 Troubleshooting Errors Related to the OPC UA Instructions This section provides a table of errors (events) that occur for the following instruction. The lower four digits of the event code give the error code for the instruction. OPC UA instruction Name OPCUA_Shutdown Shutdown OPC UA Server...
  • Page 150 9 Troubleshooting Event name OPC UA Server Being Initialized Event code 54015001 hex The OPCUA_Shutdown (Shutdown OPC UA Function) instruction could not be executed because the Meaning OPC UA Server was being initialized. PLC Function Module OPC UA At instruction Source Detection Source...
  • Page 151: Opc Ua Server-Specific Troubleshooting

    9 Troubleshooting OPC UA Server-specific Trouble- shooting This section shows the problems, causes, corrections, related event logs, and Execution Logs for OPC UA server-specific troubleshooting. Related logs Execution Symp- Cause 1 Cause 2 Correction Event log (Category, log code, and log name) Cannot The connec-...
  • Page 152 9 Troubleshooting Related logs Execution Symp- Cause 1 Cause 2 Correction Event log (Category, log code, and log name) OPC UA Server of Set OPC UA Server to Use. Cannot The OPC connect UA Server OPC UA Server Set- Use setting tings is set to Do not (cont.) is incorrect.
  • Page 153 9 Troubleshooting Related logs Execution Symp- Cause 1 Cause 2 Correction Event log (Category, log code, and log name) The CA-signed client Update all CA certificate Client Connec- Cannot Application con- CA-signed certificate has been revocation lists up to the root tion Rejected Authentica- nect...
  • Page 154 9 Troubleshooting Related logs Execution Symp- Cause 1 Cause 2 Correction Event log (Category, log code, and log name) Error occurs The specified data Set Data Encoding of the Cannot con- when a ses- encoding method is OPC UA client to UA Binary. nect sion is cre- not supported by the...
  • Page 155 9 Troubleshooting Related logs Execution Symp- Cause 1 Cause 2 Correction Event log (Category, log code, and log name) The client The maximum num- More than 32 client certifi- Client Certifi- Cannot Certificate con- certificate ber of client certifi- cates cannot be registered in cate Discarded Discarded nect...
  • Page 156 9 Troubleshooting Related logs Execution Symp- Cause 1 Cause 2 Correction Event log (Category, log code, and log name) The publish attribute Set the publish attribute of A vari- A global able can- variable of of the global variable the global variable of the not be the CPU is set to Do not pub-...
  • Page 157 9 Troubleshooting Related logs Execution Symp- Cause 1 Cause 2 Correction Event log (Category, log code, and log name) The structure mem- Refer to the value attributes A vari- No node for able can- structure ber cannot be for details on the members of not be member.
  • Page 158 9 Troubleshooting Related logs Execution Symp- Cause 1 Cause 2 Correction Event log (Category, log code, and log name) Read/write The EtherNet/IP Check the network environ- Application A vari- able error cable has become ment. Authentica- cannot disconnected, com- tion (AUTH, be read munications has 0001, Applica-...
  • Page 159: Appendices

    Appendices This section describes the error confirmation methods and corrections for errors that can occur with the OPC UA Server. A-1 Task Design Procedure ......... A-2 A-1-1 Startup Time of the OPC UA Server (Reference Values) .
  • Page 160: A-1 Task Design Procedure

    Appendices A-1 Task Design Procedure This section describes the task design procedure for the OPC UA Server. Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) for the task and system service operation specifications of the NJ-series Controllers. A-1-1 Startup Time of the OPC UA Server (Reference Values) The time required to get the OPC UA Server ready for operation after turning on the power of the CPU...
  • Page 161: Guidelines For System Service Execution Time Ratio

    Appendices Precautions for Correct Use The OPC UA Server is executed as a system service. Accordingly, if other system services are executed while the OPC UA Server is starting up, they may take longer. A-1-2 Guidelines for System Service Execution Time Ratio The OPC UA Server is executed as a system service.
  • Page 162: A-1-3 Checking The System Service Execution Time Ratio

    Appendices A-1-3 Checking the System Service Execution Time Ratio When you design tasks, confirm that sufficient execution time can be allocated to system services by the following methods. Desktop Calculation This is an example for a project that consists of one primary periodic task. Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat.
  • Page 163 Appendices Calculating Times on the Actual Controller When the project consists of one primary periodic task, check the average task execution time using the Task Execution Time Monitor function on the Sysmac Studio connected online with the actual Controller. • For NJ501 00 Average task execution time <...
  • Page 164: A-2 Opc Ua Instruction

    Appendices A-2 OPC UA Instruction This section describes the OPC UA instructions. Refer to the NJ/NX-series Instructions Reference Manual (Cat. No. W502) for details on the vari- ables common to the NJ-series instructions. A-2-1 OPCUA_Shutdown (Shutdown OPC UA Function) The OPCUA_Shutdown (Shutdown OPC UA Function) instruction requests the termination of the OPC UA functions so that the controller power supply can be safely turned OFF.
  • Page 165: A-2-3 Related System-Defined Variables

    Appendices A-2-3 Related System-defined Variables None A-2-4 Related Error Codes Error code Error name Description 16# 041D Too Many Instructions Executed at the More than 32 OPC UA instructions were executed at the Same Time same time. 16# 5000 OPC UA Server Shutdown or Shutting The instruction was executed after the OPC UA Server was Down shut down or while the OPC UA Server was being shut...
  • Page 166: A-2-7 Additional Information

    Appendices A-2-7 Additional Information If this instruction is executed on the simulator, no processing is performed, and the output variables are as shown below. Output Meaning Data type Execution results variable Done Done BOOL TRUE Busy Executing BOOL FALSE Error Error BOOL FALSE...
  • Page 167: Nj-Series Cpu Unit Opc Ua User's Manual (W588)

    Appendices Structured Text (ST) Main Variables Name Data type Initial value Comment OPCUA_Shutdown_instance OPCUA_Shutdown Instance of OPCUA_Shutdown (Shutdown OPC UA Function) instruction. Trigger BOOL FALSE Variable used as a trigger for shut- ting down the OPC UA Server. LastTrigger BOOL FALSE Variable to retain the trigger status of the previous execution.
  • Page 168: When Ca-Signed Client Certificates Supported

    Appendices A-3 When CA-signed Client Certificates Supported This Appendix describes an overview and settings of a CA-signed client certificate, as well as how to operate a CA-signed client certificate on the Sysmac Studio. A-3-1 Overview For a CA-signed client certificate, you must make the settings from the Client Authentication Tab Page and the Issuer Authentication Tab Page in the OPC UA settings (online) from the Sysmac Stu- dio.
  • Page 169: A-3-2 Settings

    Appendices A-3-2 Settings For a CA-signed client certificate, you must make the following settings in the OPC UA settings (online) from the Sysmac Studio. The certificates that must be registered differ depending on the authentication means and the type of CA certificate.
  • Page 170 Appendices The following Client Authentication Tab Page appears. (A) Trusted Certificate List (B) Certificate Revocation List (C) Update Button A - 12 NJ-series CPU Unit OPC UA User’s Manual (W588)
  • Page 171 Appendices The following information is displayed. Item Description (A) Trusted Certificate List The Trusted Client Certificate List in the CPU Unit is displayed. • Common name, expiration of validity period, organization, domain name are displayed. • The default display order is ascending order of common names. You can sort the list by the name of each item by clicking each column header.
  • Page 172 Appendices (A) Trusted Certificate List (B) Certificate Revocation List (C) Update Button The following information is displayed. Item Description (A) Trusted Certificate List The Trusted CA Certificate List in the CPU Unit is displayed. • Common name, expiration of validity period, organization, domain name are displayed.
  • Page 173: List Of Related System-Defined Variables

    Appendices A-4 List of Related System-defined Vari- ables This section lists the system-defined variables related to the OPC UA Server. A-4-1 System-defined Variables for the Overall NJ/NX-series Controller (No Category) Functional Classification: SD Memory Card Related Range of Variable name Name Function Data type...
  • Page 174: A-5 Version Information

    The following table gives the relationship between the unit versions of CPU Units and OPC UA stan- dard versions. OPC UA standard ver- CPU Unit model Unit version of CPU Unit sion NJ501-1300 Ver.1.17 Ver.1.02 NJ501-1400 NJ501-1500 A-5-2 Relationship between Unit Versions and the Sysmac Studio Ver-...
  • Page 175: Index

    Index NJ-series CPU Unit OPC UA User’s Manual (W588) I - 1...
  • Page 176 Index Index address space ............21, 6-3 Network Publish ............. 6-6 Anonymous login ............3-21 node ................21 application authentication ......... 21, 5-2 number of members per structure type variable .... 6-8 assumed cause ............. 9-7, 9-10 number of structure definitions that can be published ..6-8 authentication based on anonymous ......
  • Page 177 Index use of the OPC UA Server ..........3-6 User authentication ...........22, 5-5 User Authentication Settings .........3-21 value attributes ..............6-4 NJ-series CPU Unit OPC UA User’s Manual (W588) I - 3...
  • Page 178 Index I - 4 NJ-series CPU Unit OPC UA User’s Manual (W588)
  • Page 180 The Netherlands 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 All Rights Reserved. OMRON (CHINA) CO., LTD. OMRON ASIA PACIFIC PTE. LTD. In the interest of product improvement, Room 2211, Bank of China Tower, No.

This manual is also suitable for:

Nj501-1400Nj501-1500

Table of Contents