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

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

Advertisement

Debugging Instructions
1,2,3...
The data-tracing operations performed with the Peripheral Device are summa-
rized in the following list.
1. Set the following parameters with the Peripheral Device.
a) Set the address of the bit or word to be traced.
b) Set the trigger condition. One of the three following conditions can con-
trol when data stored into Trace Memory is valid.
i) The Trace Start Bit goes from OFF to ON.
ii) A specified bit goes from OFF to ON.
iii) The value of a specified word matches the set value.
c) Set the sampling interval to "TRSM" for sampling at the execution of
TRSM(045) in the program.
d) Set the delay.
2. When the Sampling Start Bit is turned from OFF to ON with the Peripheral
Device, the specified data will begin being sampled each time that
TRSM(045) is executed and the sampled data will be stored in Trace Mem-
ory. The Trace Busy Flag (A50813) will be turned ON at the same time.
3. When the trigger condition (Trace Start Bit ON, specified bit ON, or value
of specified word matching set value) is met, the sampled data will be valid
beginning with the next sample plus or minus the number of samples set
with the delay setting. The Trace Trigger Monitor Flag (A50811) will be
turned ON at the same time.
4. The trace will end when TRSM(045) has been executed enough times to
fill the Trace Memory. When the trace ends, the Trace Completed Flag
(A50812) will be turned ON and the Trace Busy Flag (A50813) will be
turned OFF.
5. Read the contents of Trace Memory with the Peripheral Device.
The following table shows relevant bits and flags in the Auxiliary Area. Only
A50814 and A50815 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 a
Peripheral Device.
Name
Address
Trace Trigger Monitor
A50811
Flag
Trace Completed
A50812
Flag
Trace Busy Flag
A50813
Operation
This flag is turned ON when the trigger condition
has been established with the Trace Start Bit. It is
turned OFF when sampling is started for the next
trace (by the Sampling Start Bit).
This flag is turned ON when trace samples have
filled the Trace Memory. It is turned OFF the next
time that the Sampling Start Bit goes from OFF to
ON.
This flag is turned ON when the Sampling Start
Bit goes from OFF to ON. It is turned OFF when
the trace is completed.
Section 3-29
1139

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents