Comments (11)
- Thanks
- I was wondering when someone would notice. Sorry for my immaturity
- I have tested multi dimension arrays and they work for me. It appears that the member of the UDT has 2 dimensions, Logix doesn't allow me to do that. Could you send me the UDT you are using? Also, what version of Logix?
edit: v29 maybe?
from pylogix.
See sent attachment for the UDT and the version: Studio 5000 V27
from pylogix.
I must be terrible at this, I don't see an attachment.
from pylogix.
Try this: https://dl.dropboxusercontent.com/u/15576660/UDT_DataStorage.L5X
from pylogix.
Your tag doesn't appear to be multi-dimension. I don't think Logix allows you to even create multi-dimensions as a UDT member. In other words you cannot have a tag like you showed above (MyTag.Data_Storage[0,0]). When you look in your tag database, do you see your tag exactly how you described? If so I'd love to get a copy because I didn't think it was possible. You can declare an instance of a UDT multi-dimensional but you can't have multi-dimensional members.
I see you have two members of your type. DataStorage and DataStorage_Hold. Are you wanting to get values from both members at the same time? In other words you expecting to get "MyTag.DataStorage[0]" and "MyTag.DataStorage_Hold[0]" by attempting to read "MyTag.DataStorage[0,0]"?
from pylogix.
FWIW the tag I am trying to read is BCS4201.Results[0,0]
from pylogix.
Would it be possible to get a copy of the program? If you don't feel comfortable sharing it, could I at least get a copy of it stripped down to just that tag?
from pylogix.
Is there something beyond .Result[0,0]. Maybe like .Result[0,0].DataStorage?
from pylogix.
Thanks for quick replies. I figured it out. It was user error on my part.
Although when I called two different array tags back to back I was getting
an error, so that threw me off. Haven't had time to dig into that yet. Will
let you know if that too is my error :P
On Tue, Nov 22, 2016 at 4:44 PM dmroeder [email protected] wrote:
Is there something beyond .Result[0,0]. Maybe like
.Result[0,0].DataStorage?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#2 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA8Xwg3cqVdziHVGd7XNke0v6YEc3Ljuks5rA2JTgaJpZM4K51uM
.
from pylogix.
Yeah no problem, thanks for getting back. If there really is an issue with reading tags back to back, get me some specifics and I'll test it. I do a lot of reading/writing of lots of different types and structures, maybe there is something that I haven't tried yet.
from pylogix.
Since I didn't hear anything back, I'm closing the issue.
from pylogix.
Related Issues (20)
- read tag from 80 sets of plc HOT 22
- Double read packets? HOT 6
- cannot import name 'Adapter' from 'pylogix' HOT 23
- Tag Write falsely reports Success HOT 7
- "Forward open failed" when trying to read tags from Berghof PLC HOT 8
- .GetDeviceProperties always returns DeviceType of "None" HOT 5
- Issues connecting to emulate HOT 7
- micro850 connection HOT 5
- Return data gets jumbled up on a multi write when the tags don't exist. HOT 13
- The return value is different when using a multi write compared to a single write for a string. HOT 4
- cannot get a tag list HOT 3
- Is it possible to inhibit a periodic task? HOT 2
- pylogix - returning a tag list as a row of values HOT 7
- PLC REAL values HOT 5
- Pylogix - compare a previously acquired tag list with the current one HOT 5
- Discover does not work while running pylogix in docker HOT 10
- Invalid Continuation Byte HOT 5
- Abnormal code termination. HOT 8
- Do I need to use routing? HOT 20
- PLC connection best practice HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylogix.