VertX Triggers and Macros Example Scripts

*#Access Granted by reader and Accessgroup*
L(1)=[interfaceid=0][reader=0][accessgroup=2]E(2,20)
L(1)=[\]S(2)
G(1)=S(1)&L(1)

*Use the UniqueID for the credential from the grant at any door:*
TCP("HOST","PORT","MESSAGE") = ([uniqueid=3](E(2,20)))

*Though depending on what type of "different TCP Strings" you can use some of the parameters used as filters in the message as well:*
TCP("HOST","PORT","Grant Access by $uniqueid") = E(2,20)

*Or use the raw card number from the grant:*
TCP("HOST","PORT","MESSAGE") = ([hexcard=02020002](E(2,20)))

You can't use just the "Card Number" that most people refer to as in our system that is not guaranteed unique.

*Reader Unlock Toggle based on Access Level*
L(1)=[interfaceid=0][reader=0][accessgroup=1]E(2,20)
L(1)=![interfaceid=0][reader=0][accessgroup=2]E(2,20)
O(0,0)=L(1)

  • Line 1 Explanation:  Logic Variable 1 is set to true when a valid card with access level 1 is read at reader 1 on sub-controller 0.
  • Line 2 Explanation:  Logic Variable 1 is set to false (!) when a valid card with access level 2 is read at reader 1 on sub-controller 0.
  • Line 3 Explanation:  Door Strike 1 on Sub-controller 0 is set to follow the state of Logic Variable 1.


*First Man In*
L(1)=[interfaceid=0][reader=0]E(2,20)&[\]S(3)
L(1)=[\]S(3)
O(0,0)=S(3)&L(1)

  • Line 1 Explanation:  Logic Variable 1 is set to true when a valid card is read at reader 1 on sub-controller 0 during Time Schedule 3.
  • Line 2 Explanation:  Logic Variable 1 will follow the state of Time Schedule 3.
  • Line 3 Explanation:  Door Strike 1 on Sub-controller 0 will turn ON when Time Schedule 3 is active AND (&) Logic Variable 1 is true.