国产麻豆成人传媒免费观看_日韩欧美推理片中文字幕_www.夜夜草_71婷婷综合精品一区二区三区_日日日日做夜夜夜夜无码91_国产在线观看一区二区三区_在线免播放器_欧美tv_色一情一乱一伦一区二区三区_日日日www

y4620148
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 53 個(gè)
工控威望: 120 點(diǎn)
下載積分: 420 分
在線時(shí)間: 8(小時(shí))
注冊(cè)時(shí)間: 2020-11-07
最后登錄: 2022-03-22
查看y4620148的 主題 / 回貼
樓主  發(fā)表于: 2022-03-15 14:25

就不知道程序改怎么寫(xiě)了,問(wèn)問(wèn)大佬們。

I0.0輸入的時(shí)候,LB0指示燈亮

I0.1有信號(hào),I0.2沒(méi)信號(hào),等待3S采集Q0.3,Q0.3有信號(hào),LB1亮.

這個(gè)程序需要怎么寫(xiě),這個(gè)延遲函數(shù)感覺(jué)放不進(jìn)去啊


macro_command main()
bool i00,i01,i02,q03
GetData(i00, "Siemens S7-200 PPI", I, 0.0, 1)
GetData(i01, "Siemens S7-200 PPI", I, 0.1, 1)
GetData(i02, "Siemens S7-200 PPI", I, 0.2, 1)
GetData(q03, "Siemens S7-200 PPI", Q, 0.3, 1)
if i00==1 then
SetData(i00, "Local HMI", LB, 0, 1)
else if i00==0 then
SetData(i00, "Local HMI", LB, 0, 1)
end if

if i01==1 and i02==0 and DELAY(3000) q03==1 then
SetData(i01, "Local HMI", LB, 1, 1)
else if i01==0 then
SetData(i01, "Local HMI", LB, 1, 1)
end if