Rockwell Automation Publication 2080-UM002N-EN-E - November 2022 243
Chapter 12          Using microSD Cards
Figure 24 - Data Log Function Block Timing Diagram 
 
Disable(0)
Enable(1)
Disable(0)
Enable(1)
Disable(0)
Idle(0)
Busy(1)
Succeed(2)
Idle(0)
Busy(1)
Error(3)
Idle(0)
Enable(1)
Status(0)
IMPORTANT Data Log Function Block Execution
• There are three possible states for the Data Log function block: Idle, 
Busy, and Complete (which includes Complete with Succeed and 
Complete with Error). 
• For one Data Log function block execution, the typical status starts from 
Idle, then Busy and finishes with Complete. To trigger another function 
block execution, the status needs to go back to Idle first. 
• Idle status changes to Busy status only when Enable input signal is in 
rising edge. Complete status enters Idle status when Enable input signal 
is Disable status only.
• TSEnable and CfgId input parameters are only sampled at Enable input 
parameter's rising edge when a new function block execution starts. 
During function block execution, the input parameters of TSEnable and 
CfgId are locked and any changes are ignored.
• When execution completes, the status changes from Busy to Complete. At 
this stage, if input Enable is False, status changes to Idle after indicating 
Complete for exactly one scan time. Otherwise function block status is 
kept as Complete until input Enable changes to False.
• The data log file can only be created by the DLG instruction block. The 
Connected Components Workbench software can only upload and delete 
the data log file. 
• There are separators in between every data variable in the data file that 
is defined during configuration in the Connected Components Workbench 
software. 
See Supported Data Types for Data Log and Recipe Function Blocks
 on 
page 243.
• Data variable values are sampled when data logging function block is in 
Busy state. However, data logging file is only created when data logging 
function block is in Complete state.
Table 59 - Supported Data Types for Data Log and Recipe Function Blocks
Data Type Description Example Format in Output Data Log File
BOOL
(1)
Logical Boolean with values 
TRUE and FALSE
0: FALSE
1: TRUE)
SINT Signed 8-bit integer value -128, 127
INT Signed 16-bit integer value -32768, 32767
DINT  Signed 32-bit integer value -2147483648, 2147483647
LINT Signed 64-bit integer value -9223372036854775808, 9223372036854775807
USINT(BYTE) Unsigned 8-bit integer value 0, 255
UINT(WORD) Unsigned 16-bit integer value 0, 65535