Problems with PREMPT_RT kernel error and 7i76e

More
06 Apr 2016 23:54 - 10 Apr 2016 18:21 #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 Apr 2016 18:21 by jj89074.

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

More
07 Apr 2016 00:30 #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
07 Apr 2016 00:49 #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
07 Apr 2016 01:00 - 07 Apr 2016 01:02 #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: 07 Apr 2016 01:02 by PCW.

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

More
07 Apr 2016 01:18 #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
07 Apr 2016 01:30 #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.

More
10 Apr 2016 18:23 #73059 by jj89074
I've updated the first post. I've tried another fresh install, but PNCconf and the Hal Meter do not work with PREMT-RT and my 7i76e.

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

More
10 Apr 2016 18:36 - 10 Apr 2016 18:52 #73061 by PCW
halmeter works fine for me, what problem do you have?

When you say calibrate does not work, can you explain what you mean?
you do need to press test (to update the actual hardware value)
and refresh (to update the input text box to the current value)

I have seen problems with calibrate saving changes back to the ini file if some ini fields are missing
what error message do you get when you try to save the calibrate?
Last edit: 10 Apr 2016 18:52 by PCW. Reason: expand

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

More
10 Apr 2016 18:49 #73063 by jj89074
I updated the first post describing the problems I'm having.

PNCconf, the "calibration" screen, and Hal Meter are not working correctly. If these screens work for you, it makes me think something is wrong with my install of Wheezy or something.

My latest issue is verifying my home switches. They do not change state in Hal Meter, but I've verified they change state electrically at the 7i76e card. I don't think they are recognized in AXIS, because I can select the HOME button, push the home switch while the axis is moving and it does not stop.

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

More
10 Apr 2016 18:53 #73064 by PCW
one thing at a time

When you say calibrate does not work, what do you mean?

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

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