Sample code for two man rule card access.

Issue

Require sample code to configure a Door for the "two man" rule, where two valid card reads are required before a door is opened.

Product Line

Andover Continuum

Environment

Continuum Access Control

ACX5720

ACX5740

Cause

Require sample code to configure a Door for the "two man" rule.

Resolution

For this "two man" rule you would need to take control from the Door object and do this through a Plain English program. Make sure to remove the door status input from the Door and define this as an Infinity Input if you want to use it within the Door program, otherwise the door will never show a "ValidAccess" signal for the program to work as it will be waiting for someone to walk through the Door first. See below example code of one way to accomplish this.
 

========== Sample Code ==========
Numeric LastCard

WaitForValid1:
  Door1 = off
    If Door1 ValidAccess is True then
      LastCard = Door1 EntryLastCard
      GoTo WaitForValid2
    Endif

WaitForValid2:
  If TS > 5s then
    goto WaitForValid1
  else
    If (Door1 ValidAccess is True) and (Door1 EntryLastCard <> LastCard) then
      Door1 = on
      goto TimeWait
    endif
  endif

TimeWait:
  if TS > 5s then goto WaitForValid1
===============================