Example 2 – dynamic allocation of system node id – ProSoft Technology PS-QS-1x10-0781 User Manual
Page 51

FieldServer Configuration Manual
Page 51 of 90
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web: www.fieldserver.com
Tel: (408) 262-2299 Fax: (408) 262-2269 Toll Free: (888) 509-1970 email: [email protected]
7.1.3.2 Example 2 – Dynamic Allocation of System Node ID
The FieldServer watches DA_NODE_ID_NEW offset 0. When the data is updated, the FieldServer looks for a Node
named ‘NODE_1’. If a valid one is found then the NODE_ID of that Node will be changed and the FieldServer will
print a message reporting the change.
Dynamic_Parameters
Function
, Descriptor_Name , Data_Array_Name , Data_Array_Offset , Low_Limit , High_Limit , Save
Change_System_Node_ID , NODE_1
, DA_NODE_ID_NEW , 0
, 0
, 255
, Yes
The Low_Limit and High_Limit parameters may be omitted in which case the Node_ID is not validated against
them.
The save value enables or disables making the change permanent. If yes, the value will be stored and used next
time on start-up as the Node_ID. If no, the change will only remain until the next power cycle, at which time the
value in the configuration file will be used.
7.1.3.3 Example 3- Dynamic allocation of the BACnet MAC address
Configuration and operation is the same as changing the System_Node_ID except that this command not only
changes the value of the System_Node_ID parameter it also causes the firmware to write to the underlying PIC on
the FieldServer to have it start using the new ID.
Dynamic_Parameters
Function
, Descriptor_Name , Data_Array_Name , Data_Array_Offset , Low_Limit , High_Limit , Save
Change_System_MAC_Addr , Bridge1
, DA_NODE_ID_NEW , 0
, 0
, 255
, Yes
In the example above, the FieldServer watches offset zero of the Data Array called DA_NODE_ID_NEW. If it
changes and the new number is valid (in range) then the ‘Bridge’ section of the configuration file is scanned until a
bridge whose ‘Title’ matches the descriptor name’ is found. Once found, the value of the System_Node_ID is
updated and the driver writes the new ID down to the PIC on which the BACnet driver has been implemented.
The Low_Limit and High_Limit parameters may be omitted in which case the Node_ID is not validated against
them.
The save value enables or disables making the change permanent. If Yes, the value will be stored and used next
time on start-up as the System_MAC_Addr. If No, the change will only remain until the next power cycle, at which
time the value in the configuration file will be used.