Skip to Content
On this page

BACnet/IP client

BACnet/IP client reads device properties and supports discovery, paged object browsing, ReadProperty, ReadPropertyMultiple (RPM), priority writes, COV, and device events. For shared device and variable operations, see Collection Configuration. This plugin uses IPv4 UDP and supports Foreign Device registration with an external BBMD. For RS485, select the separate BACnet MS/TP client. For UDP broadcast distribution, see the BBMD network target.

Compatible devices and models

Device series / model examplesConnection requirements
BACnet/IP building automation devices and DDC controllersEnable BACnet/IP and match device instance, object type, object instance and property. COV, trends and writes depend on the device services.

Create a temperature point from the DDC object list

In the DDC engineering software or a BACnet object browser, identify the device, network interface and object list. This example uses device instance 1001, Analog Value 4 and a Present_Value of 23.5. A descriptive object name helps locate the point; the address uses numeric identifiers.

  1. Enable BACnet/IP on the DDC and set its IP, mask, UDP port and unique Device Instance. The common port is 47808 (BAC0 hexadecimal). Save or download the engineering configuration, then browse Device,1001 and Analog Value,4.
  2. Read Object_Name, Present_Value and Units. Check the actual data type, unit and write permission. Use a commandable Analog Value/Output for a write example; a numeric object is not necessarily writable.
  3. Create a UDP channel with the DDC’s actual IP and BACnet port as the remote endpoint. Bind to a gateway interface and add this plugin with target device instance 1001. Discovery through a BBMD does not replace the real target endpoint.
  4. Add read-only RoomTemperature, type Float, array length 1. In the address editor choose device 1001, object type 2 · AnalogValue, instance 4, property 85 · PresentValue. Leave array index and write application tag unset.
{"deviceInstance":1001,"objectType":2,"objectInstance":4,"propertyIdentifier":85}
  1. Read the same address in protocol debugging and inspect the live variable. When the DDC value is 23.5, both should show that value. For a scaling discrepancy, check the controller’s engineering range and Units first. BACnet Real values do not use PLC ABCD/CDAB byte-order settings.
Required behaviorConfiguration
Periodic readingKeep COV and event reception disabled until ordinary property reads work.
Change notificationsEnable COV, choose the subscription limit from the number of objects and set a lease in seconds. The DDC must support COV and reach the gateway’s bound UDP endpoint.
Confirmed COVEnable only when the peer supports confirmed notifications. This changes acknowledgement behavior, not measurement precision or a change threshold.
Alarm eventsConfigure the gateway endpoint and matching process identifier in the DDC Notification Class. Enabling event reception does not create alarm rules in the DDC. The refresh page limit bounds current-event queries.
Commandable outputMatch the peer application type and command priority. Priority 16 is the lowest. A higher active priority can keep Present_Value unchanged after a successful write. Inspect Priority_Array and release the same priority with Null when finished.

BACnet write priority controls the remote 1–16 priority array. The common Write priority switch controls gateway scheduling; it does not override higher BACnet command priorities. See device settings for retries and read/write scheduling.

Create a channel and device

Open Development Configuration → Collection Configuration. Create a UDP channel with a local binding and the remote BACnet/IP endpoint, normally on port 47808. Add a BACnet/IP client device, save it, and enable it. The channel owns the local binding. Bind to an actual local IPv4 address, or use 0.0.0.0:47808 for all local IPv4 interfaces. The remote endpoint is the device address; an arbitrary remote IP cannot be used as the local binding.

