Welcome to the Industrial Automation website!

NameDescriptionContent
HONG  KANG
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

OMRON NJ/NX OPC UA Configuration Guide

来源: | 作者:FAN | 发布时间 :2026-05-07 | 9 次浏览: | 🔊 Click to read aloud ❚❚ | Share:

OMRON NJ/NX Series Controller OPC UA Server Implementation and Security Configuration Complete Guide

In modern industrial automation systems, breaking down the data barriers between the control layer and IT systems (such as MES, SCADA) is the key to achieving intelligent manufacturing. OPC UA (Open Platform Communication Unified Architecture), as a platform independent, secure and reliable communication protocol, has become the core standard of Industry 4.0. Omron has integrated OPC UA server functionality into its NJ/NX series Machine Automation Controller, allowing the upper system to directly and securely access variable data within the controller through standard Ethernet without the need for intermediate conversion computers. This article aims to provide engineers with a detailed technical guide on configuring, optimizing, and maintaining OPC UA servers on NJ/NX series controllers.

System Overview and Applicable Hardware

The OPC UA server function enables NJ/NX series CPU units to act as OPC UA servers, accepting connection requests from SCADA or other OPC UA clients, and enabling read and write operations on global variables and function block instances within the controller. This feature is deeply integrated with the built-in EtherNet/IP port (specific port) of the controller.

Supported CPU models:

Not all CPUs support this feature, please confirm the hardware version before use:

NX701-1 □□□: Unit version 1.24 or higher.

NX502-1 □□□: Unit version 1.60 or higher.

NJ501-1 □□□: Unit version 1.17 or higher.

NX102- □□□□: Unit version 1.30 or higher.

Key specification limitations:

Connection port: limited to the built-in EtherNet/IP port of the CPU unit (specifically PORT 1 for NX701/NX502/NX102).

Maximum number of sessions: The server can support up to 5 OPC UA client sessions simultaneously.

Monitoring items: The entire server supports up to 2000 monitoring items (up to 20000 for specific models and higher versions).

Number of variables to be published: Up to 10000 network variables can be published (the higher version NX701 supports 100000).


Detailed configuration steps: from beginner to proficient

The configuration of the NJ/NX OPC UA server is mainly divided into four stages: network layer settings, security settings, variable publishing, and online operations, all of which are carried out in Omron's Sysmac Studio software environment.

2.1 Basic Network Settings: Determination of IP Address

OPC UA communication relies on a stable IP address.

Navigate to Configuration and Settings ->Controller Settings ->Built in EtherNet/IP Port Settings.

In TCP/IP settings, select "Fixed settings" or "IP address obtained from BOOTP server".

Important warning: It is strongly not recommended to use DHCP (Dynamic Host Configuration Protocol). The server certificate is bound based on the IP address at the time of generation. If there is a subsequent change in IP address, it will result in a mismatch between the server certificate and IP, causing client connection failure and triggering the 'Server Certificate Mismatch' event.

2.2 OPC UA Server Core Settings

Enable service:

In the multi view browser of Sysmac Studio, find Configuration and Settings ->OPC UA Settings ->OPC UA Server Settings.

Change the 'Server Function Settings' from' Do Not Use 'to' Use '.

Key step: After downloading this project to the controller, it is necessary to cycle the controller to power off and then power on or perform a "controller reset" before the OPC UA server can start.

Endpoint and Port Configuration:

The 'Endpoint' field will automatically display the server's URL in the format of opc.tcp://[IP address]: [port number]/. The default IP is 192.168.250.1 and the default port is 4840.

The 'port number' can be customized (range 1025 to 65535), but it is necessary to ensure that the port is not occupied by other services such as FTP, HTTP, etc.

Execution log settings:

To trace the operational status, connection requests, and errors of OPC UA servers, it is strongly recommended to enable execution logs.

Set 'Record Execution Log' to 'Record'.

The number of configurable files (2-100) and the number of records per file (100 to 65536). The log files are saved on the SD memory card of the CPU unit.

