User manual

IEC61131 User and Reference Manual
April 22, 2008
241
Inputs
Type
Description
type2
Integer
Field #2 data type (see data types below)
type3
Integer
Field #3 data type (see data types below)
type4
Integer
Field #4 data type (see data types below)
type5
Integer
Field #5 data type (see data types below)
type6
Integer
Field #6 data type (see data types below)
type7
Integer
Field #7 data type (see data types below)
type8
Integer
Field #8 data type (see data types below)
Outputs
Type
Description
Error
Boolean
TRUE when there is a creation or deletion error.
FALSE in all other cases.
Status
Integer
The status code. See the Status Code table below.
Data Types
Data Type
Description
0
16 bit unsigned integer / ISaGRAF integer unsigned lower word /
ISaGRAF Boolean
1
16 bit signed integer / ISaGRAF integer signed lower word
2
32 bit unsigned integer / ISaGRAF timer
3
32 bit signed integer / ISaGRAF integer
4
32 bit floating point / ISaGRAF real
5
Days and hundredths of seconds in two 32 bit unsigned integers
Notes
As noted in the dlog function description, all data fields must be input to the dlog as type
Real. The real data conversion function may be used to allow other data types to be logged.
Specifying the data type on the field data Type inputs allows the data logger to save the data
in the correct format internally. When the data is retrieved using the dlogread function, the
outputs will be of type Real. Data fields may be converted back to their original type using a
function such as boo or ana. See the examples in both the dlog and dlogread sections.
If an input type for a field is defined as 5 (Days and hundredths of seconds in two 32 bit
unsigned integers) then the field output data (data1 to data8) will contain the number of
whole days since 01/01/97 and the hundredthSeconds output will contain the number of
hundredths of a second since the start of the current day.
Status Code
Code
Description
10
The configuration is valid and data log is created or has been created.
11
A different configuration already exists for the log.
12
The log ID is invalid.
13
One or more of the data types are invalid.
14
There is not enough memory available to create a log of the requested
size.
15
The number of data fields is invalid.