恭喜,你发布的帖子
发布于 2020-06-05 18:14:04
3楼
Begin
IF A and B then
sum:=sum+1;//时间累计
dislay:=sum;//实时显示
C:=1;
ESLE
C:=0;
end_if;
if Not C then
Tsum:=sum; // 单次时间累计;
T_toal:=T_toal+Tsum;// 总的时间累计
C:=1; //复位累加标志
end_if;
End_function block
**********这是修改后的程序 Total 还是会不停的自加*********
请填写推广理由:
分享
只看
楼主