3个回答
展开全部
据我所知,组态王脚本命令不支持while的。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
ZESTRON
2024-09-04 广告
2024-09-04 广告
表面污染分析包括评估表面上存在的颗粒、残留物或物质。通过利用显微镜、光谱学和色谱法等技术,分析人员可以识别和表征污染物,以确定其成分和来源。这种分析在电子、制药和制造等各个行业中至关重要,以确保产品质量、性能和安全性。了解表面污染有助于实施...
点击进入详情页
本回答由ZESTRON提供
展开全部
自己编写个程序看看就知道了。反正我对这个组态中的WHILE不怎么懂。
我写了个程序; a=0 while(a<100){b=1;a=a+1}应该是A加1加1慢慢的加到100可是它一下子到100了。我想可能是WHILE速度快吧。
我写了个程序; a=0 while(a<100){b=1;a=a+1}应该是A加1加1慢慢的加到100可是它一下子到100了。我想可能是WHILE速度快吧。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
When condition of expression in while () is true, execute a statements in {} l circularly. Its syntax is the following:
While (expression)
}
One statement or statements (end with ;)
}
Note:
Like the IF statement, if WHIL has one statement in the {}, {} can be ignored, bur statements in the {}, {} cannot be ignored. Please use it carefully, or it can lead dead loop
Example 1:
While (loop<=10)
{
ReportSetCellvalue(“Real time print”, loop, 1, liquid level of material tank)
Loop=loop+1
}
When tag loop is less than or equal to 10, add value of liquid level of material tank to the row 1-10 of first column in a report. Must make expression of while satisfy condition then exit a loop.
While (expression)
}
One statement or statements (end with ;)
}
Note:
Like the IF statement, if WHIL has one statement in the {}, {} can be ignored, bur statements in the {}, {} cannot be ignored. Please use it carefully, or it can lead dead loop
Example 1:
While (loop<=10)
{
ReportSetCellvalue(“Real time print”, loop, 1, liquid level of material tank)
Loop=loop+1
}
When tag loop is less than or equal to 10, add value of liquid level of material tank to the row 1-10 of first column in a report. Must make expression of while satisfy condition then exit a loop.
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询