about PARAMETER_FILE=sim.var autosave file

More
26 Sep 2019 09:24 #146240 by savoyyang
Hello, everyone, I am testing my interface. I have used the function of setting the work origin(G5x offset : "G10 L20 P0..."). I have a problem, I start "linuxcnc config.ini" and set "G10 L20 P0...", but not saved in sim.var. Then I compared them with /usr/bin/axis and /usr/bin/gscreen ..,no relevant information was found. What can I do to save this file automatically?
Thank you!!!
Thank you!!!
Thank you!!!

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

More
26 Sep 2019 13:53 #146258 by pl7i92
the VAR setting only workes in a RT invirerment on a real mashine
why is there SIM.var in use
is it a Simulation setup

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

More
26 Sep 2019 14:14 #146264 by savoyyang
sim.var just a example,it could be another name.
I use start linuxcnc ../linuxcnc/config/axis.ini or gscreem.ini the sim.var can be autosave, so it doesn't matter if it's real-time/real machine or not.

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

More
26 Sep 2019 14:23 #146267 by pl7i92
the var file in the SIM folder is regenerated at every start of any config so it is not to be used

look in INI and set a name of your use
[RS274NGC]
PARAMETER_FILE = myvar_name.var

then you can see the effect

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

More
29 Sep 2019 00:31 #146527 by savoyyang
Thank you for your reply, I have solved the problem, the reason is the folder permissions, resulting in the automatic creation of var file without permission at startup, this is my own problem.

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

More
03 Oct 2019 00:32 #146919 by andypugh
I also have a feeling that the .var file is only saved when LinuxCNC exits.
It is the persistent store, not the working values. (partly because the realtime parts of linuxCNC run in kernel space and do not have file system access)

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

Time to create page: 0.091 seconds
Powered by Kunena Forum