Error Writing to PLC Tags : Bad_Failure

Hello,

Recently facing an issue while writing to PLC.

Gateway Logs - INFO | jvm 1 | 2019/10/10 10:03:07 | W [d.L.L.LogixBrowse ] [14:03:07]: Error browsing template instanceId=1369 device-name=Line 5
INFO | jvm 1 | 2019/10/10 10:03:07 | java.lang.Exception: senderContext=56122 timed out waiting 2000ms for response
INFO | jvm 1 | 2019/10/10 10:03:07 | at com.digitalpetri.enip.EtherNetIpClient.lambda$writeCommand$5(EtherNetIpClient.java:168)
INFO | jvm 1 | 2019/10/10 10:03:07 | at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:682)
INFO | jvm 1 | 2019/10/10 10:03:07 | at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:757)
INFO | jvm 1 | 2019/10/10 10:03:07 | at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:485)
INFO | jvm 1 | 2019/10/10 10:03:07 | at java.base/java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2019/10/10 10:07:11 | E [LegacyScripting[system_util_tag]] [14:07:11]: Error writing tags
INFO | jvm 1 | 2019/10/10 10:07:11 | Error writing to tag ‘[default]EF7842_Line5/Test/Pass’: Bad_Failure
INFO | jvm 1 | 2019/10/10 10:07:11 |
INFO | jvm 1 | 2019/10/10 10:07:42 | I [g.LicenseManager ] [14:07:42]: Trial time reset. Time remaining = 7200. route-group=status, route-path=/trial
INFO | jvm 1 | 2019/10/10 10:21:46 | W [P.WebSocketChannel ] [14:21:46]: Websocket connection closed unexpectedly. code=1006, reason=WebSocket Read EOF
INFO | jvm 1 | 2019/10/10 10:21:46 | I [p.DesignSession ] [14:21:46]: WebSocket disconnected from session. session-project=Line5_Test
INFO | jvm 1 | 2019/10/10 10:24:52 | W [s.ProjectRunner ] [14:24:52]: Tried to perform RPC operation on an unrecognized session. May indicate that the previous session was lost. Creating RPC listener for new session id. project-name=Line5, request-origin=xx.xx.xx.xxx, session-user=, session-project=Line5, session-id=
INFO | jvm 1 | 2019/10/10 10:25:03 | E [LegacyScripting[system_util_tag]] [14:25:03]: Error writing tags
INFO | jvm 1 | 2019/10/10 10:25:03 | Error writing to tag ‘[default]EF7842_Line5/Test/Pass’: Bad_Failure
INFO | jvm 1 | 2019/10/10 10:25:03 |
INFO | jvm 1 | 2019/10/10 10:26:23 | E [LegacyScripting[system_util_tag]] [14:26:23]: Error writing tags
INFO | jvm 1 | 2019/10/10 10:26:23 | Error writing to tag ‘[default]EF7842_Line5/Test/Pass’: Bad_Failure

Restarting the VM fixed the issue. Any suggestions on how to fix this?
Any feedback would be greatly appreciated.

Thanks,

Hello,
I have same issue .
When I’m writing value by script to opc tag it shows error “LegacyScripting[system_util_tag]] [14:26:23]: Error writing tags:bad_unsupported.”
But it write value correct value to opc tag
Is it affect to system?

When I’m using internal memory tag instead of opc tag it’s don’t show error.

Any suggestions on how to fix this?

@dhirajpawar371 - There are many changes we implemented to get rid of such error.

  • Increase the number of Max Concurrent requests to 16 under Config-> OPC UA-> Device Connection -> your PLC.
  • Avoid changing PLC logic when Ignition script is trying to the same tags
  • Also, make sure not to overload PLC, Check Load Factor under Status -> Devices -> Your PLC. Make sure its less than 10-15%. If it’s more try reducing the number of OPC servers connected to this PLC