ParameterDescription
Target device instance0–4194303. Must match the remote I-Am and each variable’s deviceInstance. A device uses its channel’s fixed remote endpoint.
Broadcast endpointWho-Is destination when no BBMD is configured; default 255.255.255.255:47808. Choose the correct subnet and interface.
BBMD endpointOptional IPv4 unicast address and port, such as 192.0.2.10:47808. When set, registers with this BBMD and uses it to distribute Who-Is; empty selects local broadcast.
Foreign Device lifetime1–65535 seconds; default 300. Effective after registration is acknowledged; renewed at about 80% of the lifetime. A failed renewal does not extend the existing lease.
Enable device discoveryAllows Who-Is from the debug panel. An optional instance range limits discovery.
Request timeout100–120000 ms; default 3000.
Maximum RPM properties1–32; default 16. Collection splits properties into batches and reads individually when the peer explicitly rejects RPM or segmentation.
Maximum datagram bytes64–1476; default 1476. Includes BVLL, NPDU, and APDU. A single request that exceeds the limit fails. The minimum must accommodate the standard 50-byte response APDU and outer headers.
Write priority1–16; default 16. Lower numbers have higher priority.
Write application typeDefault Real; used for Object variables without an explicit application type.
Enable COV subscriptionsCreates object subscriptions while retaining polling for unconfirmed or expired relationships.
COV lifetime30–3600 seconds; default 300. Renewed before expiry.
Maximum COV subscriptions1–64; default 32.
Confirmed COV notificationsMatch the device’s capability. Valid confirmed notifications receive an acknowledgement.
Receive device eventsDisabled by default. Forwards notifications matching the configured source and process identifier through the plugin event path.
Event process identifierDefault 1; must match this receiver’s process identifier in the device Notification Class.
Refresh events after reconnectEnabled by default. With event reception enabled, refreshes current events after startup, reconnect, or resume.
Maximum event refresh pagesDefault 8, range 1–32. Reads one page per maintenance cycle and marks a limited refresh as incomplete.

Discover across subnets

Enter an existing BBMD endpoint under Discovery settings and ensure it permits Foreign Device registration. After startup, check its address, Foreign Device registration state, and latest registration or distribution error under the debug panel’s Core Status tab. The target device’s connection state is separate. Registration, renewal, discovery, and shutdown unregistration use the same UDP channel and local port.

Discovery retains the original device address carried by I-Am. Property reads, writes, and COV acknowledgements still use direct unicast to that device. The gateway therefore needs a reachable route and suitable firewall rules to the device; registration does not create a NAT mapping or relay ordinary unicast through the BBMD. Forwarded messages are accepted only from the configured BBMD while its acknowledged lease remains valid.

Discovery waits up to the request timeout, shortened when necessary to renew a short lease. If registration or distribution is rejected, check BBMD permissions and connectivity. An already sent Who-Is is not automatically replayed. Disconnecting revokes local registration and reconnecting requires a new acknowledgement. Shutdown attempts a zero-lifetime registration before closing locally; this does not guarantee that the BBMD acknowledged removal.

Configure variable addresses

{"deviceInstance":12,"objectType":2,"objectInstance":4,"propertyIdentifier":85}

This example reads Present_Value of Analog Value 4 on device 12. Obtain the actual identifiers from the online device. All fields are numeric. Optional arrayIndex uses 0 for array length and indices starting at 1 for elements. deviceInstance must match the device settings. Common property identifiers include 77 for Object_Name, 117 for Units, and 111 for Status_Flags; check that the object supports them.

  1. Add or edit a variable in Real-time Variables and open Field editor beside its address.
  2. Enter the device instance, object type, object instance, and property identifier. Enable the array index only when needed; enter 0 explicitly to read the length.
  3. Confirm and fill back the address, review the generated JSON, then save the variable.
  4. Reopen the editor to verify the saved fields. Cancel discards changes in the field editor.

Check real-time values

Set each variable’s Write application type under Address → Edit fields → Write configuration when required. Without an override, Boolean uses Boolean, unsigned integers use Unsigned, signed integers use Signed, Float uses Real, Double/Decimal use Double, String uses CharacterString, and Object uses the device default. Explicitly select OctetString, Enumerated, Null, BitString, Date, Time, or ObjectIdentifier to match the remote property. Use Object for structured values and Base64 text for OctetString. BACnet Signed/Unsigned are limited to 32 bits, so larger Int64/UInt64 values fail; Decimal writes to Double are subject to double precision. Float/Double preserve representable tiny nonzero values. Fractional values read as integers, numeric overflow, and underflow when converting to integers or Decimal fail explicitly.

Use the row’s Write action to submit a value. Enter null for an empty protocol value, "null" for literal text, and "" for an empty string. Select multiple rows and use More → Batch write to inspect each result. Success means that the device acknowledged the write; verify the following collected value as well. Cancel closes the draft without submitting it.

Enable the variables and open Real-time Variables. Check the configured address, runtime source address, value, online state, and error for every point. Collection time advances on successful reads; change time can remain unchanged while the value stays the same. Change a source value or perform an authorized write, then verify the value and change time.

An invalid object, property, or array index reports an error for that variable without preventing other valid points from updating. After correcting it, confirm that the point returns online and its error clears.

Protocol debugging

Select the device and open Protocol Debug. Core Status shows device capability and datagram budgets; Special Methods and the protocol tabs follow it. Use the workspace Refresh action to update status. Discovery results, COV relationships, errors, and notifications have separate pagination, with 20 rows per page by default. Auto-refresh preserves the current page. Object browsing reads at most 64 objects per page. Display pagination does not change RPM batches or APDU capability.

  1. In discovery, enter both instance limits or leave both empty. Check the returned instance, endpoint, vendor, maximum APDU, and segmentation capability. Discovery does not change the channel’s remote endpoint.
  2. Browse objects by page. The plugin first reads Object_List length, then the requested array indices.
  3. Read a full property address. For batch reads, enter one address per line, up to 32, and inspect each result.
  4. Before writing, read the current value, type, and priority. Enter the JSON value, application type, and priority, confirm, then read back.
  5. Relinquish priority writes Null into the selected slot. Present_Value may still be controlled by another priority.
  6. Enter the object type and instance on the COV tab. Leave the property identifier empty for an object subscription, or enter a property with an optional array index and change threshold. Check confirmation, retry/cancellation state, lease, and recent notifications, then cancel the test relationship.

Batches, segmentation, and small devices

Collection groups properties into RPM batches of 1–32. Every request must also fit the complete datagram budget. The advertised response APDU size uses a standard size that fits the remaining space after BVLL and NPDU; a 64-byte datagram budget advertises a 50-byte APDU. The client supports APDU segmentation in both directions. RPM rejection, a protocol rejection, or a local size limit triggers individual ReadProperty requests in the original order. Each point retains its own result. Malformed, missing, duplicate, or mismatched acknowledgements fail directly.

All chunks and individual fallback reads in one batch operation share the configured request timeout. The deadline does not restart for each point. Reaching it fails the whole operation with a timeout; cancellation stops the remaining reads. Adding points does not multiply the wait when the remote device is offline.

Object_List is read by length and array indices rather than as a whole array. For devices that accept only individual reads, set maximum RPM properties to 1. Collection, property details, special methods, and debugging then use ReadProperty individually.

BACnet/IP client: Object browser

Include valid addresses and one invalid address in a batch. Inspect each succeeded and error, including valid points after the failed one. The overall panel reports failure when any point fails. This example uses one property per batch and a 64-byte complete datagram budget:

BACnet/IP client: Batch read

Each manual COV relationship retains its own process ID, lifetime, and confirmation mode. Object and property relationships share the device’s subscription limit. Zero selects a process ID automatically; renewal and cancellation reuse the registered ID. Manual leases accept 30–86400 seconds. Failed cancellation stops renewal and is retried. Device shutdown cancels relationships and closes the channel within a bounded deadline. Only notifications matching the device, object, property, and array index update a variable.

For property subscriptions, an empty array index selects the whole property, 0 selects its length, and positive indices select elements. A change threshold applies to REAL properties and compares cumulative change against the last notified value. Check the peer’s actual error if property subscriptions, array elements, or an explicit increment are unsupported. The active table shows the property, index, and threshold; its row action cancels only that relationship.

Scalar reads and writes support Null, Boolean, Unsigned, Signed, Real, Double, OctetString, CharacterString, BitString, Enumerated, Date, Time, and ObjectIdentifier. CharacterString uses UTF-8. The peer still decides which properties are writable.

Calendars and schedules

Open the collection device’s Protocol Debug → Schedules, choose Schedule or Calendar, and enter the Object instance of an existing object on the peer. The displayed Device instance comes from the current device configuration; it is a separate identifier from the object instance.

  1. Select the property and click Read current property. A successful read shows Read from device and opens the current content. Read each property separately before editing it for the first time.
  2. Edit using the controls below. Unsent changes marks an edited draft. Switching property tabs on the current device preserves each property’s draft. Reading an edited property again replaces its draft only after confirmation.
  3. Click Write and verify, check the device, object instance, and property in the confirmation, then confirm. Each submission writes the complete current property; for example, Weekly schedule submits all seven days from Monday through Sunday.
  4. Check Device accepted and Readback matches separately. Both are required to confirm a verified configuration. Expand View device readback to inspect the actual content.
TaskControls
Weekly scheduleSelect a day, add or delete times, and select a time to edit its value type and output value. Choose destination days and click Copy current day to replace those days in the draft.
ExceptionsSelect or add an entry. Use a date, date range, month and week pattern, or Calendar reference. Set an exception event priority from 1 to 16 and edit its times and output values.
Effective period and default valueEdit the start/end dates and the typed default output separately. Leave the year blank for a wildcard; other date fields offer Any, odd/even months or days, and last-day patterns where applicable.
Output references and output write priorityEnter each output object’s type, instance, and property. Add an array index or a device instance when required. Set an output write priority from 1 to 16 separately from exception event priorities.
Calendar datesChoose Calendar, read Calendar dates, and edit each entry as a date, date range, or month and week pattern. Each entry selects one condition.

When a write is accepted but its readback is not verified, acceptance is uncertain, or no valid receipt is available, the configuration is not confirmed. The page retains the draft and requires a current-property read before another write can be considered. Read again after switching to another device. Users with query permission can browse the days and entries already read. Properties are submitted separately without a transaction across properties.

For continuous collection of structured Calendar (object type 6) and Schedule (object type 17) properties, use Object variables to retain fields, arrays, and application tags.

PropertyStructure and meaning
Calendar Date_List (23)Entries selecting exactly one date, date range, or WeekNDay pattern.
Schedule Effective_Period (32)An inclusive start and end date.
Weekly_Schedule (123)Seven days, Monday through Sunday, each containing a Values time list. Indices 1–7 select one day; index 0 returns the count.
Exception_Schedule (38)An inline calendar condition or Calendar reference, time values, and event priority.
List_Of_Object_Property_References (54)Output object, property, optional index, and device identity.
Schedule_Default (174), Priority_For_Writing (88)Default application value and output write priority.

Times retain hundredths of a second and must increase strictly within a day. Limits are 128 time values per day, 128 calendar or exception entries, and 60000 encoded bytes per structured property. Values explicitly include Tag and Value, such as {"Tag":"Real","Value":21.5}. {"Tag":"Null","Value":null} releases a value or selects a fallback; it does not mean zero.

To submit a structured value directly, select WriteSchedulePropertyAsync in Special Methods and supply the complete property address and structured value. It sends one write and verifies it with a separate read. WriteAccepted and Verified distinguish peer acceptance from matching readback. A null acceptance result means the write outcome is uncertain.

Special methods

Open Protocol Debug → Special Methods. Switching protocol tabs preserves the current device’s drafts and results.

MethodParameters and purpose
DiscoverDevicesAsyncOptional lowLimit and highLimit; sends Who-Is and returns bounded results.
BrowseObjectsAsyncstartIndex starts at 1; pageSize is 1–64.
ReadPropertyAsync / ReadPropertiesMultipleAsyncA single addressJson, or addresses containing an array of JSON address strings.
ReadTrendLogAsyncrequest specifies the Trend Log address, position/sequence/time reference, and count; up to 256 records per call.
GetEventInformationAsyncOptional after object identifier; returns one page of current events and the three transition timestamps. Continue with the last returned object identifier.
GetAlarmSummaryAsyncReads current non-normal alarm summaries; does not replace event information including unacknowledged recovery transitions.
AcknowledgeAlarmAsyncacknowledgment contains the object, exact event state, and original device timestamp. Requires current device method-call permission.
CreateObjectAsyncrequest specifies an object type, optional instance, and up to 64 initial properties; returns the assigned identifier.
DeleteObjectAsyncobjectType and objectInstance identify the object to delete; waits for the protocol acknowledgement.
SynchronizeTimeAsynctime is a complete date/time, utc selects UTC or device-local input, and deviceTimeZoneId is the device time zone; verifies the device date and time after sending.
ControlCommunicationAsyncstate is Enabled, Disabled, or DisableInitiation; optional durationMinutes and passwordReference.
ReinitializeDeviceAsyncAn explicit initialization state and optional passwordReference; the gateway server supports WarmStart, while other devices determine supported actions.
WritePropertyAsync / RelinquishPropertyAsyncProperty address, application type / JSON value, and priority; waits for the peer’s response.
WritePropertiesMultipleAsyncvalues contains 1–64 property writes with individual addresses, values, application types, and priorities. Returns batch acknowledgement or the first failed property.
WriteSchedulePropertyAsyncComplete Calendar/Schedule addressJson and structured value; reports acceptance, verification, and an uncertain write outcome separately.
SubscribeCovObjectAsyncobjectJson, such as {"objectType":2,"objectInstance":4}, plus process identifier, lifetime, and confirmation mode.
SubscribeCovPropertyAsyncFull variable addressJson; optional process identifier, lifetime, confirmation mode, and covIncrement.
CancelCovPropertyAsyncCancels the exact property or array element using its full addressJson and optional process identifier.
CancelCovObjectAsync / CancelAllCovAsyncCancels one object relationship or all relationships for the device.

The objectJson parameter of SubscribeCovObjectAsync and CancelCovObjectAsync has its own Edit fields entry. Supply only Object type 0–1023 and Object instance 0–4194303. This object reference does not include a device instance, property identifier, or array index; do not paste a variable-address JSON object. Use SubscribeCovPropertyAsync for property subscriptions. Confirming each field dialog only fills back parameters; Execute special method sends the request.

Object type and instance fields for an object-level COV request, Chinese interface

Enter parameters as a JSON array in method order, or use the field editor. Trailing optional parameters can be omitted. Discovering only instance 12 uses [12,12]. Browsing 16 objects from index 65 uses [65,16]; a final page may contain fewer rows while preserving the total count.

BACnet/IP client: Special Methods

A successful multiple-property read can still contain per-property errors. Inspect every Error. A ReadProperty address is a string parameter and requires JSON escaping:

["{\"deviceInstance\":12,\"objectType\":2,\"objectInstance\":4,\"propertyIdentifier\":85}"]

Device alarms and events

Configure the device Notification Class destination with the collection channel’s reachable local IP address and UDP port. For MS/TP destinations, see the serial client. Match the destination process identifier to the event process identifier, then enable event reception. Confirmed and unconfirmed EventNotification services are supported. COV subscriptions do not subscribe to alarms. Original event type, state, priority, timestamp, message, and notification parameters enter the device-event forwarding path without creating local gateway alarm rules.

Call GetEventInformationAsync with [] for the first page. When MoreEvents=true, pass the last returned object identifier as after, for example [{"ObjectType":2,"Instance":4}]. At most 128 entries are accepted per page. Automatic refresh reports Complete; partial results caused by an error or page limit must not clear unlisted alarms. A refresh cannot recover all historical notifications that ended while offline.

To acknowledge, copy the exact event state and its original timestamp from a query or notification. Transition slots are offnormal, fault, and normal; high-limit state is 3, low-limit state is 4. For a sequence timestamp actually returned as 9, select AcknowledgeAlarmAsync and enter:

[{"ProcessIdentifier":1,"EventObject":{"ObjectType":2,"Instance":4},"EventState":3,"EventTimestamp":{"SequenceNumber":9},"Source":"Operator","AcknowledgmentTimestamp":{"SequenceNumber":10}}]

