Coder Social home page Coder Social logo

Comments (6)

drunsinn avatar drunsinn commented on May 15, 2024

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.

NecoMai avatar NecoMai commented on May 15, 2024

from pylsv2.

NecoMai avatar NecoMai commented on May 15, 2024

imgapp

from pylsv2.

NecoMai avatar NecoMai commented on May 15, 2024

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.

drunsinn avatar drunsinn commented on May 15, 2024

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.

NecoMai avatar NecoMai commented on May 15, 2024

The issue may be closed.

from pylsv2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.