if start and not old then
timer.in:=true;
elsif old and not start then
timer.in:=false;
end_if;
old:=start;
timer(in:=timer.in,pt:=t#10s);
if timer.q then
...
end_if;
как то так и по поиску Вы найдете массу подобных примеров
if start and not old then
timer.in:=true;
elsif old and not start then
timer.in:=false;
end_if;
old:=start;
timer(in:=timer.in,pt:=t#10s);
if timer.q then
...
end_if;
как то так и по поиску Вы найдете массу подобных примеров
Bad programmers worry about the code. Good programmers worry about data structures and their relationships
среди успешных людей я не встречала нытиков
Барбара Коркоран