日本語 English

KVtoCJ iconKVtoCJ
Ladder converter from KEYENCE KV series to OMRON CJ series

KVtoCJ is a conversion tool for migrating ladder programs for the KEYENCE KV-8000, KV-7000, KV-5500, KV-5000 and KV-3000 series to CX-Programmer format for the OMRON CJ1M, CJ2M and CJ2H.

Overview

An application that converts KEYENCE KV series ladder circuits into OMRON CJ ladder circuits
It converts as much of the circuit as possible, but not every instruction can be converted
Instructions that cannot be converted are shown in red in the mnemonics when pasted into CX-Programmer

KV and CJ Memory Correspondence Table

KV memory addresses are converted to CJ memory as follows
(the numbers are the maximum addresses)

KV and CJ Memory Correspondence Table
KV8000CJ2H
RelaysR32000CIO6144
Internal auxiliary relays MR64000WR8192
Latch relays LR16000HR8192
Link relays B32768
Timers T4000T4096
Counters C4000C4096
Control relaysCR1280AR48128
Data memory DM65535DM32768
Extended DM EM65535EM32768 x 25
File registersFZ524288
FM32768 x 16
Link registers W32768
Temporary DM TM512
Index Z23IR16
DR16
Control memoryCM9600

Procedure

1. Save the project as mnemonics in KV-STUDIO

Open the project you want to convert in KV-STUDIO, select [File] - [Mnemonic List] - [Save], and save it to any folder
Files named ???.mnm are created in the specified folder
Example: when the c:\temp\kv-project folder is specified (an mnm file is created for each module)

Folder example
Folder example

2. Run KVtoCJ.exe

Run KVtoCJ.exe and specify the folder saved in step 1 as the source folder
Likewise specify the folder for the converted output as the destination folder and press the [Convert] button

KVtoCJ screen
KVtoCJ screen

Files named ???.cj are output to the destination
Example: when the c:\temp\cj-convert folder is specified

Output example
Output example

3. Start CX-Programmer and switch to the mnemonic view

Start CX-Programmer and create a new program
To show mnemonics, select [View] - [Mnemonics] from the menu

Mnemonic view in CX-Programmer
Mnemonic view in CX-Programmer

4. Paste the converted program

Open the ???.cj file in the folder output by KVtoCJ.exe with Notepad or similar

Open in Notepad
Open in Notepad

Select all of the Notepad contents (CTRL+A etc.), copy (CTRL+C), then paste (CTRL+V) into the CX-Programmer program

Paste into CX-Programmer
Paste into CX-Programmer

5. Switch to the ladder view

Text shown in red in the mnemonic view is what could not be converted
Fix the parts that could not be converted by hand

For example
For example

KV ladder diagram (a circuit created only to check the conversion; no real circuit looks like this)

6. Fix by hand

The red text in the converted mnemonics needs fixing by hand because KV's CR2009 corresponds to two OMRON flags, P_CY and P_LT, and the tool cannot decide which to use
Here it is fixed to P_LT by hand

Fix CR2009 to P_LT by hand
CR2009 →→→ fixed to P_LT by hand

Switch the view to ladder diagram

Ladder diagram view
Ladder diagram view
Wrapped circuit view
Wrapped circuit view

Handling Parts That Could Not Be Converted

Parts that could not be converted

Parts that could not be converted are shown in red
If there is a similar instruction, it is written in parentheses () after the original instruction
If there is no similar instruction, the ladder circuit must be rewritten

Example of fixing different memory addresses

The date/time memory layout differs, so it must be adjusted

Date and time
Date and time

↓

Date/time after fixing by hand
Date/time after fixing by hand

Other

Instructions that use the internal register with <LDA> or <STA> cannot be converted as-is, so similar instructions are written in parentheses ()
Use them as a reference when fixing by hand

FAQ

Can it convert all instructions?

No. Some KEYENCE-specific instructions need to be fixed by hand.

Which CX-Programmer models are supported?

It outputs in mnemonic format for the CJ1M, CJ2M and CJ2H.

Can it be used for models other than KV8000?

The KV7000, KV5500, KV5000 and KV3000 series are also supported.

Related pages

PLC

Device Comparison by Manufacturer

Device Comparison by Manufacturer

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

PLC

Device Comparison by Manufacturer

Special Relay Comparison by Manufacturer

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

PLC

Application Instruction Comparison by Manufacturer

Application Instruction Comparison by Manufacturer

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

PLC

System Variable Comparison by Manufacturer

System Variable Comparison by Manufacturer

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

PLC

systemvar

FUN/FB Comparison by Manufacturer

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

PLC

motion

Motion Control Instruction Comparison by Manufacturer

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

MITSUBISHI

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

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

KEYENCE

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

OMRON

CJ to NJ Instruction Replacement Guide

CJ to NJ Instruction Replacement Guide

A guide to replacing CJ instructions with NJ instructions

PC Tools

Converter from CJ series to KV series

CJtoKV

An application that converts OMRON CJ series ladder programs into KEYENCE KV series ladder programs

Download

By downloading, you are deemed to have agreed to the Terms of Use

Comments