LonWorks XIF Files

Reference page for LonWorks XIF (external interface file) format covering header fields, network variable definitions, configuration properties, format versions, and how to extract a XIF for gateway mapping.

What LonWorks XIF Files Are

A XIF file (external interface file) is the formal interface definition for a LonWorks device. It lists every network variable the device exposes, the Standard Network Variable Type and direction of each one, any configuration properties, message tags, buffer counts, and the device’s Program ID. It is the LonWorks equivalent of a vendor Modbus register map, but it is published by the device itself rather than written by hand.

A XIF can be a plain text .xif, a binary .xfb, or an extract pulled live by a network management tool from the device’s Neuron chip. Gateways such as the QuickServer consume a XIF to know which variables to read, which to write, how each value is encoded, and how to address the device on the network.

Why XIF Files Are A Hard Prerequisite

Most LonWorks gateway delays trace back to a missing or wrong XIF. Without one, the integrator cannot reliably name a network variable, cannot prove which variables are inputs versus outputs, and cannot confirm the Standard Network Variable Type that drives engineering-unit interpretation. Communication can be perfectly healthy while every mapped point is wrong because the assumptions about the interface were never verified.

[!WARNING] A device name alone is not enough to start configuration. Collect the XIF that matches the installed firmware revision before promising a mapping schedule.

File Structure

LonMark defines the XIF text format in the Device Interface File Reference Guide. The structure is consistent across format versions and breaks into four logical sections.

SectionPurpose
HeaderIdentifies the file, the device model, the Program ID, and the format version
Network variable definitionsOne entry per network variable: name, index, direction, Standard Network Variable Type, options
File definitionsOptional, used by devices that expose LonWorks file transfer objects
Network variable value definitionsOptional, used for default values and configuration property data

The header is the first thing to read on an unfamiliar XIF. It carries the Program ID, the model number, the format version, and the buffer counts that constrain how the device handles inbound and outbound traffic.

Header Fields

The XIF header carries roughly ten fields that matter in field work.

FieldWhat It Tells You
File name and copyright lineIdentifies the source tool and vendor
TimestampTool-generated; useful for spotting stale XIFs in vendor downloads
Program ID (12 hex bytes)Unique identifier for the device interface; drives binding compatibility
Format versionDetermines which optional fields and Standard Network Variable Type extensions are valid
Network input buffer countLimits concurrent inbound transactions the device can absorb
Network output buffer countLimits outbound transactions; matters for high-rate polling designs
Application input buffer countInternal application-layer buffer sizing
Application output buffer countInternal application-layer buffer sizing
Receive transaction countAffects acknowledged-service performance
Number of network variablesQuick sanity check against the actual variable list that follows

Format versions seen in the field range from 1.0 through 4.400. Newer versions add additional descriptors and Standard Network Variable Type support, but the core header layout is backward compatible.

Network Variable Definitions

The largest section of a typical XIF is the network variable list. Each entry describes one network variable.

AttributeDescription
IndexNumeric identifier used to read or write the variable on the network
NameMnemonic such as nvoSpaceTemp or nviSetpoint (vendor-chosen)
Directionnvi for input (write to device), nvo for output (read from device)
Standard Network Variable TypeGoverns encoding, range, resolution, and unit
Service typeAcknowledged, unacknowledged, repeated, or request-response default
Authentication flagWhether the variable requires authenticated updates
Polled flagWhether the variable supports explicit polling

A typical HVAC controller XIF extract looks like this in tabular form:

NV IndexNameDirectionStandard Network Variable TypeDescription
0nvoSpaceTempNVO (read)SNVT_temp_pSpace temperature
1nvoDischargeTempNVO (read)SNVT_temp_pDischarge air temperature
2nviSetpointNVI (write)SNVT_temp_pTemperature setpoint
3nvoOccupancyNVO (read)SNVT_occupancyOccupancy status
4nviHvacModeNVI (write)SNVT_hvac_modeOperating mode command
5nvoDamperPosNVO (read)SNVT_lev_percentDamper position

The mnemonic prefix (nvi or nvo) is a convention, not a contract. The direction field in the XIF entry is authoritative.

Configuration Properties

LonWorks devices can also expose configuration properties that sit outside the standard network-variable model. Two families exist.

FamilyOriginExamples
SCPTStandard Configuration Property Type, defined by LonMarkSCPTminRnge, SCPTmaxRnge, SCPTlocation
UCPTUser Configuration Property Type, defined by the manufacturerVendor-specific calibration, schedule, or behavior parameters

[!NOTE] Some devices expose runtime data through configuration properties rather than standard network variables. If a value listed in the device sheet does not appear as a network variable in the XIF, search the SCPT and UCPT sections before assuming the data is missing.

Format Versions And Compatibility

XIF format versions matter when a tool refuses to load a file. Most modern tools accept versions back to 3.x; older FieldServer drivers and legacy LonMaker databases sometimes expect 2.x layouts. The format version is declared in the header and should be the first thing checked when an unfamiliar XIF will not import.

Version RangeNotes
1.0 – 2.xEarly Echelon tooling; rarely seen on new projects
3.xCommon on installed-base devices through the 2000s
4.0 – 4.400Adds extended Standard Network Variable Type support and richer property descriptors

How To Obtain A XIF

Preferred sources, in order of reliability:

MethodTool RequiredNotes
Export from the commissioning databaseLonMaker, IzoT CT, or OEM toolMost reliable; reflects the device as actually deployed
Extract live from the deviceNodeUtil or equivalentPulls the default XIF directly from the Neuron chip
Request from the manufacturerNoneAsk for the file matching the installed firmware revision
Extract through a gatewayQuickServer NodeUtil modeDiscovers and extracts XIFs from connected devices

[!TIP] Always verify the XIF matches the firmware on the actual device. Manufacturers add or remove variables between revisions. A mismatched XIF produces phantom points that never update and missing points that should have been visible.

For the step-by-step live-extraction procedure, see Using NodeUtil to Discover LonWorks Devices and Extract XIF Files.

From XIF To Gateway Point List

A XIF is not yet a point list. Converting it into one is a repeatable step:

  1. Filter the network variable list to the variables the supervisory system actually needs.
  2. Record the index, name, direction, and Standard Network Variable Type for each kept variable.
  3. Decide the destination object type (BACnet AI/AV/BI/BO/MSI/MSV, Modbus register, MQTT topic).
  4. Capture engineering-unit conversion where the source unit differs from the destination expectation.
  5. Note any SCPT or UCPT values that must be read alongside the network variables.

For full Standard Network Variable Type to BACnet mapping detail and the metric-to-imperial conversion table, see the LonWorks SNVT Reference and XIF Mapping Guide.

[!TIP] Steps 1–4 above can be automated. The LonWorks XIF -> QuickServer Converter accepts a .xif file in the browser and emits a ready-to-load FieldServer Bridge CSV for BACnet/IP or Modbus/TCP, including struct expansion and engineering-unit mapping. Drop the XIF, paste the Neuron ID, download the CSV. No upload to any server.

Common Failure Modes

FailureLikely CauseAction
Tool will not open the XIFUnsupported format versionConvert with a newer tool or request a compatible export
Mapped point never updatesXIF does not match firmware on the deviceRe-extract the XIF live or request the correct revision
Value reads but units are wrongStandard Network Variable Type in the XIF does not match the integrator’s assumptionRe-read the type field, not the variable name
Expected point is missing entirelyData is exposed as an SCPT or UCPT, not as a network variableSearch the configuration-property section
Two devices look identical but bind differentlyDifferent Program IDs in the headersTreat as distinct interfaces; do not share a XIF