KVtoCJ
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)
| KV8000 | CJ2H | |||
|---|---|---|---|---|
| Relays | R | 32000 | CIO | 6144 |
| Internal auxiliary relays | MR | 64000 | WR | 8192 |
| Latch relays | LR | 16000 | HR | 8192 |
| Link relays | B | 32768 | ||
| Timers | T | 4000 | T | 4096 |
| Counters | C | 4000 | C | 4096 |
| Control relays | CR | 1280 | AR | 48128 |
| Data memory | DM | 65535 | DM | 32768 |
| Extended DM | EM | 65535 | EM | 32768 x 25 |
| File registers | FZ | 524288 | ||
| FM | 32768 x 16 | |||
| Link registers | W | 32768 | ||
| Temporary DM | TM | 512 | ||
| Index | Z | 23 | IR | 16 |
| DR | 16 | |||
| Control memory | CM | 9600 | ||
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)
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
Files named ???.cj are output to the destination
Example: when the c:\temp\cj-convert folder is specified
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
4. Paste the converted program
Open the ???.cj file in the folder output by KVtoCJ.exe with Notepad or similar
Select all of the Notepad contents (CTRL+A etc.), copy (CTRL+C), then paste (CTRL+V) into the CX-Programmer program
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
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
→→→
Switch the view to ladder diagram

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
↓
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
Compares the device addresses of major PLC manufacturers such as Mitsubishi, OMRON and KEYENCE.
PLC

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
Compares the application instructions of major PLC manufacturers such as Mitsubishi, OMRON and KEYENCE.
PLC

System Variable Comparison by Manufacturer
Compares the system variables of OMRON NX and KEYENCE KV-X.
PLC

FUN/FB Comparison by Manufacturer
Compares the functions and function blocks of OMRON NX and KEYENCE KV-X.
PLC

Motion Control Instruction Comparison by Manufacturer
Compares the motion control instructions of OMRON NX and KEYENCE KV-X.
MITSUBISHI

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 across KV-X, KV-8000, KV-7000, KV-5000 and KV-3000
KEYENCE

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
A guide to replacing CJ instructions with NJ instructions
PC Tools

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
