Omron SYSMAC CS Series Programming Manual page 270

Hide thumbs Also See for SYSMAC CS Series:
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...
No. of words
sampled
0
1
2
3
4
5
6
Positive delay: Store data delayed by the set delay.
Negative delay: Store previous data according go to the set delay.
Example: Sampling at 10 ms with a –30 ms delay time yields –30 x 10 = 300
ms, so data 300 ms before the trigger will be stored.
Note Use a Programming Device to turn ON the Sampling Start Bit (A50815).Never
turn ON this bit from the user program.
ampling Start Bit
race Start Bit
race Trigger Monitor Flag
race Busy Flag
race Completed Flag
ampling
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.
Setting range
–1999 to 2000
–1332 to 1333
–999 to 1000
–799 to 800
–665 to 666
–570 to 571
–499 to 500
Section 7-2
251

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents