Luxmill CNC retrofit project

More
25 Feb 2020 13:30 #158454 by Oehli
Dear all,

my friend (user M4rk_OS) and I are currently working on implementing LinuxCNC on an Luxmill retrofit project. The mill has four axis (X,Y,Z,A), closed loop steppers (Leadshine), ATC, spindle servo, additional spindle highspeed encoder and linear encoders on all axis.

Unit now we have been working on the hardware modification (additional sensors...) and the control cabinet. Now it's necessary to start with the Mesa card configuration. We also want to implement a WHB04B wireless handwheel (according to the awesome instruction video from talla83). It is our first project with LinuxCNC and Mesa components – so we hope to get some support from you.

Software setup:
- Debian 9 stretch
- LinuxCNC 2.9 (necessary for WHB04B)
- RT Preempt kernel
-
Mesa hardware setup:
- Mesa 7i76E for controlling the 4 stepper motors/driver, spindle, high speed spindle encoder and different input/outputs etc.
- Mesa 7i89 for 5 encoders (4x axis and 1x handwheel on control panel) connected via Sub-D25 (EPX1) to 7i76e
- Mesa 7i70 for additional inputs connected via RS422 to 7i76E
- Mesa 7i66-24 for additional outputs with higher load connected via RS422 to 7i89

I could not find a .bit file for the specified configuration in the standard “support software” from Mesa. Do you know which .bit file I should flash on the 7i76E FPGA?
If there is no .bit file available, is there anyone who could generate one for us?

Is this .bit file configuration necessary for all specified cards, or only for 7i76e + 7i89 (connected via Sub-D25)?


Any help would be great =)
Oehli

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

More
25 Feb 2020 14:39 #158459 by PCW
Replied by PCW on topic Luxmill CNC retrofit project
You should only need a bitfile for a 7I76E+7I89
( SSerial cards like the 7I70 and 7I66 are "self configuring" )

It doesnt look lIke there is a bitfile for a 7I76E and a 7I89,
but I will make one when I get a chance
The following user(s) said Thank You: Oehli

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

More
25 Feb 2020 16:16 #158469 by Oehli
Replied by Oehli on topic Luxmill CNC retrofit project
Thanks for the information and your help - This would be awesome!

Oehli

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

More
27 Feb 2020 01:37 #158594 by PCW
Replied by PCW on topic Luxmill CNC retrofit project
Bitfile for 7I76E + 7I89 on P1 (plus VHDL source of pinout file)

File Attachment:

File Name: 76e89_2020-02-26.zip
File Size:134 KB
Attachments:
The following user(s) said Thank You: Oehli

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

More
28 Feb 2020 06:51 #158728 by Oehli
Replied by Oehli on topic Luxmill CNC retrofit project
Thank you!

I will try it if I get the chance.

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

More
12 Mar 2020 18:53 #159908 by Oehli
Replied by Oehli on topic Luxmill CNC retrofit project
Thank you again PCW, the bit file works perfectly! =)

Now I have another probleme concerning my spindle configuration, I couldn't find a solution yet.
The spindle servo controler uses 0-10V for 0-6000 rpm. I requires an enable signal +24V and an individual forward / reverse 24V on an different input of the controler.
I configurated two 7i76E output for spindle forward and reverse the following way:
net spindle-cw => hm2_7i76e.0.7i76.0.0.output-00
net spindle-ccw => hm2_7i76e.0.7i76.0.0.output-01

In the hal-watch everything works great, the different signals for enable / cw / ccw and 0-10V are set correctly but the spindle only turns in one direction. If I measure the voltage between Mesa TB4 Pin2 Spindel out and Mesa TB4 Pin 1 spindel ground, for one direction I can measure the correct voltage, for the other direction there is no voltage. Output -00 and -01 deliver the right 24V if I choose the spindle direction.

I attached the ini and hal file of my configuration.

Thanks for any help
Oehli
Attachments:

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

More
12 Mar 2020 19:20 #159915 by PCW
Replied by PCW on topic Luxmill CNC retrofit project
you probably need to change:

net spindle-vel-cmd-rpm => pid.s.command

to

net spindle-vel-cmd-rpm-abs => pid.s.command
The following user(s) said Thank You: Oehli

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

More
13 Mar 2020 17:00 #160053 by Oehli
Replied by Oehli on topic Luxmill CNC retrofit project
Thank you again! With your changes it works perfectly.

Now I have another problem:

I connected the Mesa 7i89 via Sub-D25 (EPX1) to 7i76e and the 7i66-24 via RS422 to 7i89 because the RS422 on 7i76e is already used by 7i70.
As you already mentioned the 7i66-24 and 7i70 should be "self configuring" So there shouldn't be anything special to do to get these cards to work. The 7i70 works perfectly and is also visibile in the Hal-Konfiguration pins in the LinuxCNC software.

The 7i66-24 is not visible and the LED on the card is red --> not green. If I connect the 7i66-24 directly to the 7i76e via RS422 the the card is also visible in Hal-Konfiguration Pins and works. But it doesn't work with the 7i89 between.

To connect the 7i66-24 to 7i89 RS422 I used a standard CAT5 cable and connected it to 7i89TB3 (see picture).

Do you have any idea what's the problem?



And one further question.
If i want to net an input of 7i70 to an output of 7i66-24, is it possible to net it directly in the following way:
hm2_7i76e.0.7i66.0.1.output-06 <= hm2_7i70e.0.7i66.0.1.input22

or is it necessary to do this in two steps:
net toolclamp <= hm2_7i70e.0.7i66.0.1.input22
net toolclamp => hm2_7i76e.0.7i66.0.1.output-06

thank you again.
Without your help I would be lost!
Oehli
Attachments:

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

More
13 Mar 2020 17:16 #160055 by PCW
Replied by PCW on topic Luxmill CNC retrofit project
1. Is the 7I89 jumpered for RS-485?

2. you would need
net toolclamp <= hm2_7i70e.0.7i66.0.1.input22
net toolclamp => hm2_7i76e.0.7i66.0.1.output-06
or
net toolclamp <= hm2_7i70e.0.7i66.0.1.input22 => hm2_7i76e.0.7i66.0.1.output-06

(you cannot connect pins without a signal, the signal is "toolclamp" in this instance)

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

More
13 Mar 2020 17:31 - 13 Mar 2020 17:34 #160058 by Oehli
Replied by Oehli on topic Luxmill CNC retrofit project
Thank you again for your help.
1. I couldn't find a jumper setup for RS485 on 7i89? --> see picture

But is it in general possible to use the 7i66e in the discribed configuration:
Mesa 7i89 via Sub-D25 (EPX1) to 7i76e and the 7i66-24 via RS422 to 7i89.

regards,
Oehli
Attachments:
Last edit: 13 Mar 2020 17:34 by Oehli.

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

Moderators: cncbasher
Time to create page: 0.084 seconds
Powered by Kunena Forum