Data Tracing; Trace Memory Sampling: Trsm(170) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Data Tracing

5-32 Data Tracing

5-32-1 TRACE MEMORY SAMPLING: TRSM(170)

Ladder Symbol
Description
Control Bits and Flags
374
Data tracing can be used to facilitate debugging programs and is described in
detail in the SSS Operation Manuals. This section shows the ladder symbols for
TRSM(170) and MARK(171) and provides example programs.
(170)
TRSM
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
SSS. A00814 is the Trace Start Bit. When it is set, the specified data is recorded
in Trace Memory. The Trace Start Bit can be set either from the program or from
SSS. 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
SSS so that the specified data will be traced at a regular interval independent of
the cycle time (refer to Data Tracing in the SYSMAC Support Software Opera-
tion 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 pro-
gram 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 SSS.
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
SSS.
Flag
A00811
Trace Trigger Monitor Flag
A00812
Trace Completed Flag
A00813
Trace Busy Flag
A00814
Trace Start Bit
A00815
Sampling Start Bit
Function
Section 5-32

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents