Problems with PREMPT_RT kernel error and 7i76e

More
10 years 6 months ago - 10 years 6 months ago #72880 by jj89074
UPDATE: I tried a "new" complete install of LinuxCNC with the PREMT-RT kernel (closely following the directions from the "Getting LinuxCNC website: linuxcnc.org/docs/html/getting-started/getting-linuxcnc.html ) and it still does not function well with my 7i76e card (PNCconf and Hal Meter do not work correctly).

I am experiencing the following problems:

Using PNCconf: I can't use the test / tune functions for any axis motor or the spindle. I get the following error when trying to tune either axis stepper drive from within PNCconf:

File "/usr/bin/pncconf", Line 1630, in check_for_rt
eLif Hal.is_rt and not hal.kernel_version == actual_kernel:
AttributeError: 'module" object has no attribute 'kernel_version'


Linuxcnc loads without errors and I can jog each axis, but the "Calibration" screen still will not allow me to test the tune of my motors (it will not allow me to save changes to the INI file either). I realize I can make the changes to my INI file manually and I've done that, but now when I test my inputs, I've found the "Hal Meter" does not work either (can not show change in state of inputs). In addition, when I check the spindle encoder, it does not show the spindle revs correctly. It appears to display the total accumulated counts. :blink:

The weird thing is that if I load the custom Glade "spindle" panel available through PNCconf, that DOES display the spindle revs correctly.

I've verified the input from both HOME switches change state at the 7i76e card, but it appears to do nothing in the Hal Meter in AXIS.

I have also tried a completely different PC, but it does the same thing.

Any help is appreciated.
Last edit: 10 years 6 months ago by jj89074.

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

More
10 years 6 months ago #72885 by PCW
I would just edit the INI file to change what you need to change.
Note, depending on the version of pncconf, you may need to change the PID gain
P term of each axis to 1000 (if its 50, change to 1000)

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

More
10 years 6 months ago #72886 by jj89074
Is there a way to fix the PnCConf Wizard?

I'm trying to tune "Dyna Mechatronics" stepper drives that I have no timing data for. Trying values in the PnCConf Wizard would be a lot easier than changing the INI file.

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

More
10 years 6 months ago - 10 years 6 months ago #72887 by PCW
You can change them in the axis "calibrate" window, test them
and save them back to the INI file (also via the calibrate window)
Last edit: 10 years 6 months ago by PCW.

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

More
10 years 6 months ago #72888 by jj89074
I just tried the "calibrate" window, but it does not work.

I can manual jog each axis and run from the MDI command line, but I get nothing in "calibrate" when I select "Test". :(

I guess I can just change values and try them in AXIS.

I've found the drives like higher values like those used for Sherline or Keling, but it sounds / feels like it's missing steps on long movements. Any suggestions?

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

More
10 years 6 months ago #72889 by PCW
Just tried and it works for me
you wont see changes until you change a value, and apply the change with test
(and the calibrate values will not be updated until you hit refresh)

You can also adjust all parameters temporarily on a running linuxcnc session via halcmd, for example:

halcmd setp hm2_7i76e.0.stepgen.02.steplen 3000

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

Moderators: cmorley
Time to create page: 0.318 seconds
Powered by Kunena Forum