2-607
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
System Control Instructions
2
GetTraceStatus
GetTraceStatus
The GetTraceStatus instruction reads the execution status of a data trace.
Instruction Name FB/FUN Graphic expression ST expression
GetTraceStatus Read Data Trace
Status
FUN GetTraceStatus(TraceNo,
IsStart, IsComplete,
ParamErr, IsTrigger);
Variables
Name Meaning I/O Description Valid range Unit Default
TraceNo Trace num-
ber
Input Trace number 0 to 3
---
0
Out Return
value
Output
Always TRUE TRUE only
--- ---
IsStart Executing
flag
TRUE: Data trace in
progress.
FALSE: Data trace not in
progress.
Depends on data type.
IsComplete Completed
flag
TRUE: Data trace was com-
pleted.
FALSE: Data trace in
progress or not executed.
ParamErr Parameter
error flag
TRUE: Data trace setting
error.
FALSE: No data trace set-
ting error.
IsTrigger Trigger flag TRUE: Data trace trigger
condition met.
FALSE: Data trace trigger
condition not met.
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
TraceNo OK
Out OK
IsStart OK
IsComplete OK
ParamErr OK
IsTrigger OK
(@)GetTraceStatus
EN ENO
TraceNo Out
IsStart
IsComplete
ParamErr
IsTrigger