Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1177

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Debugging Instructions
Description
1138
Before TRSM(045) is executed, the bit or word to be traced must be specified
with a Peripheral Device. Each time that TRSM(045) is executed, the current
value of the specified bit or word is sampled and recorded in order in Trace
Memory. The trace ends when the Trace Memory is full. The contents of Trace
Memory can be monitored from a Peripheral Device when necessary.
This instruction only indicates when the specified data will be sampled. All
other settings and data trace operations are set with a Peripheral Device. The
other two ways to control data sampling are sampling at the end of each cycle
and sampling at a specified interval (independent of the cycle time).
TRSM(045) does not require an execution condition and is always executed
as if it had an ON execution condition. Connect TRSM(045) directly to the left
bus bar.
Use TRSM(045) to sample the value of the specified bit or word at the point in
the program when the instruction's execution condition is ON. If the instruc-
tion's execution condition is ON every cycle, the specified bit or word's value
will be stored in Trace Memory every cycle.
It is possible to incorporate two or more TRSM(045) instructions in a program.
In this case, the value of the same specified bit or word will be stored in Trace
Memory each time that one of the TRSM(045) instructions is executed.
Data stored every cycle.
Note Refer to the Peripheral Device's Operation Manual for details on data tracing.
PC data area
TRSM(045) executed.
Specified bit or word
Use a Peripheral Device to specify
which address will be traced.
Data from
address m is
stored in
Trace
Memory.
Data from
address m is
stored in
Trace
Memory.
Section 3-29
Data sampling
Trace Memory
Tracing ends when
Trace Memory is full.
Trace Memory

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents