. .
  1. #1
    I know there's a couple of LinuxCNC gurus here, if anyone can help with advice to stop me doing my noggin in...

    Basic config: Lathe, LinuxCNC (2.7.14, Debian 9 Stretch install). Mesa 7i76E controller.

    I've added a spindle encoder to the machine with 36 detents and an index pulse - standard A/B/Index (differential drive).

    Click image for larger version. 

Name:	IMG_0197 (1).jpg 
Views:	383 
Size:	299.9 KB 
ID:	26979

    (plenty of naked boards going free if anyone is interested - pm me)

    I do have a problem getting a working config to read RPM from this. What I'm really asking for is any example HAL file for a Mesa-based spindle encoder. My existing HAL is so far removed from the Mesa configuration wizard format that I'm hacking the HAL directly.

    Where I've got to so far is examining the HM2 Encoder component and the resolved velocity, but that seems to increment until the index pulse is received then resets and so-on. I've included the Encoder component as a thread into the HAL, but I think that's an error on my part by mixing LinuxCNC components from the Mesa FPGA functions. I'm randomly cut/pasting examples into my HAL from the internet where similar questions on dissimilar hardware is being discussed and worried that I'm adding more bloat/non-functional content into the HAL.

    So, if anyone has a similar setup and a working HAL for a Mesa board I'd be grateful if you can post details here.

    Also, related, using the Axis front-end, one rabbit hole I got locked in yesterday was trying to display the RPM - using cut-paste code. Am I right in thinking that you need to add a XML panel to the Axis configuration to include the spindle-speed as a displayable quantity? Again, this is newbie stuff but there are so many examples in the wild that present information without explaining the LinuxCNC interdependencies. I'm consciously backtracking out of that rabbit hole for now until I'm confident that I have a RPM value that I want to display.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	IMG_0197.jpg 
Views:	248 
Size:	18.1 KB 
ID:	26978  

  2. #2
    Have you posted this question on the LinuxCNC forum? That seems the first place to ask.

  3. #3
    Am I right in thinking that you need to add a XML panel to the Axis configuration to include the spindle-speed as a displayable quantity? A
    Yes you use some XML code to get a VCP panel on the gui in axis. Pm sent.
    The more you know, The better you know, How little you know

  4. #4
    Many thanks Clive - It would appear there's numerous learning curves attached to LinuxCNC and any one of which can result in start-up exceptions being thrown. Your answer for the XML helps me to disregard that aspect of displaying data for now until I understand the fundamentals better. Thanks for the PM - I'm going through that now whilst the shed warms up.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. WANTED: MESA 7i76
    By Toolman321 in forum Items Wanted
    Replies: 1
    Last Post: 31-10-2018, 01:18 PM
  2. WANTED: Mesa Cards
    By Ross77 in forum Items Wanted
    Replies: 4
    Last Post: 14-07-2016, 11:17 AM
  3. Spindle encoder ideas needed
    By Boyan Silyavski in forum General Electronics
    Replies: 4
    Last Post: 10-08-2014, 01:31 AM
  4. Encoder for Spindle RPM
    By abfa9358 in forum Gantry/Router Machines & Building
    Replies: 1
    Last Post: 12-04-2011, 09:03 PM
  5. NEW MEMBER: Greetings from Mesa, AZ USA
    By Marty_Escarcega in forum New Member Introductions
    Replies: 1
    Last Post: 11-09-2010, 09:37 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts