Special Instructions
AR Control Bits and Flags
Precautions
Example
380
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 nega-
tive 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 SSS Operation Manual:
C-series PCs.)
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 Con-
sole, host computer, etc.
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
AR 2515
Sampling Start Bit*
AR 2514
Trace Start Bit
AR 2513
Tracing Flag
AR 2512
Trace Completed Flag
Note *Do not change the status of AR 2515 from the program.
If TRSM(45) occurs TRSM(45) will not be executed within a JMP(08) –
JME(09) block when the jump condition is OFF.
The following example shows the basic program and operation for data trac-
ing. Force set the Sampling Start Bit (AR 2515) to begin sampling. The Sam-
pling Start Bit must not be turned ON from the program. The data is read and
stored into trace memory.
When IR 00000 is ON, the Trace Start Bit (AR 2514) is also turned ON, and
the CPU Unit looks at the delay and marks the trace memory accordingly.
This can mean that some of the samples already made will be recorded as
the trace memory (negative delay), or that more samples will be made before
they are recorded (positive delay).
Function
Section 5-28
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?