Proper use of paramsaver

More
10 years 7 months ago #71031 by albova
hi
I have a spinbox pyvcp and I would like to save and load the value every time I turn off and turn on LinuxCNC. I saw that I could do with paramsaver but I can not figure out how to use it.
some more information?
regards
Alessandro

Please Log in to join the conversation.

More
10 years 7 months ago #71041 by andypugh
Replied by andypugh on topic Proper use of paramsaver
There is a sample configuration here: www.mgware.co.uk/LinuxCNC/param-saver.html

But I imagine that is where you got it from?

Please Log in to join the conversation.

More
10 years 7 months ago #71042 by albova
Replied by albova on topic Proper use of paramsaver
yes
exactly where I need to put
"loadusr -W paramsaver f=NNN s=NNN b=NNN filename=xxxxxxx onstart=0/1 onexit=0/1 " ?

Please Log in to join the conversation.

More
10 years 7 months ago #71045 by andypugh
Replied by andypugh on topic Proper use of paramsaver
In the HAL file. Like the example in the HAL file on that page.

Please Log in to join the conversation.

More
10 years 7 months ago #71058 by albova
Replied by albova on topic Proper use of paramsaver
hi
another question:
i need to write a variable eg. #35 into pyvcp spinbox halpin vistoll
i tried with file ini mdi_command so when i push a button execute :

MDI_COMMAND = #<_hal[pyvcp.vistoll]> = #35
but it's wrong seem i read halpin but i does not write.

when i read with another button it's ok
MDI_COMMAND = #35=#<_hal[pyvcp.vistoll]>

Is there a solution ?
regards
Alessandro

Please Log in to join the conversation.

More
10 years 7 months ago #71062 by andypugh
Replied by andypugh on topic Proper use of paramsaver
G-code access to HAL is read-only.

If you need to pass a value from G-code to HAL use the motion.analog-out pins and M68.

linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m68

Please Log in to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum