Изначально речь шла макросе для одного бита! Маленький макрос превратился в монстра. Чем больше размер cycle/background макросов, тем больше они мешают работе Панели в целом.((bayk писал(а): ↑18 июл 2021, 17:48Ну весь код работал просто на if. Оно закоментровано. В есть него добавлена предложенная вами конструкция.
Предлагаете в ciclle macro это все перенести??
Или тут оставить?? В цикл много кода? Вроде же совсем немного...
Ну или как отработать. Кусок кода по сигналу из контроллера более красиво??
Background macro is a program that is executed repeatedly during the operation of the HMI with one line or several lines being executed at a time (not finished after executing once). It will be executed once again at the end of the last line. To define the number of lines for each Background Macro execution, go to [Options] > [Configuration] to set the Background macro update cycle with a maximum of 512 lines.
Clock Macro will be executed repeatedly in the process of the HMI operation. Unlike Background Macro, Clock Macro executes its commands all at once rather than one line or several lines at a time. Similar to Screen Cycle macro, the Clock Macro is executed repeatedly according to the
set macro delay time. You can go to [Options] > [Configuration] to set the Clock Macro Delay Time. At the end of each Clock Macro execution, it will resume its execution according to the set delay time. The default is 100 ms and the maximum is 65535 ms.