Comments (6)
Hello @NecoMai,
sorry but as far as I know there is no direct command to read the current feed rates, at least TNCcmd dosen't seem to have anything.
Finding the correct PLC address is a bit of a problem because you have to know the data format first bevor checking the address space. Otherwise it is pretty difficult.
You could try a different approach if you have a TNC640 or similar: Look for the symbol name of the value you need and use the function read_data_path()
. This would look something like this:
lsv2.read_data_path("/PLC/program/symbol/global/MG_BA_Automatik")
If you have the passcode for your machine you can check the symbol name/path on the control by entering the PLC programming mode -> Lists -> Watchlist -> Symbol List.
from pylsv2.
from pylsv2.
from pylsv2.
Hi drunsinn
I read the PLC address from 4 to 100000 step 4, and I had found that there is something wrong after PLC address 21480.
I searched the target value from the result, I found what my want finally. That is exciting.
I had found the PLC address, and I can read the feed rate of spindle from PLC now.
There are something 'f' strings in table_reader.py on line 32, 44, 313, 316, 321, 351.
I had contacted with the engineer of heidenhain and he told me that I need to buy the interface of DNC.
A pleasant exploration experience, thank you for all of you.
from pylsv2.
Hello @NecoMai,
That is really good to know it worked and you can get the values you want! It's nice to know that this little project is of use to someone!
I understand the situation as follows: The controls support two protocols for communication: LSV2 and DNC. LSV2 is the older one as it can also be used via a RS232 connection. All commands are transferred as plain ASCII codes and binary data which can be decoded with some trial and error. It's main use is/was transferring files. Thanks to the work from Eclipse-Plugin-Heidenhain it was quite strait forward to get started with pyLSV2.
The newer protocol is DNC which offers a lot more functionality but also costs money to enable it on the controls and to by some development tools to write your own software. It is a higher level protocol which is a lot more difficult to reverse engineer.
The problem with the 'f' strings should also be fixed as soon as I merge pull request #25 which drops the required python version for everything to python3.4. Testing all the recent changes will take a bit more time but the new release will probably be ready soon.
from pylsv2.
The issue may be closed.
from pylsv2.
Related Issues (20)
- 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
- table_reader ERROR:NCTable parser:File has invalid utf-8 encoding HOT 2
- Announcement of the discontinuation of the LSV2 protocol HOT 1
- pyLSV2.err.LSV2InputException: highest address is 15000 but address of last requested element is 26733 HOT 2
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.