Error writting to tagxxx Bad; unspecified

Hi,

I’m trying to clear the value of an OPC tag by pushing a button in ignition. the value of the tag is displayed in a label. I can set the label to 0 but the value of the tag doesn’t change with it. when i go to the scripting under set tag value of my tag to 0 i get the following error message: Error writing to tag P525/FaultCodes1 Bad; unspecified.
any idea why this is happening and how i can solve this?

Can you show your script? Can’t be sure without seeing it. Are you using system.tag.write() to set your value to 0 in the tag?

this is how i have it now to set my label to 0.

Doing it this way is how i get the error message.

Is that tag write-protected in the PLC?