а как она может не работать? Создав экземпляр ФБ, все переменные в области VAR будут в фальш, соответственно условие выполниться один раз в самом начале, как мне кажется не зависимо от какого то определенного сброса, покрайней мере я не замечал чтоб это не работаловот ихнее пояснилово к этому кодуclk_prg uses the internal sps time to generate a clock with programmable period time.
the first cycle after start is a clk pulse and then depending on the programmed period time a delay.
every pulse is only valid for one cycle.
the accuracy of clk_prg is depending on the accuracy of the system clock