Add an event command to load a runtime application
Create an event to load a runtime application from a USB storage device or SD card. Add a
Load Application
command to a touch or key event to load the application. When triggered on the HMI device, the event with the command loads the .vpdr file from the specified removable media. If required, the Load Application
command updates the firmware version on the PanelView
5000 HMI device before loading the runtime application file. To enable updating firmware, copy the correct version of the .dmk firmware file to the removable media along with the .vpdr application file.
TIP:
Firmware update using the Load Application command only works in two cases:
- When the firmware on the HMI device is already V6 or later, and the firmware you want to load is V6 or later.
- When the HMI device is running out-of-the-box manufacturing firmware, was manufactured after the V6 release date, and the firmware you want to load is V6 or later.
Prerequisites
- Create an event to trigger the command:
- Touch press.Occurs when touching the item on the screen that is configured with the event.
- Touch release.Occurs when releasing the item on the screen that is configured with the event.
- Key press.Occurs when
- Key release.Occurs when releasing the specified key.
- Expand the
- Select the graphic element configured with the touch or key event.
- In thePropertiespane on theEventstab, selectAdd Command.
HMI Device Configurationcommand category and selectLoad Application. - UnderLoad Application fromon the command card, in theSourcebox, selectUSBorSD Card.
- In theFileNamebox, type the name of the runtime application to load.TIP:Bind theFileNamebox of the Load Application event command to a graphic element property or a tag in the controller. Binding the file name specifies the file name to load on the HMI device. For example, bind theFileNamebox of theLoad Applicationevent command to the text property of Text Input graphic element. Use the Text Input graphic element to then enter the name of the .vpdr file to load from the removable media to the HMI device.
- In theHMItoControllerPathbox, specify the controller path to use by selecting either:
- Keep paths on HMI device.Use the HMI to controller path currently in use on the HMI device.
- Load path in VPDR file.Use the HMI to controller path in the runtime application file that is loading.
- In each box, selectSelect tag
to open the
and browse to select the tag or manually enter a graphic element property to receive the value to display on the HMI device when the event command triggers:Tag Browser- FirmwareUpdateRequired. Whether or not a firmware update is required on the HMI device to load the runtime application file from the removable media.
- VPDRMajorVersion. The major version of the runtime application file on the removable media.
- FirmwareVersionToInstall. The version of the firmware that theLoad Applicationcommand installs on the HMI device from the removable media.TIP:Rockwell Automationrecommends binding to tags of graphic element properties in theFirmwareUpdateRequired,VPDRMajorVersion, andFirmwareVersonToInstallboxes to display updated firmware version information on the HMI device when loading the runtime application file.
Provide Feedback