One way to configure a Logic In port is to set it to Momentary. You use this setting if you intend to connect a momentary contact type of physical switch to the Logic In port, which could be a push button, for example. With a normally open momentary push button switch, the switch contacts are open when no one is pushing on the button and closed when someone pushes the button. Systems typically use these types of switches when the end user wishes to turn something on (for example open a wall) by pushing and releasing the button and then turning the same thing off (close the wall) by pushing the button again.
This is exactly what the HAL system does when you have configured a Logic In port to be a Toggle and set it to Momentary. In this case pressing the button the first time sets the state of the corresponding toggle control in the Processing Workspace to ‘checked’ and pressing it again sets the toggle control to ‘unchecked’. The following shows how this works in more detail using a DR5 input port, a momentary switch, and a Room Combine block wall toggle.
First, the following diagram shows how to connect two normally open, momentary push button switches to DR5 Switch input ports. You should configure these ports as Momentary in the Hardware Workspace property dialog for the DR5.
Once you have configured the DR5 in the Hardware Workspace, Toggle controls appear in the HW Control palette of the Processing workspace. You can then link each control to any other Toggle control in your system. The following diagram shows the Control palette and a corresponding Toggle control for the DR5 and how to link it to a wall toggle control in a Room Combine block. It also shows a portion of the DR5 property dialog from the Hardware Workspace showing Toggle (9) configured as a Momentary Toggle.