請教各位前輩。小弟最近在 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 回答。