20  DATA LOGGING FUNCTION
20.4  Data Collection Conditions
263
20
Step No. specification
Data are collected when the specified condition is met immediately before the execution of the specified step.
■To collect data continuously while the execution conditions are met
The following execution conditions cause the data logging function to collect data continuously while the execution condition 
are met:
 • Always: The specified step is executed regardless of the state immediately before the execution of it.
 • In the specified condition satisfied: The specified step is executed if the state immediately before the execution is a running 
state.
 • In the specified condition not satisfied: The specified step is executed if the state immediately before the execution is not a 
running state.
■To collect data only when the execution conditions are met
The following execution conditions cause the data logging function to collect data only when the execution conditions are met:
 • On the rising edge of the specified condition: The specified step is executed if the state changes from non-running to 
running immediately before the execution of it.
 • On the falling edge of the specified condition: The specified step is executed if the state changes from running to non-
running immediately before the execution of it.
If the specified step is contained between FOR and NEXT loop of instructions, the data logging function 
collects the data for only the first iteration of the loop where the specified conditions are met.
Since the step number cannot be checked in the following programs, the step number cannot be specified.
 • Program having multiple parts
 • ST program
 •FB program
 •SFC program
(1) The data logging function collects data 
because the state immediately before the 
execution of the specified step is a 
running state.
(2) It does not collect data because the state 
immediately before the execution of the 
specified step is not a running state.
(1) The data logging function collects data 
because the state changes from running 
to non-running immediately before the 
execution of the specified step.
(2) The data logging function does not collect 
data because there has been no change 
in state since the last scan.
(1)
(2)
(1)
0 END 0 END 0 END 0
Execution
Not 
execution
Program
Sampling Sampling
END processing END processing END processing
Status just before 
the execution of 
the specified step
0 END 0 END 0 END 0
(1)
(2)
Execution
Not 
execution
Program
Sampling
END processing END processing END processing
Status just before 
the execution of 
the specified step