How Can We Help?
Sum of 4 values in the HMI with a macro
A simple example of macro in the HMI for to do a sum of values.
If I want to do somthing like this : LW4 = LW0 + LW1 + LW2 + LW3
Note: LW is the HMI words register.
#include "MacroInit.h"
void Macro_main(IN *p)
{
MarcoInit
//ToDo
SumLw = LW0+LW1+LW2+LW3;
}
You can download this HMI project example: Macro sum of LW values