OMRON NX/NJ Series Sample Programs
Sample programs for the OMRON NX/NJ series.
Practical PLC programs for EtherNet/IP communication, IIoT, data processing, database connection, analog calculation, FFT analysis and more.
Samples
Data processing

Ring buffer FB
An FB that puts data into and takes data out of a ring buffer

Logging
Logs the state of PLC memory in various ways

Recorder
Records the state of PLC memory using logging techniques

Graph display of collected data
How to graph data collected by the PLC in a browser
Analysis

Process capability index Cpk
Calculates Cpk

Xbar-R control chart
Calculates an Xbar-R control chart

Histogram
Creates histogram data

Alarm prediction
Measures the time taken by machine operations and predicts the number of operations until the alarm value is likely to be exceeded
Analog

Analog graphs
Graphs analog data on the NA

Digital filters
Calculates LPF, HPF, BPF, Notch, LSF, HSF, Peak and AllPass filters

FFT
Performs FFT calculations
Database

Insert, Bacthinsert
Inserting data (Insert) and batch inserting (BatchInsert) are covered on the logging pages

Stored procedures
Calls stored procedures registered in the DB
Host network

JSON library
Converts JSON strings to dictionaries and gets values from dictionary keys

IIoT
Connect the PLC to AWS, to a DB, or via OPC UA to collect data

FTP
The PLC FTP server function and FTP client communication instructions

Connecting to the KEYENCE KV Series
KvLink library for connecting an NX series and a KV series via Host Link, CIP communication and CIP communication with tag specification

Connecting to MITSUBISHI PLCs
McLink library for connecting the NX series to MITSUBISHI PLCs with the MC protocol

EIP cyclic communication with the KV series
How to set up EIP cyclic communication between the NX series and the KV series
Calculation library

2D
Triangles, circumscribed, inscribed, polygons, plane geometry

3D
Solid geometry

Vectors
Vectors

Rotation conversion
Rotation conversion

Hyperbolic functions
Hyperbolic functions

Matrices
Matrices

Quaternions
Quaternions
Other
Solving a System of Three Linear Equations (Gaussian Elimination)

Attitude control
Attitude control
Other

Retained memory
Examines ways to extend retained variable memory

ATAN2
Four-quadrant ATAN calculation

Getting elapsed time
Measuring program processing time (in microseconds)

Connecting an IAI SCON
Connecting a PLC to an IAI SCON position controller

Mutual exclusion
How to do mutual exclusion for 64 items

