日本語 English

System Variable Comparison (KEYENCE KV-X / OMRON NJ/NX)

This table lines up, by function, the "system variables" of the KEYENCE KV-X500/X300 series and the "system-defined variables" of the OMRON NJ/NX series, both IEC 61131-3 compliant PLCs. Where NJ/NX has no system-defined variable, or the variable cannot be used directly from a user program, the instruction you can use instead is listed as "... instruction". Use it as a reference when migrating models or reading another manufacturer's PLC programs. For the meaning of the symbols, see the legend at the end of the page.

Clock

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Current date and time_CurrentDateTimeARRAY[0..5] OF UINT_CurrentTime
or GetTime instruction
DATE_AND_TIME
Current date and time (year)_CurrentDateTime[0]UINT_CurrentTimeDATE_AND_TIME
Current date and time (month)_CurrentDateTime[1]UINT_CurrentTimeDATE_AND_TIME
Current date and time (day)_CurrentDateTime[2]UINT_CurrentTimeDATE_AND_TIME
Current date and time (hour)_CurrentDateTime[3]UINT_CurrentTimeDATE_AND_TIME
Current date and time (minute)_CurrentDateTime[4]UINT_CurrentTimeDATE_AND_TIME
Current date and time (second)_CurrentDateTime[5]UINT_CurrentTimeDATE_AND_TIME
Day of week_DayOfWeekUINTGetDayOfWeek instruction—
Clock error_ProgramInfo.TimeErrorBOOL——

Always ON/OFF and clock pulses

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Always ON_AlwaysOnBOOLP_OnBOOL
Always OFF_AlwaysOffBOOLP_OffBOOL
10 ms clock pulse_Clock10msBOOLGet10msClk instruction—
100 ms clock pulse_Clock100msBOOLGet100msClk instruction—
1 s clock pulse_Clock1sBOOLGet1sClk instruction—

First scan and execution status

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
ON for 1 scan at start of operation_FirstScanOnBOOLP_First_RunModeBOOL
OFF for 1 scan at start of operation_FirstScanOffBOOL——
Module/program first execution_ProgramFirstRunBOOL——
FB first execution_ProgramFirstRunBOOL——
ON for 1 scan when module execution starts_ModuleFirstScanOnBOOLP_First_RunBOOL
OFF for 1 scan when module execution starts_ModuleFirstScanOffBOOL——
Module/program executing_MD_(ModuleName)BOOL_<TaskName>_Active
or PrgStatus
or Task_IsActive instruction
BOOL

Scan time and task time

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Program execution information (structure)_ProgramInfo_PROGRAM_INFO——
Current scan time.ScanTimeUDINT_<TaskName>_LastExecTime
or GetMyTaskStatus instruction
TIME
Minimum task execution time.MinScanTimeUDINT_<TaskName>_MinExecTime
or GetMyTaskStatus instruction
TIME
Maximum scan time.MaxScanTimeUDINT_<TaskName>_MaxExecTime
or GetMyTaskStatus instruction
TIME
Clear min/max scan time.ScanTimeMaxMinClearBOOL——
Measured END processing time.EndProcTimeUDINT——
Constant scan time setting.FixScanTimeSetUDINTGetMyTaskInterval instruction—
END processing time setting.EndProcTimeSetUDINT——
Constant scan time operation enabled.FixScanTimeEnableBOOL——
END processing time setting enabled.FixEndProcTimeEnableBOOL——
Set time exceeded.FixTimeExcessBOOL_<TaskName>_Exceeded
or GetMyTaskStatus instruction
BOOL
Scan time when setting exceeded.ExcessConstantScanTimeUDINT——
END processing time when setting exceeded.ExecssEndProcTimeUDINT——
Task execution count——_<TaskName>_ExecCount
or GetMyTaskStatus instruction
UDINT
Task period exceeded count——_<TaskName>_ExceedCount
or GetMyTaskStatus instruction
UDINT

Free-running counter

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
1 ms free-running counter_FreeRunCounter1msUDINTGet1msCnt instruction—
10 µs free-running counter_FreeRunCounter10usUDINT——
1 µs free-running counter_FreeRunCounter1usUDINTGet1usCnt instruction—
100 ns free-running counter_FreeRunCounter100nsUDINTGet100nsCnt instruction—

