EasyManua.ls Logo

Omron SYSMAC CV Series - Data Tracing; Trace Memory Sampling: Trsm(170)

Omron SYSMAC CV Series
636 pages
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...
393
5-33 Data Tracing
Data tracing can be used to facilitate debugging programs and is described in
detail in the CVSS
Operation Manual: Online
. This section shows the ladder
symbols for TRSM(170) and MARK(171) and provides example programs.
5-33-1 TRACE MEMORY SAMPLING: TRSM(170)
(170)
TRSM
Ladder Symbol
TRSM(170) is used in the program to mark locations where specified data is to
be stored in Trace Memory. Up to 12 bits and up to 3 words may be designated
for tracing.
TRSM(170) is not controlled by an execution condition, but rather by two bits in
the Auxiliary Area: A00815 and A00814. A00815 is the Sampling Start Bit. This
bit is turned ON to start the sampling processes for tracing. The Sampling Start
Bit must not be turned ON from the program, i.e., it must be turned ON only from
CVSS. A00814 is the Trace Start Bit. When it is set, the specified data is re-
corded in Trace Memory. The Trace Start Bit can be set either from the program
or from CVSS. A positive or negative delay can also be set to alter the actual
point from which tracing will begin.
Data can be recorded in two ways. In the first method, a timer interval is set from
CVSS so that the specified data will be traced at a regular interval independent
of the cycle time (refer to
4-2 Data Tracing
in the
CV Support Software: Online
Operation Manual
). The timer interval can be set to between 5 and 2550 ms, in 5
ms steps. If the timer interval is set to 0 ms, the sampling will take place once
each cycle; data will be recorded periodically and TRSM(170) instructions in the
program won’t trigger sampling.
To disable periodic sampling and enable sampling when TRSM(170) is ex-
ecuted in the program, the timer interval is set to “TRSM.” TRSM(170) can be
placed at one or more locations in the program to indicate where the specified
data is to be traced.
TRSM(170) can be incorporated anywhere in a program, any number of times.
The data in the trace memory can be monitored via CVSS.
Control Bits and Flags The following control bits and flags are used during data tracing. The Tracing
Flag will be ON during tracing operations. The Trace Completed Flag will turn
ON when enough data has been traced to fill Trace Memory.
Only A00814 and A00815 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
CVSS.
Flag Function
A00811 Trace Trigger Monitor Flag
A00812 Trace Completed Flag
A00813 Trace Busy Flag
A00814 Trace Start Bit
A00815 Sampling Start Bit
Example The following shows the basic program and operation for data tracing. The Sam-
pling Start Bit starts the sampling. The data is read and stored into trace memory.
When the Trace Start Bit is received, the CPU looks at the delay and marks the
trace memory accordingly. This can mean that some of the samples already
Description
Data Tracing Section 5-33

Table of Contents

Related product manuals