Okita System Design

NewTopics

"[New product] CJ3M and NS-B series, which let you use existing CJ2M and NS assets as is, launching in November" is interesting, but this one interests me more...
OMRON
Added NS-V2 vs NS-B
PLC
Added CPU unit specification comparison by manufacturer
OMRON
Added CJ2M vs CJ3M
RaspberryPi
Added Raspberry Pi: recording PLC data in SQLite
RaspberryPi
Added What is a Raspberry Pi
RaspberryPi
Added Raspberry Pi initial setup and server construction
PLC
Added Motion control instruction comparison by manufacturer
PLC
Added FUN/FB comparison by manufacturer
PLC
Added System variable comparison by manufacturer
PLC
Added Application instruction comparison by manufacturer
PLC
Added Special relay comparison by manufacturer
MITSUBISHI
Added Q / L / iQ-R series special relays (SM) and special registers (SD) list
KEYENCE
Added KV-X system-defined variable list
KEYENCE
Added CR/CM KV/KV-X correspondence table
KEYENCE
Added CR/CM comparison table by model
KEYENCE
Added PLC model comparison
PC Tools
Added the CJtoKV ladder converter
OMRON
Updated FINS addresses
MITSUBISHI
Added MC protocol communication
KEYENCE
Added Host Link communication

Welcome

This site publishes sample programs based on testing with real equipment.
I would be glad if these samples lead to new ideas and improvements.
If you are having trouble with processing or communication not covered here, I also accept requests for sample creation and technical consultation.
Please feel free to contact me through the contact form.

Please read before using the samples

Terms of Use

The samples introduced here are distributed free of charge by Okita System Design. Be sure to read the Terms of Use before using them.

Topics

PLC

WhatsPLC

What Is a PLC?

Explains the role and features of the PLC, and how it relates to what is often called a "sequencer" in Japan.

IEC61131-3

IEC61131-3

Explains IEC 61131-3, the international standard for PLC programming.

plcopen

PLCopen

An overview of PLCopen and its standardized function blocks.

plctrend

PLC: Beyond

A collection of ideas on how PLCs might evolve, and what would be interesting to see in the future.

Comparison by manufacturer

devices

CPU Unit Specification Comparison by Manufacturer

Compares CPU unit specifications from major PLC manufacturers such as Mitsubishi, OMRON and KEYENCE.

devices

Device Comparison by Manufacturer

Compares the device addresses of major PLC manufacturers such as Mitsubishi, OMRON and KEYENCE.

relay

Special Relay Comparison by Manufacturer

Compares the special relays of major PLC manufacturers such as Mitsubishi, OMRON and KEYENCE.

function

Application Instruction Comparison by Manufacturer

Compares the application instructions of major PLC manufacturers such as Mitsubishi, OMRON and KEYENCE.

systemvar

System Variable Comparison by Manufacturer

Compares the system variables of OMRON NX and KEYENCE KV-X.

systemvar

FUN/FB Comparison by Manufacturer

Compares the functions and function blocks of OMRON NX and KEYENCE KV-X.

motion

Motion Control Instruction Comparison by Manufacturer

Compares the motion control instructions of OMRON NX and KEYENCE KV-X.

MITSUBISHI

Host applications

MELSEC MC protocol communication

MC protocol communication

MELSEC MC protocol communication

Reference

Special Relay (SM) and Special Register (SD) List

SM / SD List

Special relays (SM) and special registers (SD) for Q series / L series / iQ-R series PLCs

KEYENCE

KV-X / KV Series

KV series data processing

Data Processing

Ring buffer, logging/trace, browser display of log data

KV series analysis

Analysis

Process capability index CPK

KV series analog

Analog

Digital filters, FFT

KV series calculation

Math

2D, 3D, vectors, rotation conversion, hyperbolic functions, matrices, quaternions, systems of three linear equations

KV series network

Network

FINS communication, MC protocol, EIP cyclic communication

KV series other

Other

How to measure how long a bit stays ON

Host applications

KV series OPC UA

OPC UA

How to connect via OPC UA

KV series CipObject

CipObject

CIP objects for the KV EtherNet/IP port

KEYENCE Host Link communication

Host Link Communication

KV Host Link communication

Reference

KV series model list

KV Series Model Comparison

KV-X KV800 KV7000 KV5000 KV3000 KV-Nano

CR/CM Comparison by Model

CR/CM Comparison by Model

CR/CM comparison across KV-X, KV-8000, KV-7000, KV-5000 and KV-3000

CR/CM Comparison by Model

CR/CM Cross-Reference: KV / KV-X

CR/CM and variable name correspondence between the KEYENCE KV-8000 series and the KV-X500/X300 series

CR/CM Comparison by Model

KV-X System-Defined Variable List

List of system-defined variables for the KEYENCE KV-X500/X300 series

OMRON

OMRON NX/NJ

NX series data processing

Data processing

Ring buffer, logging, recorder, graph display

NX series analysis

Analysis

Process capability index CPK, Xbar-R control chart, histogram, alarm prediction

NX series analog

Analog

Analog graphs, digital filters, FFT

NX series database

Database

BatchInsert, stored procedures

NX series host network

Host network

JSON library, IIoT, FTP, KV series connection, MITSUBISHI PLC connection, EIP cyclic communication with KV

NX series calculation library

Calculation library

2D, 3D, vectors, rotation conversion, hyperbolic functions, matrices, quaternions, systems of three linear equations, attitude control

NX series other

Other

Retained memory, ATAN2, elapsed time, IAI SCON connection, mutual exclusion

CS/CJ Series

CJ series automatic address allocation

Automatic address allocation

Automatically allocates variables to a specified memory area without specifying addresses

CJ series byte shift

Byte shift

Shifts a string starting from the low byte of memory toward the high side

CJ series measuring bit ON time

Measuring how long a bit is ON

Can also be used to measure takt time and so on

CJ series calculation FBs

Calculation FBs

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

CJ series archive

Archive

Samples made in the past

NA Series

NA series tips

Tips

Fonts, progress bars, zeros after the decimal point

NA series charts

Charts

Vertical bar chart, horizontal bar chart, scatter plot, bubble chart, Gantt chart, Pareto chart, band chart, scatter plot + line

Host applications

Reference

PC Tools

Communication

PLC Status

Converter

Raspberry Pi

Raspberry Pi

What Is a Raspberry Pi?

What is a Raspberry Pi

Explains the features and types of the Raspberry Pi.

setup

Board setup

Steps for making a Raspberry Pi usable as a server

Applications

sqlite

Recording PLC data in SQLite

A sample that reads PLC data every second and records it in SQLite

Python

PLC communication

OMRON FINS Communication

FINS communication with OMRON products

KEYENCE Host Link communication

Host Link communication with KEYENCE PLCs

MITSUBISHI MC protocol communication

MC protocol communication with MITSUBISHI PLCs