Error in PnCConf with 7I76E

More
15 May 2021 15:28 #208921 by teebee
I want to use the Mesa 7i76e together with LinuxCNC to control my lathe. My pc is a 32 bit.

uname -a
Linux debian 4.9.0-8-rt-686-pae #1 SMP PREEMPT RT Debian 4.9.110-3+deb9u6 (2018-10-08) i686 GNU/Linux


Connecting the card to the PC works. When I want to run the the Pncconf and test the x axis I get the following error:

"Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/pncconf/pages.py", line 1068, in on_xaxistune_clicked
def on_xaxistune_clicked(self, *args): self.t.tune_axis('x')
File "/usr/lib/pymodules/python2.7/pncconf/tests.py", line 463, in tune_axis
if not self.a.check_for_rt():
File "/usr/bin/pncconf", line 1640, in check_for_rt
elif hal.is_rt and not hal.kernel_version == actual_kernel:
AttributeError: 'module' object has no attribute 'kernel_version'"

Is there anyone who can help me with this or do I have the wrong operating system? Are there other ways where I don't have this problem? Thanks in advance.

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

More
15 May 2021 17:13 #208933 by PCW
Replied by PCW on topic Error in PnCConf with 7I76E
I think pncconfs test axis feature has some bugs, I would just run LinuxCNC

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

More
15 May 2021 21:31 #208982 by teebee
Replied by teebee on topic Error in PnCConf with 7I76E
When I run linuxcnc and test the motors there, the motor only moves forward a very short distance (a number of degrees). I have sorted out the circuit, but the problem is not there. This project is the first time I come into contact with CNC. I don't know where the problem lies. I hope to find answers here.

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

More
15 May 2021 23:42 - 16 May 2021 05:39 #209008 by PCW
Replied by PCW on topic Error in PnCConf with 7I76E
Do you get an error message?
Does LinuxCNCs DRO continue to change?
Is there a fault shown on your drives?
Last edit: 16 May 2021 05:39 by PCW.

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

More
15 May 2021 23:43 #209009 by andypugh

Is there anyone who can help me with this or do I have the wrong operating system?


How did you install LinuixCNC?

When the motor stops moving, is there any error message?

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

More
16 May 2021 09:31 #209057 by teebee
Replied by teebee on topic Error in PnCConf with 7I76E
Thanks for the answers!

Do you get an error message?

When I want to run my x-axis motor on "Continuous" I get the following error:
hm2/hm2_7i76e.0: stepgen.01.maxvel is too big for current step timings & position-scale, clipping to max possible

Is there a fault shown on your drives?

I don't get an error message on my driver.

If I change "Continuous" to 0.01mm or smaller the motor rotates in short pieces every time I click. I also find it strange that when I click on the + or - the motor rotates in the same direction every time.

How did you install LinuixCNC?

I downloaded this version (linuxcnc-stretch-uspace-i386-r13.iso). I installed this version on my PC using RUFUS and a USB stick.

Does LinuxCNCs DRO continue to change?

What is LinuxCNCs DRO?

Normally you can find my .hal and .ini file in the attachments. I made this pncconf to test my 2 stepper motors.
Attachments:

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

More
16 May 2021 13:16 - 16 May 2021 13:35 #209092 by PCW
Replied by PCW on topic Error in PnCConf with 7I76E
You have (on the X axis)

STEP_SCALE = 1000000.0

Do you really have 1 nm per step?

Step scale is in units of steps/mm
(or steps/inch with imperial units)
Last edit: 16 May 2021 13:35 by PCW.

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

More
17 May 2021 15:31 #209232 by teebee
Replied by teebee on topic Error in PnCConf with 7I76E
This is indeed not correct.
- I have a stepper motor of 200 steps/rev
- The stepper driver is set to 2000 steps/rev
- Leadscrew metric pitch: 2mm/rev
So if I calculate correctly the motor gives 1000 steps/mm
I changed STEP_SCALE = 1000000.0 to STEP_SCALE = 1000.0

If I now open LinuxCNC and test the X-axis motor, the motor does not work correctly. I have set the distance to 1mm. So normally the motor should turn half a revolution everytime I click.
When I click I feel the motor do something. I think the motor is turning a very small amount. But this is hardly visible to the eye.

Hopefully you understand me and know what I can do about it?
Attachments:

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

More
17 May 2021 15:34 #209233 by teebee
Replied by teebee on topic Error in PnCConf with 7I76E
The errors that I normally got in LinuxCNC are now gone.

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

More
17 May 2021 15:37 #209234 by Clive S
Replied by Clive S on topic Error in PnCConf with 7I76E

The errors that I normally got in LinuxCNC are now gone.


So what did you change ?

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

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