Goals and Symptoms
This resolution is to create a clean screen application in Vijeo Designer that will disable touch input for 20 seconds so HMI panel can be cleaned.
Causes and Fixes
First of all, launch Vijeo Designer and open the project file you are looking to add the Clean Screen. Create an integer variable called 'CleanTimer' and a new Panel under the Base Panels.
Create a button/switch on a Panel where you want the clean screen button to be on. Under the Switch settings for that button, create two operations when touch. Create a Word operation, set the
Source to '20', Operation is 'set', and Destination is 'CleanTimer' (the variable you created). Then click on the add button to add the operation. See below for illustration.
The next operation is to create a Panel operation to Change Panel and the Panel ID will be the ID of the Panel you just created. Then click on the add button to add the operation and then OK
to close window. See below for illustration.
Go to the Label, create a static label "Push this button to disable touch input for 20 secs so HMI panel can be cleaned." Now, go into the new panel you created and create a Numeric field object.
Assign the variable to 'CleanTimer'. Also, create two actions in the new panel. The first action will we set as follows: Set trigger type to Periodic with a frequency (secs) of '1', and scheduling at Low.
Once this set click on the Next button. See below for illustration.
Now, create a Word operation, set the Source to '1', Operation will be 'subtract', and Destination is 'CleanTimer'. Once the operation settings is complete, click Add button and then Finish. See
below for illustration.
Create a second action as a Conditional Trigger Type, set the Trigger Variable to 'CleanTimer' and Condition to 'When False'. Once this is set click on the Next button. See below for illustration.
Now, create a Panel operation and set it to change to the Previous Panel. Click Add button and then Finish. See below for illustration
Please compile the project and either download the project to the HMI or simulator. Test the clean screen button.
Also, attached is a sample Vijeo Designer v6.1 Clean project for the clean screen.