User manual

IEC61131 User and Reference Manual
April 22, 2008
245
Example
The following example reads a record with four fields from 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 outputs must be converted from Real
into Boolean and Integer before connecting to the output variables. The third field is Real; its
output can connect directly to the output variable. The fourth field is date; it creates two
outputs, i.e. a real part for days and an integer part for hundredth seconds. The real part is
converted to integer before connecting to the output variable. The remaining fields, 5 to field
8, are not used; these must be connected to unused variables.
See Also
dlogcnfg, dlog