2.3 Variable Release: Building Address Space

OPC UA clients need to access controller data through address space. Engineers need to specify which variables are visible to the outside world.

Global variable release:

In the global variable editor, find the variable that needs to be published.

Set its' Network Publishing 'attribute to' Publish Only ',' Input ', or' Output '. System defined variables cannot be published.

User defined feature block variable release (supported in higher versions):

You can select a specific namespace or feature block instance for publishing in the "Network Publishing Settings" of the "OPC UA Server Settings".

This allows structured control logic (such as motor control blocks) to be directly exposed to the upper system.

Expansion control of structures and arrays:

In the 'Node Settings', you can control whether to' expand structure members' and 'expand array elements'.

When selecting 'expand', each member of the structure or each element of the array will be published as an independent node, making it easier for the client to read and write finely. Choosing 'not expand' will treat the entire node as a whole, with a smaller communication load.

Deep Analysis of Security Models

The core advantage of OPC UA lies in its security. The NJ/NX controller implements multiple layers of security mechanisms to ensure that only authorized clients and users can access data.

3.1 Application authentication: Handshake based on X.509 certificate

This is authentication between the server and the client.

Server certificate:

The CPU unit serves as a server and holds a self signed certificate.

Automatic generation: After setting OPC UA to "use" for the first time and restarting, the system automatically generates a certificate using the IP address of the current built-in EtherNet/IP port. Its validity period is usually 20 years.

Manual regeneration: When a 'server certificate mismatch' or IP address change occurs, the certificate must be manually regenerated. Operation path: In online mode, right-click on OPC UA server settings ->server certificate ->regenerate certificate. DN information (organization, city, country, etc.) and validity period can be modified here.

Export: After generating a new certificate, it must be saved as a. der file using the "Export" button and installed on all OPC UA clients that allow connections.

Client certificate:

The client needs to prove its identity to the server.

Import: Administrators can add trusted client certificates (. der files) to the "Trusted Certificate List" of the controller.

Auto Reject: If an unregistered client attempts to connect, its certificate will be automatically placed in the "Reject Certificate List" and the connection will be rejected. The administrator can move the certificate from this list to the trusted list in the future to authorize the client.

3.2 User authentication: Control operation permissions

In addition to device authentication, operator authentication can also be performed.

Username/Password: Administrators can add up to 20 users in "Security Settings". Username (4-32 characters) and password (8-32 characters) are case sensitive.

Anonymous login: You can choose "disable" or "allow". For security reasons, it is recommended to prohibit anonymous login in actual production environments.

Role function (supported in higher versions):

Different users can be assigned roles (Observer, Operator, Maintainer, Designer, Administrator).

The hierarchical progression of role permissions. For example, Observer can only browse and read, not write; And Operator and above can execute methods and write variables.

Even the required roles can be set for different namespace nodes to achieve fine-grained permission control.

3.3 Message Security Strategy: Encryption and Signature

In the "Security Policy" section of the "Security Settings", you can define the communication encryption modes allowed by the server.

None: Not recommended for use in production environments.

Signature: Only sign the message to ensure data integrity (tamper proof), without encryption.

Signature and Encryption: Simultaneously sign and encrypt the message to ensure integrity and confidentiality (anti eavesdropping).

Algorithm selection: Supports Basic128Rsa15, Basic256, Basic256Sha256, as well as newer Aes128Sha256RsaOaep and Aes256Sha256RsaPss.

Best practice: For security reasons, clear the "none" and weaker Basic128Rsa15 options, and choose "sign and encrypt" combined with strong algorithms.


Client Connection and Data Interaction

After completing the server-side configuration, the OPC UA client can connect.

Connection URL: The client needs to use the URL defined in the "endpoint" for connection, such as OPC tcp://192.168.250.1:4840/ .

Security negotiation: The client must choose the security policies and modes allowed by the server.

User login: Depending on the server settings, provide a username/password or perform anonymous login.

