Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1179

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Debugging Instructions
Precautions
Example
Operated from Peripheral Device
(Sampling Start Bit: A50815)
Trace Start Bit: A50814
Trace Busy Flag: A50813
Trace Completed Flag: A50812
Trace Trigger Monitor Flag: A50811
See note.
1140
Name
Trace Start Bit
Sampling Start Bit
TRSM(045) is processed as NOP(000) when data tracing is not being per-
formed or when the sampling interval set in the parameters with a Peripheral
Device is not set to sample on TRSM(045) instruction execution.
Do not turn the Sampling Start Bit (A50815) ON or OFF from the program.
This bit must be turned ON and OFF from a Peripheral Device.
The following example shows the overall data trace operation.
Sampling
Example: word data
Trace Memory
Valid from here on
Note Trace Memory has a ring structure. Data is stored to the end of the Trace
Memory area and then wraps to the beginning of the area, ending just before
the first valid data sample.
Address
A50814
The trace trigger conditions are established when
this bit is turned from OFF to ON. Samples will be
recorded after the specified delay (positive delay)
or the specified number of existing samples will
be valid (negative delay).
A50815
When this bit is turned from OFF to ON from a
Peripheral Device, data samples will start being
stored in Trace Memory with one of the following
three methods used to determine sampling:
1) Periodic sampling (10 to 2,550 ms intervals)
2) Sampling at TRSM(045) execution
3) Sampling at the end of each cycle
This bit must be turned ON and OFF from a
Peripheral Device.
Delay
Valid
Trace ends when
setting
samples
Trace Memory is full.
: Execution of TRSM(045)
Section 3-29
Operation

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents