关于-i这个指令

如图中-I这指令后的ACCU2的值,应该还是100,但实际用300仿真出来的结果是0,不知哪里理解有误

图片说明:

关于-i这个指令   

最佳答案

指令的说明没有错,因为使用PLCsim的关系,PLCsim有着4个accu而非2个。

PLCsim的帮助中有明确的说明:
S7-PLCSIM supports four accumulators (like an S7-400 CPU). In certain special cases, a program in S7-PLCSIM (with four accumulators) can behave differently from the same program running on an S7-300 CPU, (with only two accumulators).

提问者对于答案的评价:
原来是这样呀,感谢各位的回答

专家置评

已阅,最佳答案正确。

原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc244711.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2018年12月1日 下午11:30
下一篇 2018年12月1日

相关推荐