Hi ,
sorry i have another issue, if i set a bit of derived tag json(RESET_ALL), and this bit is resetted from plc in real time with plc time cycle, in ignition this bit stay at TRUE, but in plc is FALSE.
Why? If this bit is not resetted from PLC is updated correctly.
i have the modified parameter in config “wrapper.java.additional.2=-Dignition.tags.processbackfill=true”
What version of Ignition are you using? Does the Tag Group have “Optimistic Writes” enabled? Did you restart Ignition after setting that parameter in ignition.conf?
It might be easier to call support and troubleshoot this with them.
It’s okay… but I’m not sure it should be necessary.
Turning the logger tags.execution.actors.opc.writemanager to DEBUG level might log some useful information. You should probably call support and troubleshoot this live if possible.
Is your optimistic write timeout set to 1 minute? What if you lower it to 5 seconds, does the value fallback/revert after 5 seconds without read-after-write enabled?
So, everything is working here, it’s just not ideal. Here’s what happens:
you write true to the variable in the PLC
the PLC logic writes it back to false more or less immediately
the variable is eventually sampled and it sees false, the same as the previous value it reported, so there is no change to report to the client.
the optimistic write timeout elapses and the value is reverted to its previous value.
It seemed broken because your timeout was set so long. Ideally you want to avoid this kind of scenario where both the PLC and an external system can be writing to the same tag. Using read-after-write if you know this is the case may help, but it’s still race condition prone.
still functioning after 8.1.3? I opened a ticket with support regarding this issue and they pointed me towards this post, which fixed the issue in 8.1.3 but testing on gateways at 8.1.4 and 8.1.7 I am seeing the “old” behavior again where if I call system.tag.writeBlocking() against multiple tag paths only the last write succeeds.
I am struggling to get my OPC tags to work with my UDT in the PLC
I have an S7-1200 connected using the OPC server in the PLC.
I have watched the Inductive University video on connecting UDT using the parameter function but my OPC item path in the tag is totally different.
I have also read about a drag and drop function but I cannot find a video that explains it.
Is drag and drop possible with a Siemens PLC?
thank you
Drag and drop works, you’re not doing anything wrong really, but when using this “Service Interface” mechanism in the S7-1200 we’re not able to read structures.
Ok, I have it working now.
I used the parameter function and added an offset to the UDT I created in Ignition.
Now I create a new tag and change the offset value to read the correct tag in the S7-1200
Thanks Kevin for your quick response