Errors and faults

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Error control (structure)_ErrorCtrl_ERROR_CTRL_ErrSta
or GetPLCError instruction
WORD
Major error occurring.ErrorBOOL_ErrSta
or Level=2 of the GetPLCError instruction
WORD
Minor error occurring.WarningBOOL_ErrSta
or Level=3 of the GetPLCError instruction
WORD
Clear current error.ClearCurrentErrorBOOLResetPLCError instruction—
Clear error history.ClearHistoryBOOLClear the event log from Sysmac Studio or an HMI (no instruction)—
Operation error details_ProgramInfo.ProgramErrorDetailUINTCheck with the instruction's ErrorID output or the event log—
Latest major error details (structure)_NewestError_ERROR_DETAILGetPLCError instruction—
Latest major error: year/month.YearMonthUINT——
Latest major error: day.DayUINT——
Latest major error: hour.HourUINT——
Latest major error: minute.MinuteUINT——
Latest major error: second.SecondUINT——
Latest major error: error code.ErrorNumberUINTGetPLCError instruction—
Latest major error: number of valid data.ValidCountUINT——
Latest major error: detail information 01 to 20.DetailARRAY[0..19] OF UINT——
Latest minor error details (structure)_NewestWarning_ERROR_DETAILGetPLCError instruction—
Latest minor error: year/month.YearMonthUINT——
Latest minor error: day.DayUINT——
Latest minor error: hour.HourUINT——
Latest minor error: minute.MinuteUINT——
Latest minor error: second.SecondUINT——
Latest minor error: error code.ErrorNumberUINTGetPLCError instruction—
Latest minor error: number of valid data.ValidCountUINT——
Latest minor error: detail information 01 to 20.DetailARRAY[0..19] OF UINT——
User-defined error status——_AlarmFlag
SetAlarm / GetAlarm / ResetAlarm instructions
WORD
PLC Function Module error status——_PLC_ErrSta
GetPLCError / ResetPLCError instructions
WORD

Self-diagnosis and power

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Battery error_ProgramInfo.BackupBattErrorBOOL_SelfTest_LowBatteryBOOL
Overcurrent protection disabled_ProgramInfo.OCPDisabledBOOL——
CPU internal temperature too high——_SelfTest_HighTemperatureBOOL
Fan speed low——_SelfTest_LowFanRevolutionBOOL
Non-volatile memory life warning——_StorageDeterioratedBOOL
Power-on time——_PowerOnHour
or PLC_ReadTotalPowerOnTime instruction
UDINT
Number of power interruptions——_PowerOnCountUDINT
Power-interruption retention failed——_RetainFailBOOL
Power-interruption retention not executed——_RetainUnexecBOOL
Device output hold setting——_DeviceOutHoldCfgWORD
Device output hold status——_DeviceOutHoldStatusBOOL

Operation flags and instruction errors

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Comparison result (less than)_CalcResultNegBOOLOutput of the Cmp instruction—
Comparison result (equal)_CalcResultEqualBOOLOutput of the Cmp instruction—
Comparison result (greater than)_CalcResultPosBOOLOutput of the Cmp instruction—
Carry flag——P_CYBOOL
Program execution error (module)_ProgramErrorBOOLP_PRGERBOOL
Internal register (module)_InternalRegisterARRAY[0..3] OF UINT——
Program execution error (FB)_ProgramErrorBOOLP_PRGERBOOL
Internal register (FB)_InternalRegisterARRAY[0..3] OF UINT——
Program execution error (FUN)_ProgramErrorBOOLP_PRGERBOOL
Internal register (FUN)_InternalRegisterARRAY[0..3] OF UINT——
Function return valueFunctionName(as defined by the FUN)——

