How to get information about particular variable type and read_only flag? #218
Replies: 3 comments 14 replies
-
Try GetTagList(), find your TagName in the returned results. Look at AccessRights https://github.com/dmroeder/pylogix/blob/master/pylogix/lgx_tag.py#L32 |
Beta Was this translation helpful? Give feedback.
-
For some unknown reason, those status tags seem inaccessible externally in the Micro800 platform. Same with local variables. There are a number of things that they did right with that platform, better than the high end controllers, but they limited other things for some reason. AccessRights none mean no external access, so it won't return a value. There is an AccessRights read only and read/write. If the tag is read only, you should be able to read it, just not write. The status bits on micro800 might be different though |
Beta Was this translation helpful? Give feedback.
-
Hmm, it appears that AccessRight is only being looked at for UDT definitions, not instances of tags. I need to do some further digging... |
Beta Was this translation helpful? Give feedback.
-
I'm using
Read
method to get variable value.Such a response, however, seems to have no information about the type of variable or information about whether I can write something to it or not (if variable is flagged as
read only
).Is there a way to get such an information related to particular variable?
Beta Was this translation helpful? Give feedback.
All reactions