Resetting antipassback (APB) parameters for a given user is performed using a script sending simulated entrance/exit commands to the Gate controller:
Example:
// generating entrance
if(Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN") {
DoReactStr("RAVELIN_SINGLE","1.1","SIMULATE_ENTER","person_id<1>");
}
// generating exit
if(Event.SourceType == "MACRO" && Event.SourceId == "2" && Event.Action == "RUN") {
DoReactStr("RAVELIN_SINGLE","1.1","SIMULATE_EXIT","person_id<1>");
}
|