Touch off don`t work "file not open"

More
24 Jul 2025 16:45 #332269 by dredivan
Touch off don`t work "file not open" was created by dredivan
When I press button Touch Off, i see menu. When I enter my value, can`t press OK

linuxcnc 2.10 Axis Lathe configuration 
Attachments:

Please Log in or Create an account to join the conversation.

More
25 Jul 2025 18:05 #332318 by andypugh
Replied by andypugh on topic Touch off don`t work "file not open"
If you start LinuxCNC from the command line (just type "linuxnc" do you see any mention of not being able to find the tool table (or possibly vars file) in the output?

Please Log in or Create an account to join the conversation.

More
28 Jul 2025 11:40 #332467 by dredivan
Replied by dredivan on topic Touch off don`t work "file not open"
no any errors.
it`s clean config for Lathe, generated by PNCCONFIG

Please Log in or Create an account to join the conversation.

More
30 Jul 2025 14:56 #332560 by andypugh
Replied by andypugh on topic Touch off don`t work "file not open"
Which LinuxCNC version? Not that it probably matters as I don't see much difference in this area.

I think that the dialog box is created here:
github.com/LinuxCNC/linuxcnc/blob/master...cripts/axis.py#L1643

With some TkInter stuff in the backgorund that I don't really understand.

But, I don't see where "file not open" comes from. There isn't normally anything in that area of the dialog, I don't think? (unless you know better?) so I can't even find a hint of which file isn't open.

Please Log in or Create an account to join the conversation.

More
30 Jul 2025 16:46 #332564 by Aciera
Replied by Aciera on topic Touch off don`t work "file not open"
I did try to follow the trail:

The error string displayed in the pop up comes from here:
github.com/LinuxCNC/linuxcnc/blob/master...cripts/axis.py#L1715
which calls
github.com/LinuxCNC/linuxcnc/blob/master...cripts/axis.py#L1579

The actual error is returned from 'gcode.strerror(result)' which seems to be this c++ function:
github.com/LinuxCNC/linuxcnc/blob/master.../gcodemodule.cc#L964

Why a user entry for a float value would be passed through all of that, I have no idea.

Please Log in or Create an account to join the conversation.

More
31 Jul 2025 11:30 #332592 by andypugh
Replied by andypugh on topic Touch off don`t work "file not open"

Why a user entry for a float value would be passed through all of that, I have no idea.

That part I can explain. Axis allows you to enter any valid G-code expression (apparently including parameters) in the numeric entry box. 

I have used it for simple things like 1234.5 / 2 but it also allows functions like SIN / COS / PI (?) and from looking at the code I think you can probably use the numeric parameters in the .vars file. 

So, in this case the error seems to be caused by not finding the PARAMETER_FILE. 

OP: does that entry appear in your INI? And does the referenced file exist? (and who does it belong to?)
linuxcnc.org/docs/stable/html/config/ini...sub:ini:sec:rs274ngc

 
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

More
01 Aug 2025 11:25 - 01 Aug 2025 11:39 #332622 by dredivan
Replied by dredivan on topic Touch off don`t work "file not open"
[RS274NGC]
PARAMETER_FILE = linuxcnc.var
 
I use clean configuration created by PNCCONF.
My linuxcnc version is 2.10

If I don't enter anything from the keyboard and just press the OK button in the window, the coordinates are reset.
but if I enter any number, the option to confirm with the OK button disappears.

After I click the OK button, I open the linuxcnc.var file and see that the values have been written
5221    37.000000
5222    0.000000
5223    -10.443750
 
But if I enter any number from the keyboard, the option to confirm disappears, and I see the inscription "File not open"

linuxcnc.var


Log of run configuration
Last edit: 01 Aug 2025 11:39 by dredivan.

Please Log in or Create an account to join the conversation.

More
03 Aug 2025 18:45 #332745 by andypugh
Replied by andypugh on topic Touch off don`t work "file not open"
As an experiment, is it all OK until you enter a decimal separator?

Do you definitely have a linuxcnc.var file in the config directory (ie the directory that the INI file is in?)

If you "ls -al" the config folder, do all the files belong to the same user?

There is something funny going on here, and it's not something we have seen before.

Please Log in or Create an account to join the conversation.

More
04 Aug 2025 11:10 #332809 by dredivan
Replied by dredivan on topic Touch off don`t work "file not open"
I did a clean install with Linux_Mint_22.1_LinuxCNC_2.10.iso
Linux_Mint_22.1_LinuxCNC_2.10.iso

and now this problem is gone

Befor I did install clean debian 12 and linuxcnc 2.10

Please Log in or Create an account to join the conversation.

Time to create page: 0.323 seconds
Powered by Kunena Forum