Hello ,
My customer want to use SCADA BASIC to set varaible Write Priority in Bacnet. The code as below.(PcVue version 11.1)
Sub Main()
End Sub
Sub ResetPriority()
dim intRTN as Integer;
intRTN = BACNET("RESET_PRIORITY","@Network01.Device01.Binary_Output_7", 8 );
print (intRTN);
End Sub
Error code is 0 , but event view show BACnet, error reset priority: Unknow variable @Network01.Device01.Binary_Output_7)
I have tried my side. Its the same result. Since I know less about bacnet. Hope can get more information from your side. Is there any other configure need to set before use this instruct or there are rules inside?
Lily
Just remove the @
😉
I will try again.
hi nico,
I've tried your suggestion. without @,
Dim intRTN As Integer;
intRTN = BACNET("RESET_PRIORITY", "Network01.Device01.analog_output_0.present_value", 8,"result");
Print (intRTN);
the result varaible @result is -5. (-5: The reset has failed.) And the varaible advanced property's Write priority is still not changed.
did I do sth wrong?
Lily
hi lily,
I know, it is half of a year too late, but in one of our projects, we realized all the auto/manual - process (including reading the priority-array, set as manual, etc... ) in an app-architect lib. So if you still working on BACnet projects, feel free to contact me.


