How to implement application automation? HMI programming course. Part 9.


During the course you will learn, among others:

  • what are schedules for?
  • how to add a schedule to the designed application,
  • how to run and change schedules in the application.

In the previous episode "How to create and modify recipes? | HMI panel programming course episode 8” your HMI panel " application has been enriched with a recipe function. In this episode, you will move on to basic automation of your application using schedules.

How to add a new schedule?

On the left side of the design tree, select the Schedule option twice and select the first item, assign the name start and the appropriate variable.

In the next step, go to the Details tab using the Edit button, which can be found on the right side of the selected item.

In the window that appears, you can configure the schedule parameters. In the Schedule Details window, select Changeable with Schedule Setting Table. By selecting this option, you can change the schedule while the application is running.

In the field below, define the time during which the given schedule is to be executed (in this case, from 11 a.m. to 5 p.m.) and the days of the week on which this operation will run.

Close the configuration window with the OK button , and then create a new screen called CALENDAR in which you will place an object called Schedule Setting Table.

You can learn more about adding new screens to the application in the episode:
"How to add and edit operator screens? | HMI panel programming course, episode 3".

Place the object on the screen (by default it should contain a defined variable schedule).

Remember to add the Close and Calendar buttons, which will open and close this window respectively (copy the buttons from other screens and configure them). Take a look at the Schedule Setting Table object, choose the colours to make the window functional, and then save and compile the program to test it in the simulator.

Testing the schedule in an offline simulator

If the program has been compiled correctly, after starting the simulation, you should see the water filling sequence start automatically, without the need to use the START button.

To test the operation of the schedule, enter the CALENDAR window and, using the set button in the schedule table, try to change the hour or days of the week corresponding to the START button.


In this episode you learned how to add schedules to the application and how to automate the program's operation. In the next episode of the course, you will learn the data logging mechanism and see how to record historical data in practice.
If you have any questions at this stage of the course, write them in a comment - we will be happy to answer :)


In the next part of the course "How to add the process file logging function? Saving data | HMI panel programming course episode 10" you will learn:

  • what is the data recording mechanism used for,
  • how to add and use the Data Logger functionality in the application,
  • how to add a table and graph of historical data.

Authors:
Ewelina Szędzioł
Paweł Podsiadło