Logging and tracing

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Logging and tracing (array of structures)_LoggingTraceARRAY[0..9] OF _LOGGING_TRACE——
Logging/trace: operation enabled.ExecEnableBOOL——
Logging/trace: in progress.InOperationBOOL——
Logging/trace: file write finished.FileWriteEndBOOL——
Logging/trace: buffer below 50% warning.BufferHalfAlmBOOL——
Logging/trace: buffer overflow.BufferOverflowBOOL——
Logging/trace: written during RUN.WriteDuringRunBOOL——
Logging/trace: logging/trace error.LoggingTraceErrorBOOL——
Logging/trace: insufficient memory error.NoMemoryCapacityBOOL——
Logging/trace: device/trigger setting error.DeviceTriggerSetErrorBOOL——
Logging/trace: file save trigger monitor.FileSaveTriggerMonitorBOOL——
Logging/trace: data acquisition complete.DataAcquireCompleteBOOL——
Logging/trace: minimum free buffer space.MinBufferSpaceUINT——
Logging/trace: ring buffer free space.LoopBufferSpaceUINT——
Logging/trace: file save counter.FileSavingCounterUINT——
Logging/trace: ID 1 to 9 assignment_LoggingTrace[1..9]———
Logging and tracing (array of structures)——_PLC_TraceSta[0..3]
or GetTraceStatus / TraceSamp / TraceTrig instructions
_sTRACE_STA
Logging/trace: in progress——.IsStart
or GetTraceStatus
_sTRACE_STA
BOOL
Logging/trace: logging/trace error——.ParamErr
or GetTraceStatus
_sTRACE_STA
BOOL
Trace trigger monitor flag——.IsTrigger
or GetTraceStatus
_sTRACE_STA
BOOL
Trace completed flag——.IsComplete
or GetTraceStatus
_sTRACE_STA
BOOL
Safety data logging——_PLC_SFLogStaARRAY[0..1] OF _sSFLOG_STA

Operation recording

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Operation recording (array of structures)_OperationRecorderARRAY[0..3]OF _OPERATION_RECORDER——
Operation recording: save request.SaveRequestBOOL——
Operation recording: in progress.InActionBOOL——
Operation recording: file save trigger occurred.SaveTriggerMonitorBOOL——
Operation recording: saving file.SaveBusyBOOL——
Operation recording: collecting data.CollectingBOOL——
Operation recording: setting error.SettingErrorBOOL——
Operation recording: file save complete.SaveCompleteBOOL——
Operation recording: file save error.SaveErrorBOOL——
Operation recording: insufficient recording buffer.BufferShortageBOOL——
Operation recording: save entire buffer mode.BufferAllSaveModeBOOL——
Operation recording: average sampling period.AverageSamplingPeriodDINT——
Operation recording: average number of changed devices.AverageChangedDeviceNumDINT——
Operation recording: collectable period.MaxCollectingPeriodDINT——
Operation recording: file save completion code.SaveFinCodeUINT——
Operation recording: file save counter.SaveCounterUINT——
Operation recording: save progress detail 1.SaveProgressInfo1UINT——
Operation recording: save progress detail 2.SaveProgressInfo2UINT——
Operation recording: save progress.SaveProgressUINT——
Operation recording: save file path.SavePathSTRING[320]——
Operation recording: ID 1 to 3 assignment_OperationRecorder[1..3]———

Automation Playback

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Switch collection settings——APB_ChangeSamplingSettings instructionUINT
APB service status——_APB_Status.StatusUINT
Date/time of latest save trigger——_APB_SysInfo.LatestTrigTimeDATE_AND_TIME
APB service status——_APB_Status.StatusUINT
APB instruction error code——_APB_Status.LatestErrorIDWORD
Date/time of latest variable log output——_APB_Status.LatestLogTimeDATE_AND_TIME
APB service event code——_APB_Status.LatestEventCodeDWORD
Average sampling time——_APB_SmplInfo.SmplTimeAveUDINT
Average variable change rate——_APB_SmplInfo.VarChgRateAveUINT
Average variable log collectable time——_APB_SmplInfo.LogDurationTimeAveUINT
Variable log file save directory——_APB_SysInfo.LogFileDirSTRING[80]

Display (Access Window)

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Access Window (structure)_AccessWindow_ACCESS_WINDOW——
Access Window: Up key pressed.UpKeyPressedBOOL——
Access Window: Down key pressed.DownKeyPressedBOOL——
Access Window: Left key pressed.LeftKeyPressedBOOL——
Access Window: Right key pressed.RightKeyPressedBOOL——
Access Window: MENU key pressed.MenuKeyPressedBOOL——
Access Window: ENTER key pressed.EnterKeyPressedBOOL——
Access Window: user message displayed.UserMessageDisplayedBOOL——
Access Window: blink.BlinkLineARRAY[1..4] OF BOOL——
Access Window: display user message.DisplayUserMessageARRAY[1..63] OF BOOL——
Access Window: user message number.UserMessageDisplayIDUINT——
Access Window: initial display language setting.InitialDispLangSettingUINT——
Access Window: initial comment number setting.InitialCommentNumberSettingUINT——
Access Window: operation prohibit setting.WindowOperationDisableUINT——
Access Window: initial screen setting enabled.InitScreenSetValidUINT——
Access Window: initial screen device type.InitScreenSetDeviceTypeUINT——
Access Window: initial screen ID.InitScreenSetScreenIDUDINT——
Access Window: initial screen device number.InitScreenSetDeviceNumberUDINT——
Access Window: initial screen display format.InitScreenSetDisplayFormatUINT——
Access Window: initial screen device notation.InitScreenSetDeviceDisplayUINT——
Access Window: initial screen key lock status.InitScreenSetKeyLockStatusUINT——

