日本語 English

CJ Series → NJ Series Instruction Replacement Guide

Instruction Replacement Guide

This is a list of examples of instructions that behave similarly when replacing CS/CJ instructions with NJ ones
It simply lists instructions that look similar, so use it only as a reference for instruction names
Forcing yourself to use NJ instructions that resemble CJ ones can make things harder to use, so choose according to your program logic
(Created in 2013)

CJ-NJ Instruction Replacement Guide (CJNJGuide.pdf, Japanese)

Instruction Replacement Guide

Special Auxiliary Relay Table

This lists similar system-defined variables, or variables and instructions that seem related, for replacing CJ series special auxiliary relays on the NJ
They do not behave identically, so use this only as a reference
For details, compare the CJ and NJ manuals and decide for yourself
CJ: Appendix 3, Special Auxiliary Relay List, in the CPU Unit User's Manual (Software)
NJ: A-7, System-defined Variable List, in the CPU Unit User's Manual (Software)

Condition flag
CJNJ
Condition flagNameVariable name
P_ERError flagP_PRGER
P_AERAccess Error Flag
P_CYCarry flagP_CY
P_GT> flag
P_EQ= flag
P_LT< flag
P_NNegative flag
P_OFOverflow Flag
P_UFUnderflow Flag
P_GE>= Flag
P_NE≠ Flag
P_LE<= Flag
P_OnAlways ON flagP_On
P_OffAlways OFF flagP_Off
Clock pulses
CJNJ
Clock pulsesNameFUN
P_0_1ms0.1msGet100usClk
P_1ms1msGet1msClk
P_0_01s10msGet10msClk
P_0_02s20msGet20msClk
P_0_1ms100msGet100msClk
P_0_2ms200msGet200msClk
P_1s1sGet1sClk
P_1min1minGet1minClk
Read-only Auxiliary Area
CJNJ
AddressNametypeInstruction/variable name
A010 ms incrementing free-running timerFUNGet**Cnt
A1100 ms incrementing free-running timer
A21 s incrementing free-running timer
A50.00 - A69.15Basic I/O unit information
(rack 0 slot 0 to rack 3 slot 9)
Variables_CJB_IOUnitInfo
A90-93User program date
A94-97Parameter date
A99.00UM read protection status
A99.01Task read protection status
A99.02Program write protection status
A99.03Program memory card backup prohibited status
A99.14IR/DR operation between tasks
A100 - 199Error log area
A200.11First cycle ON flag at start of operationVariablesP_First_RunMode
A200.12Step Flag
A200.14Task Started Flag
A200.15Task First Start FlagVariablesP_First_Run
A201.10Online Editing Wait Flag
A201.11Online Editing Processing Flag
A202.00 - 202.07Network Communications Enabled FlagOutputs of instructions such as SerialSend
A202.08CJ2-dedicated network communications instruction enabled flag
A202.15Network communications automatic allocation enabled flag
A203 - 210Network communications completion code
A211Number of CJ2-dedicated network communications instructions available
A213.00 - 213.07Explicit Communications Error Flag
A214.00 - 214.07Network communications completion one-cycle ON flag
A215.00 - 215.07Network communications completion one-cycle ON error flag
A216 - 217Network communications response code storage address
A218Communications port number used
A219.00 - 219.07Network Communications Error Flag
A220 - 259Basic I/O unit input response timeVariables_CJB_InRespTm
A260I/O Allocation Status Flag
A261I/O table creation error details
A262 - 263Maximum cycle timeVariables_<task name>_MaxExecTime
A264 - 265Current cycle time (0.1 ms)Variables_<task name>_LastExecTime
A266 - 267Current cycle time (0.01 ms)
A270 - 275High-speed counter (0,1) status area
A276 - 281Pulse output (0,1) status area
A283PWM output (0,1) status area
A293Version error details
A294Task number when program stopped
A295Program error related flagsVariablesP_PRGER
A298 - 299Program address where program stopped
A300Error log pointer
A301EM current bank
A302CPU Bus Unit Initializing FlagVariables_CJB_CBU00InitSta ... _CJB_CBU15InitSta
A315Error flag
A316 - 321High-speed counter (2,3) status area
A322 - 327Pulse output (2,3) status area
A329PWM output (2,3) status area
A330 - 335Special I/O Unit Initializing FlagVariables_CJB_SIO00InitSta ... _CJB_SIO95InitSta
A336Number of units verified at startup
A339 - 340Max. differentiation flag number
A343.00 - 343.02Memory card type
A343.06EM file memory format error flag
A343.07Memory card format error flagVariables_Card1Err
A343.08File write errorFBError output of instructions such as FileWrite
A343.09File write disabled flagVariables_Card1Protect
A343.10File read error flagFBError output of instructions such as FileRead
A343.11File missing flag
A343.13File memory operation flagVariables_Card1Access
A343.14File access flag
A343.15Memory card recognition complete flagVariables_Card1Ready
A344Trace memory related
A345Information in source/comment memory
A346 - 347Remaining data in data file transfer
A351 - 354Clock dataVariable
FUN
_CurrentTime
GetTime
A360 - 391Executed FAL numberVariable
FUN
_AlarmFlag
GetAlarm
A392 - 393Serial port related
A395.06 - 395.07File deletion notification flagVariables_Card1PowerFail
A395.10ER/AER flag during background processing
A395.11Memory corruption notification flag
A395.12DIP switch 6 status flag
A400Error code
A401.03Card transfer error flag
A401.05Version error flag
A401.06FALS error flag
A401.08Cycle time too long flagVariables_<task name>_Exceeded
A401.09Program error flag
A401.10I/O setting error flag
A401.11Too many I/O points flag
A401.13Duplicate unit number error flag / duplicate expansion number error flag
A401.14I/O bus error
A401.15Memory error flag
A402.00Other non-fatal errors
A402.02Special I/O unit setting error flag
A402.03CPU bus unit setting error flag
A402.04Battery error flagVariables_SelfTest_LowBattery
A402.06Special I/O unit error flag
A402.07CPU bus unit error flag
A402.10PLC Setup error flag
A402.12Basic I/O unit error flag
A402.13Duplicate refresh error flag
A402.15FAL error flagVariables_AlarmFlag
A403Memory error location
A404I/O bus error slot number, rack number
A405.08Interrupt input unit position error flag
A407Too many I/O points details
A408Basic I/O unit error slot number, rack number
A409Duplicate expansion rack number flag
A410CPU bus unit duplicate unit number flag
A411 - 416Special I/O unit duplicate unit number flag
A417CPU bus unit error unit number flag
A418 - 423Special I/O unit error unit number flag
A426Unit number with duplicate refresh error
A427CPU bus unit setting error unit number flag
A428 - 433Special I/O unit setting error unit number flag
A438Pulse output 2 stop error code
A439Pulse output 3 stop error code
A440Max. interrupt task processing time
A441Interrupt task number with max. processing time
A444Pulse output 0 stop error code
A455Pulse output 1 stop error code
A450 - 485Memory area specification
A10001 - 10003Manufacturing lot number
A10100Synchronous control executing flag
A10101Synchronous data link send error
A10102Synchronous control cycle setting time
A10120 - 10121Pulse output 0 output frequency
A10122 -10123Pulse output 1 output frequency
A10124 - 10125Pulse output 2 output frequency
A10126 - 10127Pulse output 3 output frequency
A10128 - 10129High-speed counter 0 range comparison conditions 1 to 32 in-range flags
A10130 - 10131High-speed counter 1 range comparison conditions 1 to 32 in-range flags
A10132 - 10133High-speed counter 2 range comparison conditions 1 to 32 in-range flags
A10134 - 10135High-speed counter 3 range comparison conditions 1 to 32 in-range flags
A10136 - 10137High-speed counter 0 ring counter max. value
A10138 - 10139High-speed counter 1 ring counter max. value
A10140 - 10141High-speed counter 2 ring counter max. value
A10142 - 10143High-speed counter 3 ring counter max. value
A10144 - 10145Interrupt input 0 latch present value
A10146 - 10147Interrupt input 1 latch present value
A10148 - 10149Interrupt input 2 latch present value
A10150 - 10151Interrupt input 3 latch present value
A10152 - 10153Interrupt input 4 latch present value
A10154 - 10155Interrupt input 5 latch present value
A10156 - 10157Interrupt input 6 latch present value
A10158 - 10159Interrupt input 7 latch present value
Read/Write Special Auxiliary Relays
CJNJ
AddressNametypeInstruction/variable name
A500.12IOM Hold Bit
A500.13Forced Status Hold Bit
A500.14Error log pointer reset bit
A500.15Output OFF Bit
A501 - 501.15CPU bus unit restart bitsVariables_CJB_CBU00Restart
A502 - 507.15Special I/O unit restart bitsVariables_CJB_SIO00Restart
A508.09Differentiate monitor completed flag
A508.11Trace trigger monitor flagVariables_PLC_TraceSta[0..3].IsTrigger
A508.12Trace completed flagVariables_PLC_TraceSta[0..3].IsComplete
A508.13Trace busy flag
A508.14Trace trigger flagVariables_PLC_TraceSta[0..3].IsTrigger
A508.15Data trace start bit
A510 - 511Power ON time
A512 - 513Power interruption time
A514Number of power interruptions_PowerOnCount
A515 - 517Operation start time
A518 -520Operation stop time
A523Power-on time_PowerOnHour
A526.00Serial port restart bit
A527.00 - 527.07Password for accessing the online editing disabled flag
A527.09Online editing disabled flag
A528.00 - 528.07Serial port error flag
A529FAL/FALS number for system error simulation
A530Power interruption disabled area setting
A531.00 - 531.03High-speed counter 0-3 reset bits
A531.08 - 531.11High-speed counter 0-3 gate flags
A532 - 535Interrupt counter 0-3 set values
A536 - 539Interrupt counter 0-3 present values
A540 - 543Pulse output 0-3 signals
A544 - 547Interrupt counter 4-7 set values
A548 - 551Interrupt counter 4-7 present values
A580Number of resends for communications instructions in FBs
A581Response monitoring time for communications instructions in FBs
A582Response monitoring time for DeviceNet communications instructions in FBs
A595 -596IR00 output during background processing
A597DR00 output during background processing
A598.00Teaching flag for FPD instruction
A598.01Equals flag output during background processing
A600Argument area for MCRO instruction
A600 - 603Argument area for MCRO instruction
A604 - 607Return value area for MCRO instruction
A619.02Serial port settings changing flag
A620 - 635Serial communications unit settings changing flagVariables_CJB_SCU00P1ChgSta ... _CJB_SCU15P2ChgSta
A650Program replacement flags
A651Program replacement password
A654 - 657Program replacement source file name
A720 - 749Power ON time history data

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

PC Tools

Converter from KV series to CJ series

KVtoCJ

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

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

Comments