Comments (1)
Hello @orkhands,
thanks for the feedback! I will add your software version to my list :-)
I am sorry to say that as far as i know TNCscope is using the DNC library instead of LSV2. I have done quite a bit of searching and analysis with Wireshark but DNC is quite a bit harder to decode than LSV2 which is for the most part just plain text without any encoding.
On the upside it seems that there is indeed a problem in pyLSV2 in reading from the memory address. Currently it is using the telegram R_MB to read values from memory, on a TNC 640 this has worked just fine and i assumed it would also work on an iTNC as i got good values for everything i checked. This seems to not be the case! After checking again with TNCcmd again I found the command GETVALUE which i always ignored as it has some strict limitations:
Availability: iTNC 530 as of 34049x 03 and 60642x 01 or TNC 640 as of 34059x 01 (only with TNCcmdPlus)
This command uses the telegram R_DP to read values by using some kind of special path like \PLC\memory\M\100
.
I created a new branch to try reading via R_DP and it seems to work at least for one value :-) check it out here: data_path
It adds the new function read_data_path(path)
which takes a string like TNCcmd. This is not ready yet as i have not been able to figure out the meaning of all the byte values sent and revived. If i have time i will take a look next weekend on what i can figure out. If you are interested you can take a look yourself, Pull requests are always welcome!
from pylsv2.
Related Issues (20)
- I'm looking for the description or reason of each LSV2 protocol error numbers. Is there a document HOT 4
- Part Count Function for iTNC Machines HOT 4
- Can I start or stop a specify program by pyLSV2? HOT 3
- LSV2 transfer protocol HOT 3
- Few question HOT 11
- Cann't connect to the Haidenhain system (version TNC640) HOT 2
- Can we get the symbol name through the PLC address? HOT 9
- Integrated Oscilloscope in iTNC530 HOT 39
- Exception: AttributeError: module 'pyLSV2' has no attribute 'xxyyzzxxyyzz' HOT 2
- signals at long & short intervals together HOT 3
- Reading PLC memory via memory address returns different values than reading via data path HOT 13
- Integrated Oscilloscope in TNC640 HOT 8
- i cannot read all the plc variables HOT 1
- System Parameters: Incorrect variable used for default initialization HOT 1
- iTNC 530 get_error_messages inconsistent? HOT 5
- memory loss and feedback HOT 4
- an error occurred while querying system information HOT 2
- File not Found Error
- How to locate Q parameters values HOT 3
- unexpected response 'RSP.T_BD' 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 pylsv2.