Preserve a time or DateTime timestamp when the device uses that choice; do not replace it with the example sequence or gateway receipt time. Acknowledged=true confirms the request; inspect subsequent acknowledgement bits. false is a protocol rejection with error class/code. A null outcome is uncertain and requires a query before further action. A protocol notification ACK confirms delivery only. Refresh stale timestamps rather than automatically rewriting and retrying the acknowledgment.

Multiple-property writes

Select WritePropertiesMultipleAsync in Special Methods. Submit 1–64 different properties on the same device, each with Address, Value, ApplicationTag, and Priority. This method uses a structured address. For example, write two analog-value objects on device 12 at priority 8:

[[ {"Address":{"DeviceInstance":12,"ObjectIdentifier":{"ObjectType":2,"Instance":4},"PropertyIdentifier":85,"ArrayIndex":null},"Value":21.5,"ApplicationTag":"Real","Priority":8}, {"Address":{"DeviceInstance":12,"ObjectIdentifier":{"ObjectType":2,"Instance":5},"PropertyIdentifier":85,"ArrayIndex":null},"Value":22.5,"ApplicationTag":"Real","Priority":8} ]]

Set an item’s Value to null, set ApplicationTag to Null, and retain the command slot’s Priority to release it. Structured Calendar/Schedule properties use the formats above and require Priority=null. Requests use the current segmentation budget. Peers without this service return an error.

Acknowledged=true confirms the batch; read back actual outputs as required. false indicates a protocol rejection; FailedProperty and error codes identify the first failure when supplied by the peer. Earlier writes may already have taken effect and are not rolled back. Acknowledged=null means timeout, cancellation, or an invalid response left the outcome uncertain; read the affected properties before retrying. The driver does not automatically replay the batch or replace it with individual writes.

Time synchronization and device management

These methods require current permission to call device methods. Time synchronization requires a complete date and time: Monday through Sunday use 1–7, and hundredth is in hundredths of a second. Wildcard dates and times are rejected. Set utc=true for UTC input and specify the actual device time zone. Results report sending and readback verification separately; Sent=true with Verified=false does not confirm that the device accepted the time.

durationMinutes is in minutes; omitted or 0 lasts until explicitly enabled. Enabled restores communication, DisableInitiation suppresses unsolicited notifications while responding to requests, and Disabled suppresses ordinary requests and notifications. Confirm the peer supports the chosen state; devices using newer protocol revisions may reject Disabled.

Provide management credentials only as a deployment reference such as env:BACNET_MANAGEMENT_PASSWORD. The referenced process environment variable holds the actual password of 1–20 characters. Method parameters, configuration exports, and results do not contain the password. Communication control and reinitialization submit once; a lost acknowledgement, timeout, or cancellation may leave the outcome unknown. Check device state before another action; requests are not automatically replayed.

Reading trend logs

Select ReadTrendLogAsync in Special methods to read Log_Buffer (property 131) from a Trend Log object (type 20). This example requests 64 records starting at position 1:

[{ "Address":{"DeviceInstance":12,"ObjectIdentifier":{"ObjectType":20,"Instance":7},"PropertyIdentifier":131,"ArrayIndex":null}, "Mode":"Position", "Count":64, "ReferenceIndex":1 }]

Choose Position, Sequence, or Time for Mode and provide only the corresponding ReferenceIndex, ReferenceSequence, or ReferenceTime. Positions start at 1 and can change when the device buffer overflows. Sequence numbers come from the device. Count accepts 1 to 256 or -256 to -1; negative counts query backwards, while returned records remain in log order. Each call reads one page, and the device may return fewer records.

Time references use the device’s local date and time without conversion to the gateway’s time zone. For example: {"Date":{"year":2026,"month":11,"day":21,"weekday":6},"Time":{"hour":10,"minute":20,"second":30,"hundredth":40}}. All four time components are required; hundredth measures hundredths of a second. Query boundaries must be complete. Wildcard fields received in log records are preserved.

