Saving parameters after shut down

More
6 years 9 months ago #154833 by andypugh
What problem do you have?

ie: What do you do, what happens, how is that different from what you expected to happen?

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

More
6 years 9 months ago - 5 years 10 months ago #154996 by jurod
I have problem with paramsaver, his syntax. Not worked.
But now i have progress with the paramsaver.
This works:
In custom hal:
loadusr -W paramsaver f=3 s=0 b=0 filename=memory_pins onstart=1 onexit=0 (onexit=0 it has to be)

net tool_number_in motion.analog-out-04 => paramsaver.invalueF-002
net tool_number_out <= paramsaver.outvalueF-002

net writetrigger motion.digital-out-03 paramsaver.writetrigger
net readtrigger motion.digital-out-04 paramsaver.readtrigger


in INI:
MDI_COMMAND=M120 M61 Q[#<_hal[tool_number_out]>]
REMAP=G88.1 modalgroup=1 ngc=g881 (The program that is called on the last calibrated axis)

The program:
o<g881> sub
M61 q#<_hal[tool_number_out]>
o<g881> endsub [1]
m2

Thanks.
Last edit: 5 years 10 months ago by jurod.

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

More
5 years 10 months ago - 5 years 10 months ago #193170 by jurod
Hi
Problem with "paramsaver" in version 2.8.0

For version 2.7.14 in the terminal compile command "halcompile --install --userspace /home/hcnc/linuxcnc/paramsaver.c" looks like this:

Extract from the terminal:
Code:
root@H61M-C:/home/hcnc# halcompile --install --userspace /home/hcnc/linuxcnc/paramsaver.c gcc -Os -g -I. -I/usr/realtime-3.4-9-rtai-686-pae/include -I. -I/usr/realtime-3.4-9-rtai-686-pae/include -I/usr/include/i386-linux-gnu -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -fno-math-errno -funsafe-math-optimizations -fno-rounding-math -fno-signaling-nans -fcx-limited-range -mhard-float -DRTAI=3 -fno-fast-math -mieee-fp -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/usr/include/linuxcnc -Wframe-larger-than=2560 -URTAPI -U__MODULE__ -DULAPI -Os -o paramsaver /tmp/tmpgNP5a4/paramsaver.c -Wl,-rpath,/lib -L/lib -llinuxcnchal root@H61M-C:/home/hcnc#

Works OK on my config machine,
but for version 2.8.0 in the terminal compile command "halcompile --install --userspace /home/hcnc/linuxcnc/paramsaver.c" looks like this:
Extract from the terminal:
Code:
root@E8400:/home/hcnc# halcompile --compile --userspace /home/hcnc/linuxcnc/paramsaver.c gcc -I/usr/include -I/usr/include/linuxcnc -URTAPI -U__MODULE__ -DULAPI -Os -o paramsaver /tmp/tmpAzSwbK/paramsaver.c -Wl,-rpath,/lib -L/lib -llinuxcnchal root@E8400:/home/hcnc#
this no works. The paramsaver component was not created.

From the terminal LinuxCNC Errors:
Code:
File "/usr/bin/paramsaver", line 3 paramsaver component ^ SyntaxError: invalid syntax pyvcp_options.hal:13: waitpid failed paramsaver paramsaver pyvcp_options.hal:13: paramsaver exited without becoming ready 3626 3679 Stopping realtime threads Unloading hal components Note: Using POSIX realtime

I have already installed "build-essential" and "linuxcnc-dev"
Where is the problem? Please help.
Last edit: 5 years 10 months ago by jurod.

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

More
5 years 10 months ago #193181 by tommylight

jurod wrote: Where is the problem? Please help.

Well for one you are using ROOT on a Linux box, and that is never a good idea, from security standpoint and from the issues that arise with software that is made to run as a normal user with limited privileges, access to files and folders, etc.

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

More
5 years 10 months ago - 5 years 10 months ago #193194 by phillc54

jurod wrote:

Code:
halcompile --install --userspace /home/hcnc/linuxcnc/paramsaver.c
Works OK on my config machine


Code:
halcompile --compile --userspace /home/hcnc/linuxcnc/paramsaver.c
this no works. The paramsaver component was not created.


The second command only compiles the component it does not install it. You need to use the first command to install the component.

Edit:
linuxcnc.org/docs/html/hal/comp.html#_compiling
Last edit: 5 years 10 months ago by phillc54.

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

More
5 years 10 months ago - 5 years 10 months ago #193195 by jurod
BOOM!!!!! I'm stupid. I didn't notice the difference written --install and --compile. Thanks.
It's already working.
Last edit: 5 years 10 months ago by jurod.

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

Time to create page: 0.356 seconds
Powered by Kunena Forum