Omron SYSMAC CS/CJ Series Programming Manual page 345

Table of Contents

Advertisement

Trial Operation and Debugging
Scheduled Data Trace
One-cycle Data Trace
Data Trace via TRSM
Data Trace Procedure
1,2,3...
Related Auxiliary Bits/Words
Name
Sampling Start Bit
A50815
Trace Start Bit
A50814
324
Sampling Start Bit
Trace Start Bit
Trace Trigger Monitor Flag
Trace Busy Flag
Trace Completed Flag
Sampling
The following traces can be executed.
A scheduled data trace will sample data at fixed intervals. Specified sampling
times are 10 to 2,550 ms in 10-ms units. Do not use the TRSM instruction in
the user program and be sure to set the sampling period higher than 0.
A one-cycle data trace will sample I/O refresh data after the end of the tasks
in the full cycle. Do not use the TRSM instruction in the user program and be
sure to set the sampling period higher than 0.
A sample will be taken once when the TRACE MEMORY SAMPLING instruc-
tion (TRSM) instruction is executed. When more than one TRSM instruction is
used in the program, a sample will be taken each time the TRSM instruction is
executed after the trace trigger condition has been met.
Use the following procedure to execute a trace.
1. Use the CX-Programmer to set trace parameters: Address of the sampled
data, sampling period, delay time, and trigger conditions.
2. Use CX-Programmer to start sampling or turn ON the Sampling Start Bit
(A50815).
3. Put the trace trigger condition into effect.
4. End tracing.
5. Use CX-Programmer to read the trace data.
a) Select Data Trace from the PLC Menu.
b) Select Select from the Execution Menu.
c) Select Execute from the Execution Menu.
d) Select Read from the Execution Menu.
Address
Use a Programming Device to turn ON this bit to start sampling. This bit
must be turned ON from a Programming Device.
Do not turn this bit ON and OFF from the user program.
Note: The bit will be cleared when the Data Trace has been completed.
When this bit is turned ON, the trace trigger will be monitored and sam-
pled data will be stored in Trace Memory when the trigger condition is
met. The following traces are enabled with this bit.
1) Scheduled trace (trace at fixed intervals of 10 to 2,550 ms)
2) TRSM instruction trace (trace when the TRSM executes)
3) One-cycle trace (trace at the end of execution of all cyclic tasks)
Section 7-2
Description

Advertisement

Table of Contents
loading

Table of Contents