
IEC61131 User and Reference Manual
April 22, 2008
dlogread
Data Logger Extract Function Block
Description
The dlogread function block reads a single record in the data log identified by LogID.
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 number of data fields in a record and the data types of
the fields are defined using the dlogcnfg function block.
The dlogread function block pulls data from the log as Real type variables. The data 1 to
data 8 outputs may only be connected to real variables. If a field data type is ISaGRAF
boolean, ISaGRAF integer, or ISaGRAF timer, the output of dlogread must be converted to
this type before connecting to the output variable. See the example below.
Arguments
When t he enable input changes FALSE to
TRUE, the error and status outputs are updated.
See the Status Code table below.
When enable is set to TRUE, readRecord
changes from FALSE to TRUE, data for the
requested sequence number is read. The error and
status outputs are also updated. See the Status
Code table below.
Identifies the internal log (1 to 16).
The sequence number of the record to be read.
Note that the seqNo is signed 32-bit integer, it will
start from 0, increase to 2147483647 (maximum
sign 32-bit integer), then roll over to –2415919103
(minimum sign 32-bit integer), and then increase
back to 0. This cycle is continuously repeated.
Comentarios a estos manuales