Omron CP1H CPU Operation Manual page 605

Cp1h cpu unit
Hide thumbs Also See for CP1H CPU:
Table of Contents

Advertisement

Trial Operation and Debugging
Scheduled Data Trace
One-cycle Data Trace
Data Trace via TRSM(045)
Data Trace Procedure
1,2,3...
Note Use the CX-Programmer to turn ON the Sampling Start Bit (A508.15). Never
turn ON this bit from the user program.
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
interval is 10 to 2,550 ms in 10-ms units. Do not use the TRSM(045) instruc-
tion 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 all cyclic
tasks. Do not use the TRSM(045) instruction in the user program and be sure
to set the sampling period higher than 0.
A sample will be taken once each time the TRACE MEMORY SAMPLING
instruction (TRSM(045)) instruction is executed. When more than one
TRSM(045) instruction is used in the program, a sample will be taken each
time TRSM(045) is executed after the trace trigger condition has been met
until trace memory is full.
Use the following procedure to execute tracing.
1. Use the CX-Programmer to set trace parameters (select PLC - Data Trace
and then select Operation - Configure):
Addresses of the sampled words/bits, sampling period, delay time, and
trigger conditions.
2. Use the CX-Programmer to start sampling or turn ON the Sampling Start
Bit (A508.15).
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 Operation Menu.
c) Select Execute from the Operation Menu.
d) Select Read from the Operation Menu.
Section 10-2
571

Advertisement

Table of Contents
loading

Table of Contents