Start a new topic

UG65 Bacnet - UC100

Hello,


Is it possible to write to an modbus end device from UG65 bacnet server with using UC100 ?


I managed to read all data configured in UC100 via UG65 bacnet server. But writing to these datapoints simply does not work, its refresh its value on new uplink. Does these datapoints can initaite a downlink? Or writing to the end device is not possibe from bacnet server of UG65?


If not, then what is the solution to write a register from Niagara framework?


Thanks

Peter

1 Comment

Hi Peter 


This is Max from Milesight-IoT Support


Yes, for the BACnet Server on UG65, this is feasible.

First, please ensure that you have integrated UC100 into the BACnet BMS System as described in the following article. Taking Yabe as an example, you can check the current Modbus channel value as shown below.

How to Integrate LoRaWAN Devices to BACnet BMS System via Milesight Gateway : IoT Support 



If you want to write to the end device(Modbus Slave) via BACnet, you need to make the following changes.
1. Please refer to the article linked below to enable the Modbus RS485 Bridge LoRaWAN Feature and set the mode to active Pass-through.

How to use Modbus RS485 Bridge LoRaWAN Feature : IoT Support 


2. Configure the port and set the fport of UC100 to the same port.


3. Refer to the Custom Payload Codec in the following link to add the encoder in the attachment to the encoder of UC100 and apply it. This encoder defines the command that the gateway should send when we modify the value of the register pointed by Channel 1 of this UC100 using the Yabe BACnet client. You can modify this code according to your needs.

How to Use Payload Codec on Milesight Gateway : IoT Support 


Go to the Yabe directly modify the value of modbus_chn_1. For instance, change 2 to 10. The gateway will then send a downlink command to UC100. Then you can check in the end device whether this modification was successful. Take the Modbus slave as a modbus end device.



Best Regards,

Max Cai | Technical Specialist

doc
(138 KB)
Login or Signup to post a comment