找答案的高端用户(找答案钻石及双钻级别的用户)将尽可能从此问题下的所有回
答中,为您推荐最佳答案。届时您可以根据推荐数采纳答案。
如果自提问时间起7天内您仍无法选出最佳答案,您可以选择“无满意答案”关闭此问题。
我测试了一下,并没有什么问题,你这个唯一的问题是我没有看到FB块的绝对地址,关于FILL,帮助里是这么描述的:
The tags of the instruction can only be used within memory areas in which the "Optimized block access" attribute is not activated. This applies to data blocks (DBs), organization blocks (OBs), functions (FCs), bit memory (M), inputs (I), and outputs (Q).
If a tag of the instruction has been declared with the retentivity setting "Set in IDB", however, you can use this tag in memory areas "with optimized block access".
这个FILL的管脚要么是有绝对地址的,要么是设置为“Set in IDB”的,但是你这里有用到INOUT,所以只能是非优化的FB才可以,但是我并没看到;另外其实你可以用MOVE来传送,不用FILL,因为我看到你的数据类型是同一个,并不是要用到FILL的功能,只是简单的覆盖
首次回答问题,获得
双倍西币积分!
立即成为技术知识分享的一员!
找答案微信小程序
提问
搜索
欢迎您访问支持中心!
丰富的视频,全方位的文档,大量的网友交流精华……
为了更好的完善这些内容,我们诚邀您在浏览结束后,花20秒左右的时间,完成一个用户在线调查!
感谢您的支持!