OTDeck

BACnet object reference · type 20

BACnet Trend Log object (type 20): Log_Buffer and ReadRange

The BACnet trend log object records one property of one object over time, inside the controller, so history survives without a BMS connected. The records sit in Log_Buffer and are read with the ReadRange service.

Object type
20 (trend-log)
Common abbreviation
TL
Present_Value
None; the data is in Log_Buffer
Commandable
No
COV
Not for the log itself; it can log its source by COV (Logging_Type cov)
In OTDeck
trend-log:1 or tl:1

What it is

A trend log samples a property (Log_DeviceObjectProperty, usually a Present_Value) every Log_Interval, on each change of value, or when triggered, and stores time-stamped records in a ring buffer of Buffer_Size records.

Object type 20 in ASHRAE 135. Trend Log Multiple (type 27) logs several properties per record.

Properties

Property identifiers as in ASHRAE 135. Required: present in every Trend Log object; blank: optional or required only in some configurations.

PropertyIdRequiredWhat it means in practice
Enable133yesFALSE stops logging. Formerly named Log_Enable.
Log_DeviceObjectProperty132The object and property logged, possibly in another device.
Logging_Type197polled (every Log_Interval), cov (on each change) or triggered.
Log_Interval134The sampling period in hundredths of a second: 6000 is one minute.
Buffer_Size126yesHow many records the buffer holds.
Log_Buffer131yesThe records: time stamp, value (or a log status, failure or time change) and optional status flags. Read with ReadRange.
Record_Count141yesRecords in the buffer now. Writing 0 clears the buffer.
Total_Record_Count145yesRecords ever logged; the sequence number of the newest record.
Stop_When_Full144yesTRUE stops logging when the buffer is full; FALSE overwrites the oldest records.
Start_Time142Logging starts at this time, when set.
Stop_Time143Logging stops at this time, when set.
Notification_Threshold137Records after which a buffer-ready notification goes out.
Status_Flags111yesFour bits: in-alarm, fault, overridden, out-of-service. The quickest health check of a point.
Event_State36yesnormal, or the alarm state the object is in (high-limit, low-limit, offnormal, fault).

Commanding

A trend log has no Present_Value and no priority array. Enable, Record_Count and the timing properties are written directly by configuration tools.

COV

With Logging_Type cov, the trend log subscribes to its source and logs each notification; the source's COV_Increment then decides the resolution of the log.

A client gets new records by reading again from where it stopped, or by subscribing to buffer-ready notifications through a notification class.

Typical uses in HVAC and BMS

Field pitfalls

Reading, writing and watching it in OTDeck

OTDeck is a BACnet/IP and BACnet/SC client for macOS, Windows and Linux; discovering, reading and watching are free for one connection.

FAQ

How do you read a BACnet trend log?

With the ReadRange service on Log_Buffer: by position (N records from an index), by time (records from a time stamp) or by sequence number. ReadProperty on Log_Buffer is refused by many devices.

What unit is BACnet Log_Interval in?

Hundredths of a second. A one-minute log has Log_Interval 6000.

What happens when a BACnet trend log is full?

With Stop_When_Full FALSE the oldest records are overwritten; with TRUE logging stops until the buffer is cleared, for example by writing 0 to Record_Count.

Related object types

Download OTDeck, free for one connection BACnet client All object types

Object type numbers and property identifiers follow ASHRAE 135 (BACnet). Devices differ in which optional properties they implement; read the object's Property_List for the real set. Found a mistake? Write to support@otdeck.com. BACnet is a trademark of ASHRAE; OTDeck is not affiliated with ASHRAE.