Address space browsing: After a successful connection, the client can browse the address space. The typical structure is Objects ->DeviceSet ->[Controller Name] ->GlobalVars, where all published variables can be seen.

Read and write operations: The client can read or write to specific nodes. Write permission is subject to a combination of variable attributes (such as constants), user roles, and node security policies.

Operation, maintenance, and troubleshooting

5.1 Start and Stop

Startup: As mentioned earlier, it automatically starts after downloading the configuration and restarting the controller.

Manual stop: You can execute the OPCUA_Shutdown command or click "Server Shutdown" on the "Server Status" page of Sysmac Studio. After stopping, the controller needs to be restarted before it can run again.

5.2 Status Monitoring

Server Status: When Sysmac Studio is online, check the "Server Status" page to obtain the current status (running, error, closed), the number of connected clients, and the number of users.

Event log: The controller's event log will record OPC UA related errors (such as certificate mismatch, variable count exceeding limit, etc.).

Execution log: A detailed log file stored in the SD card, which records authentication success/failure, variable access details, etc. You can view it through the "Display Operation Log" window of Sysmac Studio or directly on the SD card (file path:/packages/OPCUA_Server/ExecutionLog/).

5.3 Common Errors and Countermeasures

Server certificate mismatch (event code 15020000 hex):

Reason: The IP address of the controller has changed, but the server certificate has not been regenerated.

Solution: Manually regenerate the server certificate and export the new certificate for installation on all clients.

Connection rejected (client in rejection list):

Reason: The client's certificate was not added to the controller's' trusted certificate list '.

Solution: On the client authentication page, move the corresponding certificate from the "Rejected Certificate List" to the "Trusted Certificate List".

Variable cannot be read or written:

Reason: Variable size exceeds 60KB; array starting index is non-zero; Structure nested more than 3 layers; The total number of global variables exceeds the upper limit; Insufficient user role permissions.

Check: Check the execution log for records related to SERVER-0100 or SERVER-0101, and adjust the variable structure or optimize the number of publications according to the prompts.

5.4 Hardware replacement and backup recovery

CPU replacement: Server certificates are hardware related information and are not included in regular backups. After replacing the CPU, even if the backup is imported, the server certificate must be regenerated on the new CPU and the new certificate must be exported and installed on the client.

Backup strategy: The controller backup function of Sysmac Studio can backup OPC UA server settings, client certificates, security policies, etc. But when restoring, you can choose whether to restore the OPC UA security configuration file. Execution logs need to be managed separately as they are stored on an SD card.


Performance considerations and system design

Startup time: The startup time of the OPC UA server (from restart to running state) is related to the number of variables published and the proportion of task execution time. The more variables there are, the slower the startup.

System service execution time: The OPC UA server runs as a system service. If the CPU task cycle is too full, resulting in insufficient system service execution time (reference value below 20%), it will cause OPC UA response delay or timeout. Sufficient time should be reserved for system services when designing tasks.