Project information and versions

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Project information (structure)_ProjectInfo_PROJECT_INFO——
Project name.ProjectNameSTRING[64]——
Number of sensor setting instructions executed.SensorInstExecCountUINT——
Consecutive project password authentication failures.PrjPasswordCertFailCountUINT——
Cumulative project password authentication failures.PrjPasswordCertFailTotalUINT——
Project password authentication prohibited_ProgramInfo.ProjectPasswordAuthDisabledBOOL——
CPU function version.CpuFuncVersionUINT——
Project function version.ProjectVersionUINT——
Unit version——_UnitVersionARRAY[0..1] OF USINT
Configured unit version——_ProjectUnitVersionARRAY[0..1] OF USINT
Hardware revision——_HardwareRevisionSTRING[2]

Storage (memory card / SD card)

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Storage (structure)_Storage_STORAGE——
Memory card mount request.MemCardMountReqBOOL——
Memory card unmount request.MemCardUnmountReqBOOL——
Memory card in use.MemCardInUseBOOL_Card1AccessBOOL
Memory card recognition complete.MemCardRecognizedBOOL_Card1ReadyBOOL
Memory card present.MemCardExistBOOL——
CPU memory mount request.CpuMemoryMountReqBOOL——
CPU memory unmount request.CpuMemoryUnmountReqBOOL——
CPU memory in use.CpuMemoryInUseBOOL——
CPU memory recognition complete.CpuMemoryRecognizedBOOL——
Auto load.AutoLoad_AUTOLOAD_CTRL——
Folder number.FolderNumberUINT——
Completed folder number.CompleteFolderNumberUINT——
Completion code.FinCodeUINT——
Run load.RunLoad_AUTOLOAD_CTRL——
Folder number.FolderNumberUINT——
Completed folder number.CompleteFolderNumberUINT——
Completion code.FinCodeUINT——
Project save.ProjectSave_PROJECT_RECIPE_SAVE_LOAD——
Execute request.RequestBOOL——
Executing.BusyBOOL——
Execution complete.CompleteBOOL——
Execution failed.ErrorBOOL——
Drive number.DriveNumberUINT——
Folder number.FolderNumberUINT——
Completed drive number.CompleteDriveNumberUINT——
Completed folder number.CompleteFolderNumberUINT——
Completion code.FinCodeUINT——
Project load.ProjectLoad_PROJECT_RECIPE_SAVE_LOAD——
Execute request.RequestBOOL——
Executing.BusyBOOL——
Execution complete.CompleteBOOL——
Execution failed.ErrorBOOL——
Drive number.DriveNumberUINT——
Folder number.FolderNumberUINT——
Completed drive number.CompleteDriveNumberUINT——
Completed folder number.CompleteFolderNumberUINT——
Completion code.FinCodeUINT——
Recipe save.RecipeSave_RECIPE_SAVEFileWriteVar instruction—
Execute request.RequestBOOL——
Executing.BusyBOOL——
Execution complete.CompleteBOOL——
Execution failed.ErrorBOOL——
Drive number.DriveNumberUINT——
Reference folder number.InputFolderNumberUINT——
Output folder number.OutputFolderNumberUINT——
Completion code.FinCodeUINT——
Recipe load.RecipeLoad_PROJECT_RECIPE_SAVE_LOADFileWriteVar instruction—
Execute request.RequestBOOL——
Executing.BusyBOOL——
Execution complete.CompleteBOOL——
Execution failed.ErrorBOOL——
Drive number.DriveNumberUINT——
Folder number.FolderNumberUINT——
Completed drive number.CompleteDriveNumberUINT——
Completed folder number.CompleteFolderNumberUINT——
Completion code.FinCodeUINT——
Save to CPU memory.CpuMemorySave_CPU_MEMORY_SAVE——
Execute request.RequestBOOL——
Executing.BusyBOOL——
Execution complete.CompleteBOOL——
Execution failed.ErrorBOOL——
Storage FB RAM mode.StorageFBIsRAMModeBOOL——
Project backup in progress.ProjectBackupBusyBOOL——
Logging/trace in progress.LoggingTraceBusyBOOL——
Logging internal buffer overflow.LoggingInternalBufferOverflowBOOL——
Power OFF during storage access.PowerOffDuringStorageAccessUINT——
Memory card retry count.MemoryCardRetryCountUINT——
Memory card verify error count.MemoryCardErrorCountUINT——
Reset delay time on memory card error.MemoryCardResetDelayUINT——
CPU memory usage.UsageCpuMemoryUDINT——
SD Memory Card program transfer command——_Card1PrgTransferCmd_sPRGTRANSFER_CMD(※1)
SD Memory Card program transfer command: start——.ExecBOOL
Directory name——.DirName_sPRGTRANSFER_CMD
STRING[64]
(※2)
Password——.Password—
User program and settings transfer flag——.TargetUserProgram—
IP address transfer flag——.TargetIPAdr—
Variable present value (retained only) transfer flag——.TargetVariable—
CJ Unit memory present value (retained memory only) transfer flag——.TargetMemory—
SD Memory Card program transfer status——_Card1PrgTransferSta—
SD Memory Card program transfer: complete——.Done—
SD Memory Card program transfer: executing——.Active—
SD Memory Card program transfer: error——.Err_sPRGTRANSFER_STA
BOOL
Project save——_Card1BkupCmd
or BackupToMemoryCard instruction
_sBKUP_CMD(※3)
Project save: execute request——.ExecBkup
or BackupToMemoryCard instruction
_sBKUP_CMD
BOOL
Project save: executing——_Card1BkupSta.Active
or BackupToMemoryCard instruction
_sBKUP_STA
BOOL
Project save: execution complete——_Card1BkupSta.Done
or BackupToMemoryCard instruction
_sBKUP_STA
BOOL
Project save: execution failed——_Card1BkupSta.Err
or BackupToMemoryCard instruction
_sBKUP_STA
BOOL
Project save: folder number——.DirName
or BackupToMemoryCard instruction
_sBKUP_CMD
STRING[64]
Restore command——_Card1RestoreCmd_sRESTORE_CMD(※4)
Restore start flag——.Exec_sRESTORE_CMD
BOOL
Restore: directory name——.DirName_sRESTORE_CMD
STRING[64]
Restore: password——.Password—
Restore status——_Card1RestoreSta_sRESTORE_STA
Restore: executing flag——.Active_sRESTORE_STA
BOOL
Restore: completed flag——.Done_sRESTORE_STA
BOOL
Restore: error flag——.Err_sRESTORE_STA
BOOL
Backup function executing flag——_BackupBusyBOOL
Power interrupted during SD Memory Card access flag——_Card1PowerFailBOOL
SD Memory Card write protect flag——_Card1ProtectBOOL
SD Memory Card error flag——_Card1ErrBOOL
SD Memory Card life warning flag——_Card1DeterioratedBOOL
SD Memory Card storage capacity——_Card1CapacityUDINT
SD Memory Card storage usage——_Card1UsedUDINT
Backup cancel flag——.CancelBkup_sBKUP_CMD
BOOL
Verify start flag——.ExecVefy_sBKUP_CMD
BOOL
(structure)——_Card1VefySta_sVEFY_STA
  • (*1) NJ: there is no instruction that executes a program transfer (_Card1PrgTransferCmd is commanded via CIP message communication)
  • (*2) KV: folder number (UINT) / NJ: directory name (STRING)
  • (*3) _Card1BkupCmd cannot be used in user programs. From a program, use the BackupToMemoryCard instruction
  • (*4) _Card1RestoreCmd is commanded via CIP message communication

