BMS Logic Academy – Building Logic One Block At A Time
Knowledge centre / Niagara / IQVision

Niagara BQL query library

57 copy-ready engineering queries for Niagara 4 and IQVision.

How to use the cheat sheet

  1. Open the target station in Workbench and select Config.
  2. Press Ctrl + L to open the ORD entry dialog. Replace the existing ORD with a complete query below, then press Enter.
  3. Check that the returned table belongs to the intended station. For remote connections retain the connection prefix if required by your Workbench session.

These are read-only selections. They do not release overrides or change points. A supervisor query does not automatically search every remote station's local strategy.

Scope: slot:/ searches the configuration root; slot:/Drivers restricts the scope. name is the slot name, displayName the visible label, out the value with status, and out.value the value alone. The wildcard * matches characters in a LIKE pattern. Check naming case and exact slot paths on your station.

Status and fault finding

All points in override

Find active override status flags before handover. A manual priority write may not always appear as an override flag.

station:|slot:/|bql:select name, slotPath, out from control:ControlPoint where status.overridden = 'true'

All points in alarm

Current point alarm flags, not the historical alarm database.

station:|slot:/|bql:select name, slotPath, out from control:ControlPoint where status.alarm = 'true'

All points in fault

Investigate invalid point or proxy status.

station:|slot:/|bql:select name, slotPath, out from control:ControlPoint where status.fault = 'true'

All stale points

Find values flagged stale.

station:|slot:/|bql:select name, slotPath, out from control:ControlPoint where status.stale = 'true'

All down points

Find unavailable points.

station:|slot:/|bql:select name, slotPath, out from control:ControlPoint where status.down = 'true'

All disabled points

Check deliberately or unexpectedly disabled points.

station:|slot:/|bql:select name, slotPath, out from control:ControlPoint where status.disabled = 'true'

All points in alarm or fault

Combine two status flags.

station:|slot:/|bql:select name, slotPath, out from control:ControlPoint where status.alarm = 'true' or status.fault = 'true'

All down or stale points

Communications and data freshness audit.

station:|slot:/|bql:select name, slotPath, out from control:ControlPoint where status.down = 'true' or status.stale = 'true'

Number of overridden points

Returns the result count; remove |bql:size before using Query Builder.

station:|slot:/|bql:select * from control:ControlPoint where status.overridden = 'true'|bql:size

Commands, feedback and point names

All Boolean points true

Includes writable Boolean points.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint where out.value = true

All Boolean points false

Includes writable Boolean points.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint where out.value = false

All Cmd points

Matches the slot name, not necessarily the display name.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint where name like '*Cmd*'

All Cmd points true

Find active commands. True does not prove the plant is running.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint where name like '*Cmd*' and out.value = true

All Cmd points false

Find inactive commands.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint where name like '*Cmd*' and out.value = false

All points named exactly Cmd

Exact slot-name match.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint where name = 'Cmd'

All Boolean points ending Cmd

Matches a suffix rather than any occurrence.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint where name like '*Cmd'

All Run points true

Adapt the name pattern to actual run feedback.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint where name like '*Run*' and out.value = true

All Fault points true

A true fault signal is not the same as a Niagara fault status.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint where name like '*Fault*' and out.value = true

All Enable points false

Find false enable signals.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint where name like '*Enable*' and out.value = false

All points containing AHU in display name

Display labels can differ from slot names.

station:|slot:/|bql:select name, slotPath, out from control:ControlPoint where displayName like '*AHU*'

Numeric values and commissioning

Temperature points above 30

Confirm that every matching point uses °C.

station:|slot:/|bql:select name, slotPath, out from control:NumericPoint where name like '*Temp*' and out.value > 30

Temperature points below 10

Example threshold; adapt to your plant.

station:|slot:/|bql:select name, slotPath, out from control:NumericPoint where name like '*Temp*' and out.value < 10

Valve points above 90

Only meaningful for points scaled 0–100%.

station:|slot:/|bql:select name, slotPath, out from control:NumericPoint where name like '*Valve*' and out.value > 90

Damper points at zero

Check naming and units.

station:|slot:/|bql:select name, slotPath, out from control:NumericPoint where name like '*Damper*' and out.value = 0

Numeric values within a band

Example inclusive numeric range; narrow to same units.

station:|slot:/|bql:select name, slotPath, out from control:NumericPoint where out.value >= 20 and out.value <= 25

All setpoints by name

Naming convention must match; use a more specific pattern if needed.

station:|slot:/|bql:select name, slotPath, out from control:NumericPoint where name like '*SP*'

Highest temperature values first

Compare only like-for-like units.

station:|slot:/|bql:select name, slotPath, out from control:NumericPoint where name like '*Temp*' order by out.value desc

Lowest temperature values first

Useful for identifying low readings.

station:|slot:/|bql:select name, slotPath, out from control:NumericPoint where name like '*Temp*' order by out.value asc

