How can I set, clear and check Bosch encoder virtual alarms via CGI?
Related Products
All Bosch encoders running firmware 4.0 and above
You can use virtual alarms within encoders as a trigger to have other events take place. This is an example on how to integrate 3rd party devices/software to trigger an event to take place on the encoder. This event could be used to change any variable via ATSL (Alarm Task Script Language) - example below
Virtual Alarms via CGI
Set Virtual Alarm:
http://160.10.92.40/rcp.xml?command=0x0a8b&type=F_FLAG&direction=WRITE&payload=01&num=1
Clear virtual Alarm:
http://160.10.92.40/rcp.xml?command=0x0a8b&type=F_FLAG&direction=WRITE&payload=00&num=1
Check virtual Alarm:
http://160.10.92.40/rcp.xml?command=0x0a8b&type=F_FLAG&direction=READ&num=1
Return result :
0 refer to virtual alarm is set
1 refers to virtual alarm is clear
Virtual Alarms in ATSL
if (VirtualAlarm(1)) then Relay(1) := true;
if (!VirtualAlarm(1)) then Relay(1) := false;