EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 966

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
933
Debugging Instructions Section 3-27
Description Before TRSM(045) is executed, the bit or word to be traced must be specified
with the CX-Programmer. 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 the CX-Programmer when necessary.
This instruction only indicates when the specified data will be sampled. All
other settings and data trace operations are set with the CX-Programmer. 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.
Note Refer to the CX-Programmer’s Operation Manual for details on data tracing.
The data-tracing operations performed with the CX-Programmer are summa-
rized in the following list.
Tracing ends when
Trace Memory is full.
Trace Memory
Data sampling
Specified bit or word
PLC data area
TRSM(045) executed.
Use the CX-Programmer 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.
Data stored every cycle.
Trace Memory

Table of Contents

Related product manuals