Point inventories and scope

All control points

Station-wide inventory.

station:|slot:/|bql:select name, slotPath, out from control:ControlPoint

All numeric points

Includes derived numeric writable types.

station:|slot:/|bql:select name, slotPath, out from control:NumericPoint

All Boolean points

Includes derived Boolean writable types.

station:|slot:/|bql:select name, slotPath, out from control:BooleanPoint

All string points

Text values.

station:|slot:/|bql:select name, slotPath, out from control:StringPoint

All enum points

Enumerated values.

station:|slot:/|bql:select name, slotPath, out from control:EnumPoint

All numeric writables

Writable numeric point inventory; does not indicate current priority.

station:|slot:/|bql:select name, slotPath, out from control:NumericWritable

All Boolean writables

Writable Boolean point inventory.

station:|slot:/|bql:select name, slotPath, out from control:BooleanWritable

All enum writables

Writable enumerated point inventory.

station:|slot:/|bql:select name, slotPath, out from control:EnumWritable

Points under Drivers

Search only within Drivers.

station:|slot:/Drivers|bql:select name, slotPath, out from control:ControlPoint

Points under BACnet network

Replace BacnetNetwork with actual slot name.

station:|slot:/Drivers/BacnetNetwork|bql:select name, slotPath, out from control:ControlPoint

Value and status in separate columns

Useful when exporting a table.

station:|slot:/|bql:select name, slotPath, out.value, out.status from control:ControlPoint

Point count

Count returned rows.

station:|slot:/|bql:select * from control:ControlPoint|bql:size

Alarm configuration and records

All alarm extensions

Audit alarm assignments.

station:|slot:/|bql:select parent.name, slotPath, alarmClass from alarm:AlarmSourceExt

Alarm extensions in a particular class

Replace class with actual slot name.

station:|slot:/|bql:select parent.name, slotPath, alarmClass from alarm:AlarmSourceExt where alarmClass = 'defaultAlarmClass'

Active alarm extensions in a particular class

Checks extension status, not historical records.

station:|slot:/|bql:select parent.name, slotPath, alarmClass from alarm:AlarmSourceExt where alarmClass = 'defaultAlarmClass' and status.alarm = true

Inhibited alarm extensions

Inspect configured inhibits; may not capture every suppression mechanism.

station:|slot:/|bql:select parent.name, slotPath, alarmClass from alarm:AlarmSourceExt where alarmInhibit.boolean = 'true'

Count inhibited alarm extensions

Count matching extensions.

station:|slot:/|bql:select * from alarm:AlarmSourceExt where alarmInhibit.boolean = 'true'|bql:size

All alarm classes

Class inventory.

station:|slot:/|bql:select name, slotPath from alarm:AlarmClass

Alarm database records today

Station alarm database; not just active alarms.

alarm:|bql:select timestamp, source, alarmClass, ackState where timestamp in bqltime.today order by timestamp desc

Alarm database records yesterday

Use station time zone.

alarm:|bql:select timestamp, source, alarmClass, ackState where timestamp in bqltime.yesterday order by timestamp desc

Alarm records in last seven days

Can be large; narrow the scope if needed.

alarm:|bql:select timestamp, source, alarmClass, ackState where timestamp in bqltime.last7days order by timestamp desc

Network and device health

All device ping health objects

Only devices with this component.

station:|slot:/|bql:select parent.name, slotPath, down, lastOkTime, lastFailTime from driver:PingHealth

Down device ping health objects

Not all drivers expose PingHealth.

station:|slot:/|bql:select parent.name, slotPath, lastOkTime, lastFailTime from driver:PingHealth where down = true

BACnet devices

Requires BACnet module.

station:|slot:/|bql:select name, slotPath from bacnet:BacnetDevice

BACnet point inventory

Adapt the network slot path.

station:|slot:/Drivers/BacnetNetwork|bql:select name, slotPath, out from control:ControlPoint

History records

Available histories

Requires access to the history space.

history:|bql:select *

Specific history today

Replace both station and history ID.

history:/MyStation/ZoneTemp|bql:select timestamp, value where timestamp in bqltime.today

Specific history yesterday

Replace the example history ID.

history:/MyStation/ZoneTemp|bql:select timestamp, value where timestamp in bqltime.yesterday

Specific history last seven days

Use a bounded time range.

history:/MyStation/ZoneTemp|bql:select timestamp, value where timestamp in bqltime.last7days

Before using on site

Examples are intended for Niagara 4 / IQVision. Status filters are documented by Tridium; other examples use common BQL patterns and have not been executed in a Niagara station for this release. Driver types, slots, alarm/history permissions and supported expressions may vary. Use BQL Query Builder to verify a property or adjust a query; test on a small scope first. Check actual point status before treating a true or false value as reliable.

References: Tridium Engineering Notes · Niagara Developer Guide · NiagaraMods status query reference · Community BQL examples.

Back to Niagara / IQVision