Touch off don`t work "file not open"

More
1 year 3 months ago #332269 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 

Attachment not found

Please Log in to join the conversation.

More
1 year 3 months ago #332318 by andypugh
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 to join the conversation.

More
1 year 3 months ago #332467 by dredivan
no any errors.
it`s clean config for Lathe, generated by PNCCONFIG

Please Log in to join the conversation.

More
1 year 3 months ago #332560 by andypugh
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 to join the conversation.

More
1 year 3 months ago #332564 by Aciera
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 to join the conversation.

More
1 year 2 months ago #332592 by andypugh

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

 

Please Log in to join the conversation.

More
1 year 2 months ago #332622 by dredivan
Code:
[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
Code:
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

Please Log in to join the conversation.

More
1 year 2 months ago #332745 by andypugh
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 to join the conversation.

More
1 year 2 months ago #332809 by dredivan
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 to join the conversation.

More
3 months 4 weeks ago #347437 by jcbryant
I'm now running into exactly the same problem and aren't at all keen on having to resort to a clean install.

Hopefully somebody has an explanation and an easier solution......

Please Log in to join the conversation.

Time to create page: 0.104 seconds
Powered by Kunena Forum