Address Tracing - Omron SYSMAC C2000H Operation Manual

Hide thumbs Also See for SYSMAC C2000H:
Table of Contents

Advertisement

Debugging
7-1-5

Address Tracing

Delay Values
Address tracing
range (250 steps)
Key Sequence
Address currently set
[Stop address]
The Address Tracing operation is used to debug a section of 250 instructions
and store the results in the Trace Memory. To set up the Address Tracing op-
eration, press EXT and CHG, then specify a stop address, a trigger address,
and a delay value (the address where tracing is to begin relative to the trigger
address). The delay value can be any integer from –249 to +250. Use NOT
to change between positive and negative delays. If the trigger address is
01000 and the delay value is –211, the trace area will range from 00789
(01000 – 211) to 01038 (00789 + 250). Even if the stop address lies outside
this trace area, only those 250 instruction steps between 00789 and 01038
will be traced.
If the stop address or END(01) lies within the trace area, trace execution will
go only as far as the stop address or the END(01) and then will loop back
over the instructions at the start of the trace area. Address tracing will con-
tinue to loop until 250 instructions have been traced. Results for the instruc-
tion that have been recorded in Trace Memory can later be read (see the
next operation) to check the status of program execution instruction-by-in-
struction.
00000
00789
(–211)
01000
Trigger
address
01038
Stop
(+038)
address
02121
The following diagram shows the maximum and the minimum ranges from
the trigger address.
–249
Trigger address
[Trigger address]
Instruction trace
range (250 steps)
Delay value set at –249
Delay value set at +250
+250
[Delay value]
Section 7-1
To abort
249

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c1000h

Table of Contents