User manual
IEC61131 User and Reference Manual
April 22, 2008
240
dlogcnfg
Data Logger Configuration Function Block
Description
The dlogcnf g function block creates a 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 records in the log, the number of data
fields in a record and the data types of the fields are defined using the dlogcnfg function
block. Unused data inputs must be set to the Real value 0.0.
enable
delete
logID
maxRecords
numFields
type1
type2
type3
error
status
dlogcnfg
type4
type5
type6
type7
type8
Arguments
Inputs
Type
Description
enable
Boolean
When a FALSE to TRUE transition occurs on the
enable input, the data log identified by LogID is
created and initialized. If the data log exists and has
a different configuration then an error will be
generated. If an error is generated then a different
logID must be used or the log must be deleted using
the delete input.
See the Status Code table below.
Delete
Boolean
When enable is TRUE and the delet e inp ut
transients from FALSE to TRUE, all records in the
data log and the log configuration are deleted.
LogID
Integer
Identifies the data log (1 to 16).
maxRecords
Integer
Maximum number of records in the log. See the
Program Status Dialog section for information on
the memory available for dlog.
numFields
Integer
Specify how many data fields will be recorded. i.e.
from data field (1) to data field (numFields).
type1
Integer
Field #1 data type (see data types below)