User manual
IEC61131 User and Reference Manual 
April 22, 2008     
238 
dlog 
Data Logger Function Block 
Description 
The dlog function block logs an entry in the data log identified by LogID. A maximum of 16 
data logs, labeled 1 to 16 are available for use. Entries to the data log are called records. 
Each record contains 1 to 8 fields of data. The number of data fields in a record and the data 
types of the fields are defined using the dlogcnfg function block. Each record in the data log 
is assigned a sequence number to identify the record. The dlogread function block and 
the SCADALog application use this sequence number to identify records in the data log. 
The dlog function block stores data as Real type variables. The data 1 to data 8 inputs may 
only be connected to Real variables. Boolean, Integer and Timer variables must be 
converted to real type variables. Unused data inputs must be set to the Real value 0.0. 
enable 
saveRecord 
logID 
data 1 
data 2 
data 3 
error 
status 
dlog 
data 4 
data 5 
data 6 
data 7 
data 8 
Arguments 
Inputs 
Type 
Description 
enable 
Boolean 
When enable is set to TRUE, the error and status 
outputs are updated. See the Status Code table 
below. 
saveRecord 
Boolean 
When enable is set to TRUE and saveRecord 
changes from FALSE to TRUE, a record is saved. 
logID 
Integer 
Identifies the internal log (1 to 16). 
data1 
Real 
Real type input of Field #1 data. 
data2 
Real 
Real type input of Field #2 data. 
data3 
Real 
Real type input of Field #3 data. 
data4 
Real 
Real type input of Field #4 data. 
data5 
Real 
Real type input of Field #5 data. 
data6 
Real 
Real type input of Field #6 data. 
data7 
Real 
Real type input of Field #7 data. 
data8 
Real 
Real type input of Field #8 data. 










