instanttw
級別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 26 個
工控威望: 155 點(diǎn)
下載積分: 2292 分
在線時(shí)間: 39(小時(shí))
注冊時(shí)間: 2013-04-25
最后登錄: 2021-11-04
查看instanttw的 主題 / 回貼
樓主  發(fā)表于: 2013-12-17 18:24
請教各位前輩。小弟最近在 proface 的 d-script 寫了以下程序:
[w:[PLC1]D0000] = 1
[w:[PLC1]D0001] = [w:[PLC1]D0000] + 5


而gp-pro ex寫了以下警告:
An operation result has not been assigned to the address: . This may causes errors. Please assign a result. [w:[PLC1]D0000].The execution expression is valid.

請問這警告是什么意思? 應(yīng)該如何避免呢?
文中程序是實(shí)際問題簡化后的形式,請不要以 [w:[PLC1]D0001] = 6 回答。