User manual
IEC61131 User and Reference Manual
April 22, 2008
254
dlogf
Write Record to Data Log to File
Description
Refer to the Data Log to File Operation Overview section of the dlogfcfg function for an
explanation of data logging to file operation.
The dlogf function block logs an entry in the data log identified by LogID. The logID is
obtained from dlogfcfg. 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 dlogfcfg function block. Each record in the data log is assigned a
sequence number to identify the record.
The dlogf 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.
This function block is supported by the SCADAPack 350, SCADAPack 330, and the
SCADASense 4203.
enabl
saveR
logID
data1
data2
data3
media
dlogf
data4
data5
data6
data7
data8
suspe
inUse
trans
error
logSt
Arguments
Inputs
Type
Description
enabl
(enable)
Boolean
When enable is set to TRUE, the error and status
outputs are updated. See the Status Code table
below.
saveR
(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.
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.