A-61
Appendices
NJ-series CPU Unit Software User’s Manual (W501)
A-4 Specifications for Individual System-defined Variables
App
A-4-3 PLC Function Module, Category Name: _CJB
Functional Classification: Errors
Functional Classification: I/O Bus Status
Variable name _PLC_TraceSta[0..3] Members .ParamErr
Meaning Trace Parameter Error Flag Global/local Global
Function TRUE when a trace starts, but there is an error in the trace settings.
FALSE when the settings are normal.
Note You cannot use these system-defined variables in the user program. It is used only to monitor the status of
data tracing from the Sysmac Studio.
Data type Structure: _sTRACE_STA, Members: BOOL Range of values TRUE or FALSE
R/W access R Retained Retained. Network Publish Not published.
Usage in user program Not possible. Related instruc-
tions
You can access this variable from the user program only with the following
instruction.
• GetTraceStatus
Variable name _PLC_ErrSta
Meaning PLC Function Module Error Status Global/local Global
Function TRUE when there is a Controller error that involves the PLC Function Module.
FALSE when there is no Controller error that involves the PLC Function Module.
Refer to A-3-7 Meanings of Error Status Bits for the meanings of the error status bits.
Data type WORD Range of values 16#0000 to 16#00F0
R/W access R Retained Not retained. Network Publish Published.
Usage in user program Possible. Related instruc-
tions
• GetPLCError
You can use the following instruction to clear this variable.
• ResetPLCError
A-4-3 PLC Function Module, Category Name: _CJB
Variable name _CJB_MaxRackNo
Meaning Largest Rack Number Global/local Global
Function Contains the largest rack number of the Expansion Racks that are detected by the Controller.
Data type UINT Range of values 0 to 3
“0” means there are no Expansion
Racks.
R/W access R Retained Not retained. Network Publish Published.
Usage in user program Possible. Related instruc-
tions
---
Variable name _CJB_MaxSlotNo
Meaning Largest Slot Number Global/local Global
Function Contains one higher than the largest slot number with a CJ-series Unit on each of the Racks that are detected by
the Controller.
Data type ARRAY [0..3] OF UINT Range of values 0 to 10
0: No CJ-series Unit mounted.
R/W access R Retained Not retained. Network Publish Published.
Usage in user program Possible. Related instruc-
tions
---