A-33
Appendices
NJ-series CPU Unit Software User’s Manual (W501)
A-3 System-defined Variables
App
A-3-2 PLC Function Module, Category Name: _PLC
Functional Classification: Version
Functional Classification: Debugging
Functional Classification: Errors
Variable name Meaning Function Data type
Range of
values
Reference
_UnitVersion
(Ver.1.08)
Unit Version The unit version of the CPU Unit is stored.
The integer part of the unit version is stored in
element number 0.
The fractional part of the unit version is stored
in element number 1.
Example 1) If the unit version is 1.08, “1” is
stored in element number 0 and “8” is stored
in element number 1.
Example 2) If the unit version is 1.10, “1” is
stored in element number 0 and “10” is stored
in element number 1.
ARRAY[0..1
] OF USINT
0 to 99 page A-59
A-3-2 PLC Function Module, Category Name: _PLC
Variable name
Meaning Function Data type
Range of
values
Reference
Member
_PLC_TraceSta[0..3] _sTRACE_
STA
page A-60
.IsStart Trace Busy Flag TRUE when a trace starts.
Note You cannot use this system-defined
variable in the user program. It is used
only to monitor the status of data trac-
ing from the Sysmac Studio.
BOOL TRUE or
FALSE
page A-60
.IsComplete Trace
Completed Flag
TRUE when a trace is completed.
Note You cannot use this system-defined
variable in the user program. It is used
only to monitor the status of data trac-
ing from the Sysmac Studio.
BOOL TRUE or
FALSE
page A-60
.IsTrigger Trace Trigger
Monitor Flag
TRUE when the trigger condition is met.
FALSE when the next trace starts.
Note You cannot use this system-defined
variable in the user program. It is used
only to monitor the status of data trac-
ing from the Sysmac Studio.
BOOL TRUE or
FALSE
page A-60
.ParamErr Trace
Parameter Error
Flag
TRUE when a trace starts, but there is an
error in the trace settings.
FALSE when the settings are normal.
Note You cannot use this system-defined
variable in the user program. It is used
only to monitor the status of data trac-
ing from the Sysmac Studio.
BOOL TRUE or
FALSE
page A-61
Variable name Meaning Function Data type
Range of
values
Reference
_PLC_ErrSta PLC Function
Module Error Sta-
tus
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 information on the meanings of the
error status bits at the end of this appendix for
details.
WORD 16#0000 to
16#00F0
page A-61