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.
| Property | Id | Required | What it means in practice |
|---|---|---|---|
| Enable | 133 | yes | FALSE stops logging. Formerly named Log_Enable. |
| Log_DeviceObjectProperty | 132 | The object and property logged, possibly in another device. | |
| Logging_Type | 197 | polled (every Log_Interval), cov (on each change) or triggered. | |
| Log_Interval | 134 | The sampling period in hundredths of a second: 6000 is one minute. | |
| Buffer_Size | 126 | yes | How many records the buffer holds. |
| Log_Buffer | 131 | yes | The records: time stamp, value (or a log status, failure or time change) and optional status flags. Read with ReadRange. |
| Record_Count | 141 | yes | Records in the buffer now. Writing 0 clears the buffer. |
| Total_Record_Count | 145 | yes | Records ever logged; the sequence number of the newest record. |
| Stop_When_Full | 144 | yes | TRUE stops logging when the buffer is full; FALSE overwrites the oldest records. |
| Start_Time | 142 | Logging starts at this time, when set. | |
| Stop_Time | 143 | Logging stops at this time, when set. | |
| Notification_Threshold | 137 | Records after which a buffer-ready notification goes out. | |
| Status_Flags | 111 | yes | Four bits: in-alarm, fault, overridden, out-of-service. The quickest health check of a point. |
| Event_State | 36 | yes | normal, 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
- Supply temperature, space temperature and valve positions for tuning and troubleshooting.
- Energy meters logged every 15 minutes.
- Proof of operation during commissioning and seasonal tests.
Field pitfalls
- Log_Buffer read with ReadProperty: the standard has it read with ReadRange; many devices refuse it, others return a huge segmented answer.
- Log_Interval read as seconds: it is in hundredths, so 100 means one second.
- Enable FALSE or Stop_When_Full TRUE with a full buffer: the log looks fine but has not recorded since.
- A device clock that was wrong when the records were made: a by-time read misses them. Read by position instead.
Reading, writing and watching it in OTDeck
- The Trend log tab reads Log_Buffer with ReadRange: the last N records (Record_Count read first), N records from a position, or a time range; up to 10 000 records per read, 100 per page.
- Records show their time, value, kind (real, boolean, log-status, failure…) and status flags, in a table and on a chart. Reading is free; Export CSV is Pro.
- Devices that refuse ReadRange by time are read by position and filtered; pages are halved for devices with small APDUs; time stamps use the device's UTC_Offset and daylight saving status.
- AI agents read trend logs through read_history.
- The simulator's trend-log:1 logs the supply temperature every second into a 3600-record buffer.
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.