
0
Under review
s7接口通讯问题
如你所见,我在用s7接口时出现了一点问题,我在S7-PLCSIM Advanced运行我的PLC时修改这一个值可以映射进unity,但是在unity中我尝试切换value却无法保持值,他就像切换了一下,但是马上被改回去了,我的值默认是false,点击切换后会短暂的显示true,但是还是会变回false,这是为什么,我在博途监控表里修改值是可以映射在unity中的,值也能正常切换,允许来自远程对象的 PUTIGET 通信访间也是勾选的,包括完全访问权限和仿真支持块编译也是勾选了,博途设置也没有问题,就是unity无法切换博途v20的值,我使用的版本是realvirtual.io6.2.1,博途版本是v20
Customer support service by UserEcho
As you can see, I'm having an issue with the S7 interface. When I run my PLC on S7-PLCSIM Advanced, modifying this value allows it to be mapped into Unity. However, when I try to toggle the value in Unity, it cannot retain it—it switches briefly but immediately reverts back. The value is false by default; after clicking to toggle it, it briefly shows true but then goes back to false. Why is this happening? Modifying the value in the TIA Portal monitor table works fine, as it can be mapped into Unity and toggled normally. The option "Allow PUT/GET communication access from remote objects" is checked, and both "Full access rights" and "Compile simulation support blocks" are also checked. The TIA Portal settings seem to be correct; the only problem is that Unity cannot toggle the value in TIA Portal V20. The versions I'm using are realvirtual.io 6.2.1 and TIA Portal V20.
Hi, this is a PLCOutputBool so it is going from the PLC to Unity. You can only toggle from Unity Side PLCInputBools (which are signals from Unity to PLC).
Okay, thank you for your reply. I just got confused for a moment.