libplctag / libplctag.NET

A .NET wrapper for libplctag.
https://libplctag.github.io/
Mozilla Public License 2.0
197 stars 49 forks source link

What does error not allowed mean? #333

Closed kaptindan closed 1 year ago

kaptindan commented 1 year ago

So I can read a tag for a photo eye trigger which is a local tag. When i try to write to it I get a error not allowed.

timyhac commented 1 year ago

PLCTAG_ERR_NOT_ALLOWED (-18) - often returned from the remote system when an operation is not permitted.

https://github.com/libplctag/libplctag/wiki/API#status-codes

Talk to your PLC programmers about this error and they might be able to help.

kaptindan commented 1 year ago

Come to find out I was looking around at the PLC code and that tag was a read only. The plc programmer had no idea it got changed. lol easy fix.