-
Notifications
You must be signed in to change notification settings - Fork 24
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
unexpected response 'RSP.T_BD' #58
Comments
Ok, this seems to be at least two problems at once. The traceback you posted indicates an error in your script. Debugging the original error based on only one error is a bit tricky. Can you maybe post a bit more detailed error log? |
Sorry for the stupid question, but how can I easily get the logs that are relevant to you 🙈 last error:
|
Loggin in python is, most of the time, done with the logging library. I you are new to python I would recommend to look into this library because with the different logging levels it makes it easy to get more detailed information while also not burdening the user with to many messages. A quick and dirty way to get logging you can just add
should print the following two lines:
These messages will let me analyze the problem. It would also be helpful if you could post the actual code you are running so I can make shure where the problem might be. |
thank you for your patience binary_mode=True does not cause an error, but the file is not in the correct format on the controller Testet one of the last iTNC530 606420 02 SP10 (HSCI Version)
On a "little" bit older iTNC530 Version, and the same programm another error occurs
And on a iTNC530 340490 05 SP7 it simply works normal, without Problems |
I was able to reproduce the exact same error that you are seeing. I actually found a general problem in reporting of error messages but it is not the source of what we are seeing here. Going by the log messages it seems like two different situations:
Can you please check if the file transfer again this either a minimal NC program with only line blocks? Or you could first download a program from the control and upload it with a different name. |
Thank you, for iTNC530 606420: Then I made a minimal program with only linear blocks and was able to narrow down the error. I think it has to do with the length of the program this works:
and this not (only 1 line more):
log:
The possible lines shift by longer or shorter blocks on the iTNC530 340494 08 i testet the same, but i cant transver one single line (file recive works perfectly) |
iTNC530 606420 02: Can you please try the following to force pyLSV2 to use a buffer size for 256 before sending the file? Going by what little documentation is available, this is the smallest possible buffer size and should therefor be supported by any version. To do this, add following line before sending the file:
If the transfer works after adding this line, the init code is wrong. iTNC530 340494 08: |
This works for me too, thank you very much The iTNC530 340494 08 is not very important to me, I personally don't necessarily need a fix and don't want to burden you unnecessarily |
can you please retest with the current master branch? I think #67 might also fix the last remaining issue |
Hello drunsinn, thank you very mutch, the transver work :) |
Hello,
I try to send data (normal .H) with send_file, binary_mode=False on a "iTNC530 60642002 SP10" (the same code works on a TNC640)
could not send data, received unexpected response 'RSP.T_BD
The Heidenhan Doc says "Blockübertragungsfehler" (sorry German)
Die Fehlernummern 100 - 199 sind Blockübertragungsabbruchfehler (T_BD)
con.last_error() repeats also an Error :(
Traceback (most recent call last):
The text was updated successfully, but these errors were encountered: