Trigger an action on a Key Press or a Key Release event

Configure an action to occur when touching or releasing a key on the HMI device. For example, create a Key Press event so that pressing
L1
on the HMI device opens a specific screen.
You can use an external keyboard with the HMI device. The
L1
through
L10
keys listed when creating Key Press and Key Release events correspond with pressing
Shift+F1
through
Shift+F10
keys on an external keyboard. The
R1
through
R10
keys listed when creating Key Press and Key Release events correspond with pressing
Ctrl+F1
through
Ctrl+F10
on an external keyboard.
To trigger an action on a Key Press or a Key Release event
    1. Select the item to have the event. The item can be a graphic element, a graphic element in the definition of an Add-On Graphic, an Add-On Graphic instance, a group of elements, a screen, a popup, or the System Banner.
      TIP:
      Select items on either the
      Screen
      area,
      Project Explorer
      , or
      Graphic Explorer
      .
    2. In the
      Properties
      pane, click the
      Events
      tab.
    3. Select
      Add Event
      and select an event from the list.
    • Key Press.
      Occurs when pressing a designated key on the HMI device or on an external keyboard.
    • Key Release.
      Occurs when releasing a designated key on the HMI device or an external keyboard.
  1. In the
    Key
    box, select the key to use for the event.
    1. To have the event occur even if the graphic element does not have focus when the event triggers, clear the
      Requires Focus
      check box. By default, this check box is not selected. Therefore, the event still triggers even when the graphic element does not have focus. This may occur when pressing
      Tab
      to highlight another graphic element on the screen. Placing focus on a graphic element requires pressing
      Tab
      to highlight the graphic element.
    2. If a
      Release
      event requires that the event of the graphic element triggers not only when releasing the element or key, but even if another screen opens, select the
      Always Trigger Release Event
      check box. This setting is useful for having the element act like a momentary push button where a
      Press
      event sets a tag to 1 to start a conveyor belt, and a
      Release
      event sets the same tag to 0 to stop the conveyor belt.
  2. Select
    Add Command
    .
  3. Expand a command category to list the commands in that category:
    • Alarm History.
      • Data Log.
        • HMI Device Configuration.
          • Language
            . Change the language that displays on the HMI device.
            TIP:
            Tips:
            • Import the desired languages before changing the language that displays on the HMI device.
            • If a translatable string is left blank,
              View Designer
              defaults to the download language for runtime applications downloaded to the HMI device. If the string that is translated for the download language is also blank,
              View Designer
              defaults to the language used for designing the project.
              • Navigation.
                Navigate to screens on the HMI device.
                TIP:
                Multiple screen navigation commands can exist for an event. All other types of commands for the event are executed before the navigation command. Only one navigation command is executed for an event. This is generally the first navigation command. The remaining navigation commands are ignored on the HMI device. To ensure the navigation command is the navigation command executed,
                Rockwell Automation
                recommends adding only one navigation command to an event.
              • Language
                . Command that changes the language that displays on the HMI device.
                TIP:
                Tips:
                • Import the desired languages before changing the language that displays on the HMI device.
                • If a translatable string is left blank,
                  View Designer
                  defaults to the download language for runtime applications downloaded to the HMI device. If the translated string for the download language is also blank,
                  View Designer
                  defaults to the language used for designing the project.
                  • Notification
                    . Send an email notification.
                  • PDF
                    . Commands that zoom or navigate pages in a PDF file.
                  • Security
                    . Log on or log off the HMI device.
                  • Value.
                    Commands that increment, toggle, or write a value to the selected tag.
                  • Windows.
                    Commands to open a program or file from the Emulator or a View 5000 Client for a project configured with a View 5000 Server HMI device or to open Logix Designer.
          Configure screen calibration, load a runtime application from removable media to the HMI device, reboot the HMI device, and safely remove media.
        Cancel export of data log, clear data log, or export data log to a USB or SD card.
      Cancel export of the alarm history, clear alarm history, or export alarm history.
    Select and configure the command the event is to perform.
TIP:
Tips:
  • Create multiple commands for each event. The order of execution may not correspond with the order of commands listed on the
    Event
    card.
  • Creating many tag write commands for an event may pause screen updates while the writes occur.
  • When an event performs multiple commands that write to multiple tags, all of the write commands occur sequentially. Therefore, you may not see all of the tag values in the Logix controllers at the same time.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal