User manual

IEC61131 User and Reference Manual
April 22, 2008
239
Outputs
Type
Description
Error
Boolean
TRUE if there is a data logging error, or if there was a
creation or configuration error. FALSE in all other
cases.
status
Integer
The status code. See the Status Code table below.
Status Code
Code
Description
10
The configuration is valid, or data is successfully logged.
12
The log ID is invalid or has not been created.
17
Undefined status. This should never occur.
Example
The following example logs a record with four fields into the data log with logID=5. The log
has been created using the dlogcnfg function block (See the example for dlogcnfg). The
first and second fields are boolean and integer. These input variables must be converted into
real type before connecting to the dlog inputs. The third field is Real; its input variable can
connect directly to the input; The fourth field is days & hundredth seconds and is calculated
by the function block. This input is ignored and must be set to 0.0. Fields 5 to field 8 are not
used and must be set to 0.0.
See Also
dlogcnfg, dlogread