Skip to main content

How to toggle an AMC relay by double-clicking on a floor plan symbol

· Configure relay outputs
- assign to any AMC a new door model "DIP/DOP" containing 1 DOP (=digital output/ relay
output)
- rename the output to "realRelay"
- reload BIS and check available right-click command relay set/reset for the address
AccessEngine.Devices.realRelay.State
· Configure virtual detector
- Config Browser-> Infrastructure-> Detector types-> Virtual
· create new detector type "Relay control"
· select option "The reported states will be applied to the system without changes"
· assign command "Set state" and create a copy of it
· rename the copy of the command to "!toggle" (=fast access command) and assign Parameter State
"7-Control on"
- Config Browser-> General settings-> virtual device
· create a new virtual detector virtualRelay
· assign detector type "Relay control" to it
- If no floor plan loaded: Config Browser-> Locations-> Tree structure
· load any drawing that contains at least one hyperlink
- Config Browser-> Locations-> Detector placement
· locate the *VIRTUAL* detector virtuell.virtualRelay on any hyperlink
· Configure state update of virtual detector
- Config Browser-> General settings-> Associations
· create a new job "Toggle relais" containing:
· Trigger: Address AccessEngine.Devices.realRelay.State changed from * to *
· Then: Address virtuell.virtualRelay command Virtual.Set state (keep macro)
file:///C/...Local/Temp/How%20to%20toggle%20AMC%20relay%20by%20double-clicking%20on%20a%20floor%20plan%20symbol.html[5/21/2018 11:33:17 AM]
· Configure relay toggling if virtual detector was double-clicked
- Config Browser-> General settings-> Associations
· add to the above job "Toggle relais" a new Timer "Switch relais"
· add a new trigger to the same job
- Trigger: Address virtuell.virtualRelay changed from * to "7-Control on"
- Then: Timer "Switch relais" start with timeout 1s
· add a new trigger to the same job
- Trigger: Timer "Switch relais" changed from * to TimedOut
- IF: Address AccessEngine.Devices.realRelay.State = "4176-Relay closed"
- Then: Address AccessEngine.Devices.realRelay.State command Access Engine.Relay
set/reset with parameter 0
- ELSE: Address AccessEngine.Devices.realRelay.State command Access Engine.Relay
set/reset with parameter 1
· Check behaviour
- real relay is deactivated
- state virtualRelay in floor plan = "relay open"
- double-click virtual detector VirtualRelay in floor plan
è state changed to "7-Control on"
è after one second the real relay will be switched on
è state virtualRelay in floor plan = "relay closed"
- double-click virtual detector VirtualRelay in floor plan again
è state changed to "7-Control on"
è after one second the real relay will be switched off
è state virtualRelay in floor plan = "relay open"
· Notes:
- you may also configure customized states matching the connected hardware like "lights on"/
"lights off"/ "switching in progress" to make the handling for the operator even more easy
- you may assign a (customized) symbol to the virtual detector virtualRelay too
- Instead of a relay output any other address with two different states might be controlled too.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.