Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
OnEvent("BACNET","_id_","_событиеevent_")

BACNET object events description:

EventDescription
ERRORError message received
EVENT_OCCURES

Message acknowledgment

WRITE_OCCURES

Recording confirmation
WRITE_RESULTRecording result

 Operator format for describing actions with the BacNet object :

Code Block
DoReact("BACNET","_id_","_командаcommand_" [,"_параметрыparameters_"]);

The list of commands and parameters for the BACNET object is presented in the table.

Command – description
ParametersParameters description

WRITE – send value to BACnet device

bacnet_application_tag<>

Data type. Possible values:

NULL = 0
BOOLEAN = 1
UNSIGNED INT = 2
SIGNED INT = 3
REAL = 4
DOUBLE = 5
OCTET STRING = 6
CHARACTER STRING = 7
BIT STRING = 8

bacnet_value<>

Parameter value

bacnet_objtype<>

Object type:

ANALOG INPUT = 0
ANALOG OUTPUT = 1
ANALOG VALUE = 2
BINARY INPUT = 3
BINARY OUTPUT = 4
BINARY VALUE = 5

bacnet_instance<>

BACnet unique global device identifier

bacnet_property_id<>

Property id

bacnet_device_id<>

BACnet device identifier in the system
EVENT – send message to BACnet device

event_type<>

Event type

from_state<>

Change state from

to_state<>

Change state to

message_text<>

Event text

 Examples. The code is given in JScript, see Programming Guide (JScript)

...