Controller Status

Modified on Fri, 15 Aug, 2025 at 4:07 PM

The library Controller Status allows to retrieve various error statuses, levels and error code from NJ or NX controller.
It also makes possible to display these statuses on NA serie HMI through an IAG (ControllerStatus.IAG) or through a web browser (FB WebControllerStatus).
Networks Reset are also available.

Restrictions:
- The library Controller Status could be used with controller including motion control axes excluding NJ101-90 !

- The EtherCat slave number is limited to 192 to enable compatibility of the library with all type of controller.

1- Function Block Controller Status

The Function block ControllerStatus expose in the structured variable following information:

  • Status of EtherCAT, EthernetIP, Motion, bus CJ (CJ1W), bus NX-IO (NX)
  • Slave and error code erreur
  • Firmware Version of the controller
  • Program Version of the controller
  • User Program Version (to defined)

Input Variables

NameTypevaluesFunction
ExecuteBOOLOFF-ONON = FB execution

Output variables

NameTypevaluesFunction
ENOBOOLOFF-ONON = executing

Input/Output variables

NameTypeFunction
StatusDataCS\sControlStatus
BOOLMode_RUNON when FB executed
BOOLEC_ErrEtherCAT network error
UINTECSlave_ErrorEtherCAT Slave N° in error
DWORDEC_CodeEtherCAT error code
UINTEC_LevelEtherCAT error level
BOOLEIP_ErrEthernetIP network error
UINTEIPNode_ErrorEthernetIP Slave N° in error
DWORDEIP_CodeEthernetIP error code
UINTEIP_LevelEthernetIP error level
BOOLMC_ErrMotion network error
UINTMCAxe_ErrorMotion slave N° in error
DWORDMC_CodeMotion error code
UINTMC_LevelMotion level error
BOOLPLC_ErrPLC error
DWORDPLC_CodePLC error code
UINTPLC_LevelPLC level error
BOOLNX_ErrNX IO bus error
DWORDNX_CodeNX IO bus error code
UINTNX_LevelNX IO bus level error
UINTNX_UnitErrNX unit N° in error
BOOLCJB_ErrCJ bus error
DWORDCJB_CodeCJ bus error code
UINTCJB_LevelCJ bus level error
UINTCJB_UnitErrCJ unit N° in error
BOOLAlm_BatteryBattery low
BOOLError_FlagAt list, one error exist
WORDDrive_ErrorServodrive error
STRING[21]Drive_TypeServoDrive Type
STRING[6]FW_VersionController Firmware Version
STRING[6]Project_VersionController Program Version
STRING[12]Program_VersionUser program Version *
UDINTMaxExecTimeMaximum execution time of used task
UDINTMinExecTimeMinimum execution time of used task
BOOLExceededFixed period of used task exceeded
UDINTTaskPeriodUsed task period defined
BOOLReset_PLCReset PLC error
BOOLReset_ECTReset EtherCAT network error
BOOLReset_MCReset Motion network error
BOOLReset_IObusReset CJ bus error
BOOLReset_NXbusReset NX IO bus error

*: User program version is a custom program version number to be provided by the programmer.

2- IAG Controller Status

Displays the error status, the firmware and program versions of the NJ / NX controller provided by the ControllerStatus library. Displays additional information about the error based on the error code.

The Detail button execute a research in the file SysErrDef.doc included in the ressource of the IAG.

3- Function Block WebControllerStatus

Display error status and firmware/program versions on a web browser obtained by the ControllerStatus function block. Error code have hyperlink allowing to get the troubleshouter pdf file located on Industrial.omron web site and typing the error code in the search option.

Input variables

NameTypevaluesFunction
StartBOOLOFF-ONON = FB execution
StatusDataCS\sControlStatusSee definition above
HTML_PortUINT1-65535Local Port (80 and 21 not available)
ControllerNameStringName to be displayed on the web page
PasswordString(8)Password
Check_PasswordBOOLOFF-ONPassword Activation
Refresh_IntervalUINT0-9999Read frequency (second)
0: no refresh
Logout_DelayUINTDelay of no activity before disconnection
LogOutBOOLOFF-ONForce to disconnect client

Output variables

NameTypevaluesFunction
ListeningBOOLOFF-ONON = FB listening for a client
ErrorBOOLOFF-ONExecution error
ErrorIDWORD0-FFFFError Code
LoggedBOOLOFF-ONIncorrect password
Last_StateString(32)Last error
VersionDateinformation
3.007/2024original

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article