Expansion units and I/O bus

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Expansion unit (structure)_ExpansionUnit_EXPANSION_UNIT——
Expansion unit connection.ConnectedARRAY[0..48]OF BOOL——
Load option.LoadOptionARRAY[0..48]OF BOOL——
Number of connected expansion units.UnitNumberUINT——
Expansion unit device address_UnitIdAdr[0..48]ARRAY[0..48] OF _UNIT_ID_ADR——
Expansion unit device address: UnitNo.UnitNoUINT——
Expansion unit device address: RelayAdr.RelayAdrUDINT——
Expansion unit device address: DmAdr.DmAdrUDINT——
NX Unit I/O data communicating——GetNXBError / GetNXUnitError / ResetNXBError instructions—
I/O bus unit error status——GetXBError / GetXBUnitError instructions—
NX Unit registration status——_NXB_UnitRegTblARRAY [0..32] OF BOOL
Maximum NX Unit number——_NXB_MaxUnitNoUINT
NX Unit I/O data active status——_NXB_UnitIOActiveTblARRAY [0..32] OF BOOL
NX Bus Function Module error status——_NXB_ErrStaWORD
I/O bus error status——_CJB_ErrStaWORD
I/O bus unit error status——_CJB_UnitErrStaARRAY [0..3, 0..9] OF WORD
X Bus Function Module error status——_XBU_ErrStaWORD

