Bacnet Rest Priority

5 Posts
3 Users
0 Likes
29 Views
w.qin
(@w-qinarcinfo-com)
Posts: 21
Eminent Member
Topic starter
 

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

 
Posted : 24/01/2017 12:18 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Just remove the @
😉

 
Posted : 24/01/2017 1:09 pm
w.qin
(@w-qinarcinfo-com)
Posts: 21
Eminent Member
Topic starter
 

I will try again.

 
Posted : 24/01/2017 1:17 pm
w.qin
(@w-qinarcinfo-com)
Posts: 21
Eminent Member
Topic starter
 

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

 
Posted : 24/01/2017 2:15 pm
(@j.becker@pcvue.de)
Posts: 0
New Member Guest
 

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.

 
Posted : 24/07/2017 5:23 pm