Inspect FirstItem, LastItem, MoreItems, and FirstSequenceNumber before requesting another page. MoreItems means the device truncated the requested range. A false value does not mean there are no records beyond the requested count. Nonempty sequence and time pages include the first sequence number, which can be used for a subsequent sequence query. Position queries do not guarantee it. Check sequence continuity when the log changes or overflows; increasing a position alone does not prove the records stayed unchanged.

Each item in Records preserves the device timestamp, Kind, Value, and optional StatusFlags. Disabled, purged, or interrupted logging, read errors, and clock changes have distinct kinds and must be handled separately from ordinary samples. Status bits mean in alarm, fault, overridden, and out of service; an omitted value remains distinct from four false bits. Any contains Base64 of the original BACnet encoding for interpretation according to the device documentation. Nonfinite REAL values use the strings NaN, Infinity, or -Infinity.

Creating and deleting objects

Select CreateObjectAsync in Special Methods. For example, create calendar instance 7:

[{"ObjectType":6,"Instance":7,"InitialValues":[{"PropertyIdentifier":77,"ApplicationTag":"CharacterString","Value":"Holiday calendar"},{"PropertyIdentifier":23,"Value":[{"Date":{"Year":null,"Month":12,"Day":25,"Weekday":255}}]}]}]

Omit Instance to let the device allocate one; use the returned ObjectIdentifier as the actual identity. Wildcard instance 4194303 is rejected. InitialValues accepts at most 64 entries with a property identifier, value, and optional array index. Scalars use an explicit ApplicationTag; Calendar/Schedule structures, log references, and date/time values use the respective property’s structured format. The peer determines creatable types, required initial values, capacity, and deletion conditions. The gateway server allows Calendar (6), Schedule (17), and Trend Log (20).

Select DeleteObjectAsync and enter [6,7] to delete that calendar. Both methods require current method-call permission. Acknowledged=true confirms completion; false is an explicit rejection with ErrorClass and ErrorCode. A create error’s FirstFailedElementNumber is a one-based initial-property index; zero identifies an object-level failure. A lost, malformed, or mismatched acknowledgement leaves Acknowledged null and the outcome uncertain. The driver does not replay the operation. Browse the object list and read properties before retrying to avoid duplicate creation or deleting a later object with the same instance.

Reading and writing file blocks

Select ReadFileAsync in Special methods. For example, [1,0,4096] reads the first block from File object (type 10), instance 1. Parameters are fileInstance, a nonnegative byte position, and count from 0 to 4096. The result preserves Position, Base64 Data, and EndOfFile. A short block alone does not prove EOF; advance by the actual returned length when requesting another block.

WriteFileAsync accepts fileInstance, position, and Base64 data of at most 4096 bytes. For example, [1,-1,"CQgH"] appends bytes 09 08 07. A nonnegative position overwrites the corresponding bytes; hole and extension behavior depends on the peer. Acknowledged=true confirms acceptance and Position gives the actual start. false means a protocol rejection; inspect the error class and code. A null acknowledgement leaves the outcome unknown after timeout, cancellation, or an invalid response. Verify length and content before retrying; the driver does not automatically replay or append again.

Only stream access is supported. Each block uses the peer’s segmentation capability and datagram budget, and commits separately; a sequence of blocks is not a whole-file transaction. The gateway server accepts an empty EOF read at the current file length; other devices may reject that position. Collection preserves the actual rejection. Both methods require current device-method permission, and file bytes are independent of variable data types.

Troubleshooting

SymptomCheck and action
No discovery resultsCheck broadcast subnet, interface, UDP binding, firewall, and instance range. Directed reads use a different path from broadcast discovery.
Wrong source or timeoutCheck the remote endpoint, device instance, and port.
One RPM property failsInspect its error and verify object, property, array index, and service support.
RPM rejected or segmentation failsCheck peer segmentation capability and the datagram budget. Protocol rejection can trigger individual reads; malformed or incomplete acknowledgements fail directly.
Write accepted but value unchangedRead Priority_Array, Present_Value, and Out_Of_Service; check higher priorities.
No COV notificationsCheck support, lifetime, confirmation mode, increment threshold, and relationship state. Verify polling first.