Under specific circumstances in zenon version 7.10, the first VBA macro from the top is not executed through the "execute VBA macro" function.
When the VBA IDE is opened in the runtime, the macro is visible and can be executed manually in the debugger. When the position of the first and the second VBA macro, are exchanged in "thisproject" the formerly second VBA macro now is no longer executed.
Inserting a "dummy" macro, at the top position, allows executing of all the other VBA macros.
This issue is reproducible in the 32 bit version of the zenon 7.10 runtime and is caused by a bug in the MFC (Microsoft Foundation Classes). The issue does not occur in the 64 bit version of the zenon 7.10 runtime.
Under specific circumstances in zenon version 7.10, the first VBA macro from the top is not executed through the "execute VBA macro" function.
When the VBA IDE is opened in the runtime, the macro is visible and can be executed manually in the debugger. When the position of the first and the second VBA macro, are exchanged in "thisproject" the formerly second VBA macro now is no longer executed.
Inserting a "dummy" macro, at the top position, allows executing of all the other VBA macros.
This issue is reproducible in the 32 bit version of the zenon 7.10 runtime and is caused by a bug in the MFC (Microsoft Foundation Classes). The issue does not occur in the 64 bit version of the zenon 7.10 runtime.
A workaround for the bug in the MFC has been implemented as a solution for this issue.
As this issue in theory could also occur in zenon 7.0, the workaround has also been implemented in this version. However it must be noted that the issue could not be reproduced in version 7.0 in a test environment under any circumstances.
As a workaround, you can create a dummy macro at the top of "thisproject"