Skip to content
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

jh.Get() and jh.Set() #65

Open
Andreas-strg opened this issue Jun 19, 2024 · 3 comments
Open

jh.Get() and jh.Set() #65

Andreas-strg opened this issue Jun 19, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed TNC

Comments

@Andreas-strg
Copy link

Hello,

I wanted to ask very carefully if there is any way to use the read and write API of the more modern Heidenhain controlls, with them you could for example safely edit specific table columns without always overwriting the entire file

The API can be accessed in the NC program via DATA READ / DATA WRITE, in Python programs on the controller via jh.Get() / jh.Set() and externally via the TNCcmd.exe GETVALUE / SETVALUE.

The latest confirms to me that there could be a possibility here via LSV2 or DNC

Example for a Heidenhain Python Line:

ToolRow = jh.Get( "\\TABLE\\TOOL\\T\\8\\\*" )
MotorName = jh.Get( "\\TABLE\\'PLC:\\table\\motor_oem.mot'\\NR\\10\\NAME" )

There is a Heidenhain Document "Python for Heidenahin Controls" there are the API specified, i can send it to you when you ned
This API would open up so many possibilities, but don't feel rushed :)

@drunsinn
Copy link
Owner

Hello @Andreas-strg,

I have looked into supporting the *value commands for NCK TNC's but I had no luck so far.
As far as I can see, TNCcmd first tries to log in with "DATA" which fails. This seems to be a test if the control is an iTNC since those accept the DATA login. Afterwards TNCcmd uses the asks the user for the plc key. This key somehow encrypted and used to log in with FILEPLC. This encrypted key changes with time so I expect it to take the current time into account but I haven't been able to get any further than this.
In #49 someone mentioned about asking some professional to look into reversing the algorithm but I haven't heard any news on the topic :-/

@drunsinn drunsinn self-assigned this Jun 20, 2024
@drunsinn drunsinn added enhancement New feature or request help wanted Extra attention is needed TNC labels Jun 20, 2024
@Andreas-strg
Copy link
Author

okay thank you, it is very interesting what heidenhain is doing here
maybe there will be another possibility in the future :)

@drunsinn
Copy link
Owner

Yes, I hope someone more knowledgeable about cryptography can look into what is going on here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed TNC
Projects
None yet
Development

No branches or pull requests

2 participants