8 CPU Unit Functions
8-38
NJ-series CPU Unit Software User’s Manual (W501)
The following table gives the specifications of data tracing.
Data Tracing Specifications
Item Description
Types of data traces
Single triggered trace
Set a trigger condition to start sampling. Data from
before and after the condition is met is saved.
Continuous tracing
Sample data is transferred to a computer as it is col-
lected and saved to a file.
Setting of timing of
sampling
Period of specified task
Specify a task. The period of that task is set as the sam-
pling period.
Specified fixed interval
The time you enter is set as the sampling period. How-
ever, the time you enter is rounded off to an integer multi-
ple of the primary periodic task.
Trace sampling instruc-
tion
With this method, sampling is performed whenever the
TraceSamp instruction is executed in the user program.
Setting sampled data
*1
Maximum number of
targets
NJ501-: 192 variables, NJ301-: 48 vari-
ables
Data types
Basic data types except for text strings
Arrays (specify the element)
Enumerations
Members of structures and unions
Maximum number of records 10,000 samples per variable
Setting trigger positions
The trigger position is set in respect to the overall trace
time or quantity.
Setting triggers
Condition data types
Basic data types except for times, durations, dates, and
text strings
Arrays (specify the element), structures (specify the
member), and unions (specify the member)
Condition expression
*2
Tracing is started when one of the following conditions is
met.
BOOL: TRUE or FALSE
Non-BOOL: Equals (=), Greater than (>), Greater than or
equal (), Less Than (<), Less than or equal (), Not
equal ()
*3
Commands from Sys-
mac Studio
Tracing starts when the Trigger TRUE Button is clicked.
Data Trace Trigger
instruction
Tracing starts when the TraceTrig instruction is executed.
Evaluation timing
• If something other than the TraceSamp instruction is
used to set the timing of sampling, the trigger is evalu-
ated only once in the specified task period.
• If the TraceSamp instruction is used to set the timing of
sampling, the trigger is evaluated whenever the
instruction is executed.
Delay
A slider is used to set the percentage of sampling before
and after the trigger condition is met.
(Example: 20%/80%)
Starting a trace
Commands from Sys-
mac Studio
Tracing is started when the Execute Button is clicked on
the Sysmac Studio.
Starting tracing at start
of operation
Tracing can be started when operation of the Controller
starts (i.e., when the operating mode is changed from
PROGRAM mode to RUN mode).