6
-
75
CHAPTER6 FUNCTIONS
1
2
3
4
5
6
7
8
6.14 Samp
ling Tr
ace
Functio
n
(4) Sampling trace operation
(a) Operation of the CPU module
When a sampling trace trigger is issued by GX Developer, the CPU module executes traces for the preset
number of times.
The sampling trace area can store data up to 60K bytes.
The number of traces will be a value of which the number of bytes for the sampling trace area divided by the
number of bytes of the specified device (N1 + N2 + N3 + word device points 2 + (bit device points/16)
2).
*1 *2
*1: Round up the result of "bit device points/16" in the expression to the right of the decimal point.
*2: Add the following values to N1 to N3 according to the items selected under the trace additional information of the trace
condition setting.
• N1: When "Time(sec)" is selected, add "4".
• N2: When "Step no." is selected, add "10".
• N3: When "Program name" is selected, add "8".
*3: When the trigger is issued, the CPU module samples data for the preset number of times and latches the data in the
sampling trace area.
Figure 6.56 Sampling trace operation
CPU module
Standard RAM/memory card
*3
Specified
device data
Sampling trace area
Device
area
File
register
area
1st trace data
2nd trace data
3rd trace data
4th trace data
5th trace data
6th trace data
(n-1)th trace data
n th trace data
n-1
1
2
3
4
5
6
1
2
3
4
5
6
n
n
n
-
1
When data is stored for n th time,
the next data overwrites the 1st data.
Read out the
trace data to
a peripheral.
Sampling trace area
The specified
number of trace
data sets is
displayed.
Sampling trace
GX Developer
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......