212
from a Programming Console. Data tracing is described in detail in the GPC,
FIT, and LSS
Operation Manuals
. This section shows the ladder symbol for
TRSM(45) and gives an example program.
Address tracing also aids debugging and is possible from the Programming
Console. It does not, however, require any direct programming consider-
ations, including use of TRSM(45). Refer to
7-1-5 Address Tracing
for details.
Ladder Symbol
TRSM(45)
TRSM(45) 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 desig-
nated for tracing (refer to the GPC, FIT or LSS
Operation Manual
).
TRSM(45) is not controlled by an execution condition, but rather by two bits
in the AR area: AR 1815 and AR 1814. AR 1815 is the Sampling Start bit.
This bit is turned ON to start the sampling processes for tracing. The Sam-
pling Start bit must not be turned ON from the program, i.e., it must be turned
ON only from the peripheral device. AR 1814 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 the Programming Device. A positive
or negative delay can also be set to alter the actual point from which tracing
will begin.
Data can be recorded in any of three ways. TRSM(45) can be placed at one
or more locations in the program to indicate where the specified data is to be
traced. If TRSM(45) is not used, the specified data will be traced when
END(01) is executed. The third method involves setting a timer interval from
the peripheral devices so that the specified data will be tracing at a regular
interval independent of the cycle time (refer to the GPC, FIT or LSS
Opera-
tion Manual
).
TRSM(45) can be incorporated anywhere in a program, any number of times.
The data in the trace memory can then be monitored via a Programming
Console, GPC, etc.
AR 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.
Flag
Function
AR 1815
Sampling Start Bit
AR 1814
Trace Start Bit
AR 1813
Tracing Flag
AR 1812
Trace Completed Flag
If TRSM(45) occurs TRSM(45) will not be executed within a JMP(08) –
JME(09) block when the jump condition is OFF .
Description
Precautions
Data Tracing (TRACE MEMORY SAMPLING – TRSM(45))
Section 5-24