日本語 English

OMRON PLC Sample Programs

About the Sample Programs

This page provides sample programs and technical documents for OMRON PLCs.

It covers technical information usable in real equipment development, such as the NX/NJ series, CS/CJ series, NA HMIs, OPC UA, Modbus and EtherNet/IP.

It also introduces implementation examples such as ladder programs, structured text (ST), communication programs and database integration.

OMRON NX/NJ series samples

CJ/CS

Memory operations

Memory operations

Shift a string 8 bits toward the upper side

Status check

Status check

How to measure how long a bit stays ON

Save data to CF in CSV format

Save data to CF in CSV format

When a flag turns ON, write memory values with date/time data to CF

FBs for various calculations

FBs for various calculations

The NX/NJ series calculation library ported to the CS/CJ series

Archive

Archive

Samples made in the past

NA

Tips (WAZA)

Tips (WAZA)

Small tips for the NA

IAG

IAG

Display bar charts, scatter plots, Gantt charts and Pareto charts

Host applications

CX-Compolet

CX-Compolet

Connect a PC and a PLC using Compolet and read values

OPC UA

OPC UA

Connect a PC and a PLC using the OPC UA protocol and read values

FINS Message Communication

FINS Message Communication

Connect a PC and a PLC using Compolet and read values

CIP message communication

CIP Message Communication

Sends CIP messages from a PC to a PLC connected to an EtherNet/IP port and reads values

Modbus

Modbus

An explanation of the Modbus protocol from Modicon Inc.

BI tools

BI tools

Visualize data with BI tools
Visualizing EtherCAT diagnostic and statistical information

Reference

Documents

POUs and tasks
Variables
Constants
Naming rules
Functions and function blocks
Namespaces
ST language
Custom functions/FBs
Libraries
CJ-NJ instruction replacement guide
CJ2M vs CJ3M
NS-V2 vs NS-B