Proper use of paramsaver
04 Mar 2016 14:20 #71031
by albova
Proper use of paramsaver was created 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
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 or Create an account to join the conversation.
04 Mar 2016 15:51 #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?
But I imagine that is where you got it from?
Please Log in or Create an account to join the conversation.
04 Mar 2016 15:55 #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 " ?
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 or Create an account to join the conversation.
04 Mar 2016 16:14 #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 or Create an account to join the conversation.
04 Mar 2016 18:43 #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
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 or Create an account to join the conversation.
04 Mar 2016 21:19 #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
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 or Create an account to join the conversation.
Time to create page: 0.100 seconds