627
TRACE, TRACER
1
2
3
4
4
6
7
8
7.18
Ot
her inst
ructions
7.18.1
1
TRACE
, TRACER
F
unct
i
on
The sampling trace is the function that collects the device data of a CPU module consecutively.
To execute the sampling trace, turn ON SM801 when SM800 is ON.
TRACE
(1) The TRACE instruction latches the result of sampling trace and stops the sampling trace.
(2) The sampling is stopped if SM801 is turned OFF during the trace execution.
(3) After the TRACE instruction is executed and the sampling trace is stopped, SM805 is turned ON.
(4) Once the TRACE instruction is executed, the second and the subsequent TRACE instructions are ignored.
When the TRACER instruction is executed, the TRACE instruction is enabled again.
TRACER
(1) The TRACER instruction resets the TRACE instruction. When the TRACER instruction is executed, the TRACE
instruction is enabled again.
(2) When the TRACER instruction is executed, SM803 to SM805 are turned OFF.
Remark
1. The target devices for the sampling trace and its timing can be set with a programming tool.
For details of the sampling trace, refer to the user's manual (Function Explanation, Program Fundamentals) for the CPU
module used.
2. The sampling trace can be executed with a programming tool.
For sampling trace execution with a programming tool, refer to the operating manual for the programming tool used.
Operat
i
on
E
rror
(1) There is no operation error in the TRACE or TRACER instruction.
TRACER
(Preparation for trace)
(Starting trace)
(During the execution of trace)
(Trigger for trace)
(After the execution of trace
trigger)
(Completion of trace)
TRACE
Trace start request Trigger condition enabled
Trace reset
Trace ends by
number of trace
after trigger
Number of trace
after trigger
Total number of traces
SM800
SM801
SM802
SM803
SM804
SM805