Creating a C# script within the AKI HMI Panel
You can create a script that runs a C# program in the background of the HMI screen. A script in the Tag screen will run in the background all of the time. A script in one of the HMI screens will run in the background only when that screen is active.
In this example, we need a script that will set MT_NUM = 21 and MT_LOAD = 1 when the Run screen is opened. And we need a pause between these two commands to allow the AKD drive time to process the Modbus commands.