The OPERATORPROTOCOL object corresponds to the Operator protocol system object.
The operator format for description of actions with the Operator protocol object:
DoReact("OPERATORPROTOCOL","_id_","_command_" [,"_parameters_"]); |
The list of commands and parameters for the OPERATORPROTOCOL object is given in the table.
Command – its description | Parameters | Parameter description |
DEL_ALARM | objtype<> | Object type (e.g., CAM, GRELE, etc.) |
objid<> | Object ID | |
options<> | Possible values: first – delete first alarm last – delete last alarm all or empty – delete all alarms | |
HIDE_BUTTON – hide buttons used to assign status to event.
| button<> | Names of buttons separated by comma: alarm – Alarm situation suspicious – Suspicious situation false – False triggering Example of setting parameter: button<alarm,suspicious,false> |
hide<> | 1 – hide buttons listed in the button parameter 0 – show buttons listed in the button parameter | |
objtype<> | Object type | |
objaction<> | Event type | |
objid<> | Object ID |
Example 1. Delete the first alarm on Camera 3 in the Operator protocol window on Macro 2.
OnEvent ("MACRO","2","RUN") { DoReact("OPERATORPROTOCOL","1","DEL_ALARM","objtype<CAM>,objid<3>,options<first>"); } |
Example 2. Hide the Alarm, Suspicious and False buttons for the Disarm event from Camera 12 in the Operator protocol window on Macro 2.
OnEvent ("MACRO","2","RUN") { DoReact("OPERATORPROTOCOL","1","HIDE_BUTTON","button<alarm,suspicious,false>,hide<1>,objtype<CAM>,objaction<DISARM>,objid<12>"); } |