Add an event to a project (Project Event)
Add an event to a project to execute commands on the HMI device after:
- Evaluating an expression from false to true
- Pressing a keyTips:
- Project events trigger regardless of the screen or popup displayed on the HMI device.
- View Designersupports adding up to 1000 project events.
To add an event to a project
- In theProject Explorer, navigate to theProject Eventsfolder.
- Right-click theProject Eventsfolder and clickNew Project Event. The event has the default name ProjectEvent_001.
- In thePropertiespane, click thePropertiestab.
- Expand a category to change a property value or bind a property of the project event.
- Enabled. Select or bind this property to enable the evaluation of the event. If theEnabledproperty is false, the event is not evaluated and the commands of the event do not perform.
- ExecuteWhen. Bind this property to enter a tag or expression to trigger the event. The event triggers when the expression evaluates from false to true.
- ExecuteOnKey. Select the key to trigger the event.Touch Onlyis the default. SelectNoneif not using a key to trigger an event.
- EvaluationPeriod. Select the rate to evaluate events.TIP:AnyExecuteOnKeyproject event configured for a specific key does not trigger on the HMI device if the open screen or a graphic element on that screen on the HMI device has aKey Press,Key Release, orButton Behaviorevent configured for the same key.
- Click theEventstabTIP:TheEventstab only contains one project event card.View Designerdoes not allow deleting or adding project event cards.
- ClickAdd Command.
- Expand a command category to list the commands in that category:
- HMI Device Configuration.Commands that configure screen calibration and reboot the HMI device.
- Navigation.Commands that navigation to screens on the HMI device.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.
- Security. Commands that log on or log off the HMI device.
- Value.Commands that increment, toggle, or write a value to the selected tag.
- Language. Command that changes the language that displays on the HMI device.
- Window.Tip:If a translatable string is left blank,View Designerdefaults to the download language for runtime applications downloaded to the HMI device. If the translated string for the download language is also blank,View Designerdefaults to the language used for designing the project.
Select and configure the command that the event will perform.
Tip: |
|
Provide Feedback