8-39
8 CPU Unit Functions
NJ-series CPU Unit Software User’s Manual (W501)
8-5 Debugging
8
8-5-4 Data Tracing
*1 You cannot perform data traces for the EN, ENO, P_off, P_on, P_CY, P_First_RunMode, P_First_Run and
P_PRGER system-defined variables, in-out variables that are used in function block instances, and variables in
functions.
*2 Data tracing will not start at the data trace starting point even if the trigger condition is met.
*3 Combinations of multiple condition expressions are not permitted. Also, the valid range for comparison con-
stants is determined by the valid range of the literal expressions for the variable type on the left side of the con-
dition expression.
*4 Trace numbers 0 to 3 are set for the NJ501. Trace numbers 0 and 1 are set for the NJ301. These numbers are
used to execute instructions and to access system-defined variables.
Stopping a trace
Triggered traces
• Tracing stops when the maximum value of 10,000
samples is reached.
• Tracing is stopped when the Stop Button is clicked on
the Sysmac Studio.
Continuous traces
• If stopping tracing is set as the operation to perform
when the maximum number of samples is reached,
tracing stops when the maximum number of samples
or maximum amount of time is reached.
• Tracing is stopped when the Stop Button is clicked on
the Sysmac Studio.
Setting continuous
tracing
Maximum data storage
period
You can set the maximum amount of time to save contin-
uous trace data.
Maximum data storage
size
You can set the maximum total size of all files saved dur-
ing continuous tracing.
Data items per file
You can set the number of samples to save in each file
during a continuous trace.
File save location
You can specify the location to create files to save data
during a continuous trace.
File name prefix
You can specify a prefix to automatically add to the
beginning of the file names.
Setting of operation
when limit is reached
You can specify the operation to perform when the stor-
age time period or size limit is reached.
• Stopping the trace
• Deleting the oldest files and continuing
Displaying trace results
Graph display
You can display a graph where the X axis represents
time and the Y axis represents the value of the variable.
You can display both BOOL variables and other variables
on the same graph.
Table display
You can display the maximum value, minimum value,
average value, and value at the specified time for each
variable in a table.
3D Motion Trace Dis-
play Mode
You can position a virtual composition model in 3D space
and display the composition motion based on the com-
mand positions and actual positions of the motion axes.
Exporting trace data Exporting to CSV files
You can save the trace results and all settings other than
the trace number to a CSV file.
Number of data traces that can be executed
simultaneously
*4
NJ501-: 4 traces, NJ301-: 2 traces
Importing trace data
You can display CSV format trace results on top of the
current graph.
Saving
You can save the trace results in the project along with
the trace settings.
Printing
You can print graphs. The Sysmac Studio’s printing func-
tionality is used.
Item Description