Inter-unit synchronization

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Inter-unit synchronization (structure)_UnitSynchronize_UNIT_SYNCHRONIZE——
Inter-unit synchronization: refresh start time.RefreshStartTimeDelayUDINT——
Inter-unit synchronization: refresh end time.RefreshFinishTimeDelayUDINT——
Inter-unit synchronization: maximum start time.RefreshStartTimeMaxDelayUDINT——
Inter-unit synchronization: maximum end time.RefreshFinishTimeMaxDelayUDINT——
Inter-unit synchronization: refresh execution time.RefreshExecutionTimeUDINT——
Inter-unit synchronization: refresh time exceeded.RefreshIntervalOverBOOL——

Communication and networks

NameKEYENCE KV-XOMRON NJ/NXRemarks
Variable nameData typeVariable / instructionData type
Number of ports used——_Port_numUsingPortUSINT
Network communication instruction enabled——_Port_isAvailableBOOL
FINS/TCP connection status——_FINSTCPConnStaWORD
EtherNet/IP error——_EIP_ErrSta
or GetEIPError instruction
WORD
EtherNet/IP online——_EIP_EtnOnlineStaBOOL
Tag data link communicating——_EIP_TDLinkRunStaBOOL
Tag data link communication start switch——_EIP_TDLinkStartCmdBOOL
EtherCAT error——_EC_ErrSta
or GetECError / ResetECError instructions
WORD
EtherCAT process data communication status——_EC_PDActiveBOOL
Motion control error status——_MC_ErrSta
GetMCError / ResetMCError instructions
WORD
Option board status——_PLC_OptBoardStaARRAY[1..2] OF _sOPTBOARD_STA

No matching variables found.

Legend

—No corresponding system variable / system-defined variable / instruction
... instructionAn instruction that can be used on NJ/NX instead of a system-defined variable (instructions described in the Instructions Reference Manual, Basic)
XX
or YY instruction
Can be obtained with either a system-defined variable or an instruction. If the system-defined variable cannot be used in a user program, use the instruction
.MemberNameA member of a structure variable, indented under the row of its parent structure variable (e.g. .ScanTime under _ProgramInfo = _ProgramInfo.ScanTime). Hover to see the full name. You can also search by full name
[0..n]Array variable. On KV, _LoggingTrace[1..9] etc. are assigned from ID 1 onward
<TaskName>Replaced by the NJ/NX task name, e.g. _PrimaryTask_LastExecTime

How rows are organized

  • Rows are based on the KV-X system variables, with each structure member on its own row. Major variables that exist only on NJ/NX are added at the end of each category.
  • Where KV-X and NJ/NX differ in units or types (e.g. scan time vs. task execution time), items with a similar purpose are still listed on the same row.

Scope

  • KV-X: covers the global and local variables listed in the appendix "System Variable List" of the KV-X500 Series User's Manual. CR/CM assignments are omitted.
  • NJ/NX: focuses on variables for the overall system and the PLC Function Module. For EtherCAT (_EC), EtherNet/IP (_EIP), motion (_MC) and the I/O bus (_CJB/_NXB/_XBU), only representative variables are listed.
  • Some NJ/NX system-defined variables cannot be used in user programs (for example, those dedicated to data tracing or CIP message communication).
  • Variable and instruction specifications and availability vary by CPU model and version. Check each manufacturer's manual before actual use.

Sources

  • KEYENCE: KV-X500 Series User's Manual 084A03 (March 2026), Appendix 2 "System Variable List"
  • OMRON: NJ/NX-series CPU Unit Software User's Manual SBCA-467AE (April 2026), A-8 "System-defined Variable List" and A-9 "Specifications for Individual System-defined Variables"
  • OMRON: NJ/NX-series Instructions Reference Manual, Basic, SBCA-468Y (October 2025)

Related pages

PLC

devices

Device Comparison by Manufacturer

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

PLC

relay

Special Relay Comparison by Manufacturer

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

PLC

function

Application Instruction Comparison by Manufacturer

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

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 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