Automation task
1.2 Sample project
S7-1500
Getting Started, 05/2014, A5E03981761-AC
11
The "Fill recipe" button starts the filling of the color components in the HMI screen "Start screen". The
button activates the "LAD_Control_Color_Valves" program block.
The program block calculates how long each of the four valves needs to
stay open for the color mixture
based on the specified recipe and the number of tins that have to be filled.
LEDs below the tanks indicate that the valves are opened.
The "LAD_Tanks_Filling_Level" program block is executed at the same time as the fi
block calculates the quantity remaining in the tank for the tank fill level. The fill levels of the tanks are
stored in the global data block "Filling".
The fill level indicators in the HMI screen are directly linked with the global d
ata block and are updated
with each runtime acquisition cycle.