1138
Debugging Instructions
Section 3-29
The data-tracing operations performed with the Peripheral Device are summa-
rized in the following list.
1,2,3...
1.
Set the following parameters with the Peripheral Device.
a) Set the address of the bit or word to be traced.
b) Set the trigger condition. One of the three following conditions can con-
trol when data stored into Trace Memory is valid.
i) The Trace Start Bit goes from OFF to ON.
ii) A specified bit goes from OFF to ON.
iii) The value of a specified word matches the set value.
c)
Set the sampling interval to “TRSM” for sampling at the execution of
TRSM(045) in the program.
d) Set the delay.
2.
When the Sampling Start Bit is turned from OFF to ON with the Peripheral
Device, the specified data will begin being sampled each time that
TRSM(045) is executed and the sampled data will be stored in Trace Mem-
ory. The Trace Busy Flag (A50813) will be turned ON at the same time.
3.
When the trigger condition (Trace Start Bit ON, specified bit ON, or value
of specified word matching set value) is met, the sampled data will be valid
beginning with the next sample plus or minus the number of samples set
with the delay setting. The Trace Trigger Monitor Flag (A50811) will be
turned ON at the same time.
4.
The trace will end when TRSM(045) has been executed enough times to
fill the Trace Memory. When the trace ends, the Trace Completed Flag
(A50812) will be turned ON and the Trace Busy Flag (A50813) will be
turned OFF.
5.
Read the contents of Trace Memory with the Peripheral Device.
The following table shows relevant bits and flags in the Auxiliary Area. Only
A50814 and A50815 are meant to be controlled by the user, and A00815 must
not be turned ON from the program, i.e., it must be turned ON only from a
Peripheral Device.
Name
Address
Operation
Trace Trigger Monitor
Flag
A50811
This flag is turned ON when the trigger condition
has been established with the Trace Start Bit. It is
turned OFF when sampling is started for the next
trace (by the Sampling Start Bit).
Trace Completed
Flag
A50812
This flag is turned ON when trace samples have
filled the Trace Memory. It is turned OFF the next
time that the Sampling Start Bit goes from OFF to
ON.
Trace Busy Flag
A50813
This flag is turned ON when the Sampling Start
Bit goes from OFF to ON. It is turned OFF when
the trace is completed.
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...