Online editing: When the OPC UA server is running, it is allowed to add network publishing variables through online editing without restarting the server. The newly added variables will be dynamically added to the address space.

  • Siemens 6AG1214-1AG40-4XB0 PLC
  • OMRON CJ1W-AD081-V1 Analog Unit
  • OMRON C500-CPU11-E PLC CPU
  • OMRON NX-ECC201 EtherCAT Coupler
  • OMRON F300-A20S Camera Interface
  • Mitsubishi 80173-109-01 PLC Module
  • Fanuc A16B-2200-0141 PCB Board
  • Lenze EPL10200 PLC Module
  • OMRON CJ1M-CPU13 PLC CPU Unit
  • Yaskawa SGMPH-04AAA61D-OY Motor
  • OMRON NX-SOD400 Safety Output
  • Control Techniques V1800 Flux Vector Drive
  • Yaskawa SGDH-04AE-OY Servo Drive
  • OMRON NT-DRT21 DeviceNet Interface
  • OMRON C500-RM001-V1 Remote I/O Master
  • OMRON C500-AD006 Analog Input Module
  • OMRON 3G3MV-A4055 Inverter Drive
  • OMRON F150-C15E-3 Vision Mate Controller
  • OMRON CS1G-CPU44H PLC CPU
  • GE Fanuc DS6800CCIE1E1D CPU Module
  • Omron CP1L-M30DR-A PLC CP1W-CIF01 CPU Unit
  • Heraeus 585923 2M130 M8 Electrode Assembly Sensor
  • Omron C40P-EDT1-D C Series PLC Controller
  • Yaskawa SGMGH-09DCA6F-OY Servo Motor SGDH Driver
  • Datalogic SG-BWS-T4-MT Safety Control Unit Category 4
  • Pro-face PFXLM4301TADDC HMI Controller LT-4301M
  • Mitsubishi FX1N-60MR-DS PLC Main Unit 60 I/O
  • Omron NJ501-1320 Sysmac Database Connection CPU
  • Omron CJ1W-ETN21 Ethernet Unit CJ Series Module
  • Siemens 6ES7517-3AP00-0AB0 CPU 1517-3 PN/DP
  • Pasaban MTC-3052 Fast I/O PLC Module
  • Mitsubishi FX3U-128MR/ES-A PLC
  • OMRON CS1W-CLK21 Controller Link Unit
  • Yokogawa ADV151-E63 Digital Input Module
  • Allen Bradley MPL-B680B-M-X227 Motor
  • OMRON CJ1W-NC413 4-Axis Position Unit
  • Yaskawa SGMGH-30DCA6H-OY Servo Motor
  • Bosch 1070075337-101 Output Card
  • OMRON CQM1-CPU45-EV1 PLC CPU Unit
  • Siemens 6SE7090-0XX84-0AG1 CU3 Control Module
  • OMRON CQM1-TC101 Temperature Control Module
  • MOOG OEM-1030-422 Wind Energy PLC Controller
  • OMRON ZFX-C15 Vision Sensor
  • Square D 8702SCO2V02 Reversing Contactor
  • OMRON C20-LK201-EV1 PLC Link Adapter
  • OMRON NB7W-TW01B HMI PLC
  • Siemens 7ME6920-1AA10-1AA0 Flow Transmitter
  • Allen Bradley 1791-8BR Block I/O Module
  • OMRON CQM1-AD041 Analog Input Module
  • OMRON CJ1M-CPU21 PLC Module
  • Omron Z500-MC10E-001 Laser Profile Controller
  • Omron NA5-7W001B-V1 NA Series Programmable Terminal HMI
  • Allen-Bradley 1606-XLS960EE Power Supply 960W 24VDC
  • GE DS3800NEPB1F1E Power Excitation Board Mark IV
  • Yaskawa SGDH-04AE-OY Sigma-II Servo Drive 400W
  • Allen-Bradley 2711P-RBT7 PanelView Plus 7 Bezel
  • CCS PD3-3024-3-EI Digital Control Unit 3 Channel
  • Yaskawa CPU301 MP3300 Controller JAPMC-CP3301-2-E
  • Omron C40P-EDR-D PLC C Series P Type Controller
  • Omron NX-SID800 Safety Input Unit 8 PNP 24VDC
  • ABB SCC-C 23070-0-10232110 gas cooler
  • Sick LGTN101-521 CPU Module
  • Okuma 1911-2836 PLC Circuit Board
  • Mitsubishi Melsec PM-120M PLC
  • Omron F210-C15 Vision Mate Controller System
  • Siemens 7ML5110-1GD07-4AF3 Ultrasonic Level Gauge
  • ABB Pluto S46 V2 Safety Relay
  • Omron Z3RN-5A Optical Serial Link
  • Omron R7D-APA3H 30W Servo Drive
  • Giddings Lewis 502-03638-41R3 PLC Processor
  • Omron SCY-P1 Sequencer Controller
  • Siemens C98043-A7002-L1-13 PCB Board
  • SACS TECNICA Palletizer PC PLC Control System
  • AutomationDirect T1F-14THM PLC Module T1F14THM
  • OMRON C200H-AD003 Analog Input Unit PLC Module
  • Applied Materials 0010-A0000 Electricity Box PLC 200mm
  • ABB RVT-6 Power Factor Controller RVT6
  • Allen-Bradley 2094-BC01-MP5-M Kinetix 6000 Axis Module
  • OMRON FQM1S-MC233 Motion Controller PLC Module
  • OMRON C200H-SNT31 PLC Special I-O Module
  • Yaskawa SGMPH-04AAA61D-OY Servo Motor 400W 200V
  • Yaskawa SGMGH-09DCA6F-OY AC Servo Motor 850W 400V
  • REFU ELEKTRONIK SR17002 PLC Logic Module Circuit Board
  • Siemens 6DP1231-7AA PLC Board Module Industrial Control
  • ABB SACE ISOMAX S3 N 160 Molded Case Circuit Breaker
  • OMRON C120-SC024-V1 SYSMAC C120 Compact PLC Unit
  • OMRON CJ1W-SCU41-V1 Serial Communication Unit PLC Module
  • OMRON 3G3MX2-A4110-ZV1 MX2 Variable Frequency Drive
  • Yaskawa SGDH-04AE-OY Sigma-II Servo Driver 400W 200V
  • OMRON CQM1-AD041 Analog Input Module PLC I/O Unit
  • Delta Omega XML2-0060-45-4/S-A Servo Drive
  • Omron CJ1W-AD041 Analog Input
  • Omron CJ1W-NC271 Position Control Unit
  • Omron CJ1G-CPU45H PLC CPU
  • Omron CJ1W-EIP21 EtherNet/IP Unit
  • Omron F210-C15 Vision Mate Controller
  • Omron CQM1H-ADB21 Analog I/O Board
  • Omron GRT1-PRT PROFIBUS DP-V1 Adapter
  • Omron CP1H-Y20DT-D PLC CPU
  • TE.CO TFX 4G 1.5 Grey Cable 470m
  • Yaskawa SGDH-04AE-OY Servo Driver 400W 200V
  • OMRON CJ1H-CPU66H V4.0 PLC CPU
  • OMRON R7M-A10030-BS1 Servo Motor 200W 100V
  • OMRON FQM1-MMA21 Motion Controller
  • Yaskawa SJDE-08APA Servo Amplifier
  • OMRON CQM1-AD041 Analog Input Unit
  • Siemens OCI55 Dialogue Module Landis
  • OMRON F350-C10E Image Processing Unit
  • OMRON NT10S-SF121 HMI Terminal
  • SIEMENS 3RB1262-0LB31 Overload Relay
  • OMRON YASKAWA SGDS-02A12A Servo Drive
  • TE.CO TFX 4G 1.5 Grey Cable ST 500m
  • FANUC A16B-3200-0362 PCB Control Board
  • OMRON CQM1-ARM21 Analog Output Unit
  • Allen-Bradley 1788-EN2DN Ethernet DeviceNet Gateway
  • Siemens 3VL9440-7EE40 3VL4740-2AA46-0AA0 Circuit Breaker
  • OMRON CJ1W-AD041-V1 Analog Input Unit
  • OMRON CQM1-AD041 CQM1-IPS02 Analog Input Power Supply
  • Texas Instruments System 505 PLC 525-110 525-1102
  • OMRON CQM1-AD042 Analog Input Unit
  • Yaskawa SGDH-04AE-OY Servo Driver 200V 400W
  • CTI 2512 75W Power Supply for CTI 2500
  • Omron F300-B5 Image Processing Unit
  • Mitsubishi 15050-PR01A PLC Board
  • Omron CQM1-TC101 Temperature Controller
  • SCE M68-2000 2 Axis Motion Controller HW 2.3/B
  • Omron 3Z4SP-C22 Visual Positioning Sensor
  • Omron 3G3SV-BB007-E 0.75kW VFD