Debugging Instructions - Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions

Debugging Instructions

TRSM
Instruction
Trace Memory Sampling
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Flags
There are no flags affected by this instruction.
Function
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.
• 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 instruction's execution condition is ON every cycle, the
specified bit or word's value will be stored in Trace Memory every cycle.
968
Mnemonic
Variations
TRSM
---
Block program areas
Step program areas
OK
OK
Function
code
When TRSM(045) is executed, the status of a pre-
045
selected bit or word is sampled and stored in
Trace Memory.
TRSM
TRSM(045)
Subroutines
Interrupt tasks
OK
OK
TRSM(045) executed.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or transition
programs
OK
PC data area
Specified bit or word
Data sampling
Trace Memory
Tracing ends when
Trace Memory is full.

Advertisement

Table of Contents
loading

Table of Contents