1 FUNCTIONS
1.12 Logging Function
75
1
The values to be stored in each pointer at every detection interrupt when the logging read detection starts with 'CH1 Logging
read points setting value' (Un\G545) being set to 100
Operation
The logging read function starts by setting interrupt pointers and turning on and off 'Operating condition setting request' (Y9).
This function repeats its operation every time the same number of data as the logging read points monitor value is logged.
The following figure shows the operation when the logging read function is used under the following conditions.
• A/D conversion-enabled channel: CH1
• 'CH1 Logging read points setting value' (Un\G545): 100 points
Occurrence of
read pointer
detection
interrupts
Previous logging
read pointer
Current logging
read pointer
Latest pointer Relative address Buffer memory area
Default value -1 -1 0 0 1st data
First time -1 0 99 99 100th data
Second time 0 100 199 199 200th data
Third time 100 200 299 299 300th data
10th time 800 900 999 999 1000th data
11th time 900 0 99 99 100th data
12th time 0 100 199 199 200th data
(1) The timing that the first interrupt processing occurs
(2) The timing that the second interrupt processing occurs
(3) The timing that the third interrupt processing occurs
0 0 100 200
010 01
0100
(2)(1) (3)
1
Logging stopped
Storing
data
Storing
data
Storing
data
Storing
data
Storing
data
Storing
data
Storing
data
Normal control program
Interrupt
program
Interrupt
program
Interrupt
program
In response to a logging read interrupt,
the CPU module reads the logging data
corresponding to the set number of
logging read points from the logging
read start address.
'CH1 Current logging read pointer'
(Un\G438)
Logging status
'Interrupt factor detection flag [n]'
(Un\G4 to Un\G19)
'Interrupt factor reset request [n]'
(Un\G156 to Un\G171)
CPU module
(scan execution type program)
CPU module (interrupt program)
Normal control
program
Normal control
program