-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read taglist ["PC_TEMPZONE[0]"、"PC_TEMPZONE[1]"] return the value of PC_TEMPZONE[0]、PC_TEMPZONE[0] #148
Comments
Hi, Can you please show your code. So you're saying the same code works fine in 0.6.4 but not latest? Sounds like a possible bug. Can you do me a favor and run example 4, but instead of 500 just however many indices you have. What does that return? |
I will try it later.
|
Ah I see if you're passing the list to the read function then yes it shouldn't work, but is interesting you said it work on 0.6.4. Example 4, should work fine for your case. Or use a for loop to pass one tag at a time to the read function. @dmroeder did read used to be able get a list of tags? I don't recall that functionality. |
When the IOI was generated using multi-read service, the wrong tag name was being passed. For example, if you were trying to read an array, MyTag[4], MyTag would be passed so it would not get the index, which would result in alway getting the first elements value [Issue #148]
This should be fixed now. Regarding issue #136, the way I understood that one is that he was trying to read multiple array elements in a list, rather than them individually. Though now that I see the issue you raised, he would have been having this problem as well. I didn't get any clarification on that issue... |
Got it, I misunderstood the issue. That's why is always better to see the code. I understand now what the issue was. |
Yes, sometimes my taglist is a list of array elements, which may not continually, so I put the elements I need into a list. |
Hi !
I have a taglist like this: ["PC_TEMPZONE[0]"、"PC_TEMPZONE[1]"、"PC_TEMPZONE[2]"], which PC_TEMPZONE is an array of REAL .
By using pylogix==0.7.5, the return value of this taglist is all about PC_TEMPZONE[0], I can't get the value of PC_TEMPZONE[1] and PC_TEMPZONE[2], maybe the index in tagname is not work.
When I change the pylogix version from 0.7.5 to 0.6.4, this problem doesn't exist.
Maybe it is a Bug or the usage of Read function changed?
The text was updated successfully, but these errors were encountered: