Okita System Design

OSD Tools logo
OSD ToolsPLC Communication Test Tool Set

The Free edition is free. One Pro license unlocks all five tools

TCP/UDPEtherNet/IP · CIPMC protocolFINSModbus TCP
Learn more
EquipStat icon
EquipStatEquipment Status LoggerNEW

Record equipment status and errors from PLCs and view them in a browser. Up to 50 PLCs

FINSKV Host LinkMC protocolEtherNet/IP · CIP30-day free trial
Learn more

NewTopics

PC
Added the EquipStat page
PLC
Added communication error code guides (MC protocol, FINS, Modbus, EtherNet/IP CIP)
PC
Added the OSD Tools page
PC
Updated ComCom, CipMes, McpMes, FinsMes and ModbusTcpMes and added Pro editions
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

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.

Communication Error Codes

Modbus exception code list

Modbus Exception Codes

Meanings and fixes for Modbus TCP / RTU exception codes 01 to 0B

CIP status code list

EtherNet/IP CIP Status Codes

Meanings and fixes for CIP general and extended status codes

MC protocol error code list

MC Protocol Error Codes

End codes of the Mitsubishi PLC MC protocol (SLMP)

FINS end code list

FINS End Codes

End codes of OMRON PLC FINS communication

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

ComEmulator RS-232C and Ethernet communication emulator

ComEmulator

Emulates simple external devices on a PC

CalcFCS FCS calculation tool

CalcFCS

Calculates the FCS (frame check sequence)

PLC Status

CJStat OMRON CJ series status monitor

CJStat

Shows the status of OMRON CJ series PLCs

NXStat OMRON NX/NJ series status monitor

NXStat

Shows the status of OMRON NX/NJ series PLCs

KVStat KEYENCE KV series status monitor

KVStat

Shows the status of KEYENCE KV series PLCs

Converter

KVtoCJ ladder converter from KV series to CJ series

KVtoCJ

Converts KEYENCE KV ladder to OMRON CJ

CJtoKV ladder converter from CJ series to KV series

CJtoKV

Converts OMRON CJ ladder to KEYENCE KV

OSD Tools

OSD Tools PLC communication test tool set

OSD Tools

Five tools in one series

ComCom2026 TCP/UDP communication test tool

ComCom

Sends the messages you build over TCP/UDP and checks the response

CipMes2026 EtherNet/IP and CIP communication analysis tool

CipMes

Communicates with KEYENCE and OMRON PLCs over EtherNet/IP and CIP

McpMes2026 Mitsubishi MC protocol communication test tool

McpMes

Tests the Mitsubishi PLC MC protocol (3E frame)

FinsMes2026 OMRON FINS communication test tool

FinsMes

Tests FINS communication (UDP/TCP) with OMRON PLCs

ModbusTcpMes2026 Modbus TCP communication test tool

ModbusTcpMes

Creates and sends Modbus TCP commands for testing

EquipStat

EquipStat equipment status logger

EquipStat

Records equipment status and errors from PLCs and shows them in a browser (Japanese UI)

NEW

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

Python OMRON FINS communication

OMRON FINS Communication

FINS communication with OMRON products

Python KEYENCE host link communication

KEYENCE Host Link communication

Host Link communication with KEYENCE PLCs

Python Mitsubishi MC protocol communication

MITSUBISHI MC protocol communication

MC protocol communication with MITSUBISHI PLCs