Advanced Search

Search Results (Searched for: )

  • Aria James
  • Aria James
21 Apr 2025 18:23 - 21 Apr 2025 18:24

Issue with inconsistent spindle RPM readings on Mesa 7i76e + LinuxCNC setup

Category: General LinuxCNC Questions

Hey everyone,
I’ve been setting up a CNC mill using LinuxCNC with a Mesa 7i76e board, and I’ve run into a bit of a headache. The spindle RPM readings in the LinuxCNC GUI are fluctuating a lot even when the spindle speed seems stable when measured with an external tachometer. I'm using an encoder on the spindle for feedback, but I’m not sure if the issue is from signal noise, encoder settings, or something else in the HAL config.Has anyone else had similar issues with inconsistent RPM readings? What would you recommend checking first encoder wiring, debounce filtering, or maybe even firmware updates for the Mesa board? Any guidance would be a huge help, I’m still getting comfortable with HAL and custom configs.Thanks in advance!

References:

www.theengineeringprojects.com/2023/06/i...l-with-linuxcnc.html
www.cnczone.com/forums/linuxcnc-formerly-emc2-/
store.mesanet.com/index.php?route=product/product&product_id=58
  • pgf
  • pgf
21 Apr 2025 18:16

After homing X and Y, can I auto move to a non 0,0 location?

Category: General LinuxCNC Questions

Thanks for thinking so hard about this. I appreciate it.

Two things: first, because of how my switches are set up, I believe both HOME_SEARCH_VEL and HOME_LATCH_VEL need to be positive. The backoff movement is added automatically in between them. Second, HOME_FINAL_VEL isn't a signed velocity. I realized that yesterday while trying various combinations. It would probably be better if the homing code threw an error, since it implies a slight misunderstanding of the config, but instead it seems to simply use abs(HOME_FINAL_VAL).

In the end, the difference between what you propose and what I tried yesterday is the value of HOME_OFFSET. That could well make the difference. I'll try it later today.

Thanks again!
  • andypugh
  • andypugh's Avatar
21 Apr 2025 18:10
  • spumco
  • spumco
21 Apr 2025 18:05

After homing X and Y, can I auto move to a non 0,0 location?

Category: General LinuxCNC Questions

I've now tested my original homing-at-0 config, with HOME=12, and it does indeed home as usual, and then set the current position to 12. So the question asked in the thread title is answered.

I'd still like to home-at-12, instead.
 

If you'd like the table to home all the way to the operator's left (X-max), and your two X limit switches are on the same input, you can change your INI config so that the search direction is positive. I think the following is what you want:

MIN_LIMIT = -0.001
MAX_LIMIT = 12.001
HOME_IS_SHARED = 1
HOME = 12
HOME_OFFSET = 12 
HOME_SEARCH_VEL = .2
HOME_LATCH_VEL = -0.015
HOME_FINAL_VEL = 0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2

This will result in an X homing sequence as such:
  • Table moves left (searching X-pos) at speed 0.2
  • Limit switch reached
  • Table moves right (X-neg) until limit switch clears at speed 0.015
  • Table stops, homing complete, DRO will be set to "12"
The reason for the "12.001" MAX_LIMIT value is that if you set it the same as HOME, then when you are finished homing the axis will be on the max soft limit.

If you would like the table to finish the sequence in the middle of travel, you can change the above as follows:

HOME = 6
HOME_FINAL_VEL = -.2

Same behavior as above, except after the limit switch is cleared the table will move right (X-neg) to the middle of travel and stop with the DRO at "6"

Similar edits can be made to the Y-axis to have the table finish close to the operator.
  • andypugh
  • andypugh's Avatar
21 Apr 2025 17:47
Replied by andypugh on topic ChatGPT LinuxCNC Assistent

ChatGPT LinuxCNC Assistent

Category: Configuration Tools

# Laden der Kinematik und des Benutzermodus-Stepgen
loadusr -W stepgen
loadusr -W remora-eth-3.0

This is just wrong (typical AI error?)
stepgen is realtime, and should be loaded with "loadrt"
I would rather expect that the same is true of remora-eth-3.0 (if that even exists)

linuxcnc.org/docs/stable/html/man/man9/stepgen.9.html
  • andypugh
  • andypugh's Avatar
21 Apr 2025 17:31
Replied by andypugh on topic How to homing the A-axis again with gcode?

How to homing the A-axis again with gcode?

Category: AXIS

I can't immediately think of a way to do what you ask.
It would be possible if M5 was re-mappable, but I don't think it is.
If you can use (for example) M15 in place of M5, then that could be remapped to:
wait for spindle stopped
measure the current angle
reset the offset (as described earlier)
rapid to A=0

linuxcnc.org/docs/stable/html/remap/rema...remap:existing-codes
  • andypugh
  • andypugh's Avatar
21 Apr 2025 17:17

Need help making rotary axis behave like second spindle

Category: Advanced Configuration

And also note that you can split the HAL entries between files, too, if you use a common signal name. (eg all main HAL signals are available in the postgui halfile)
  • andypugh
  • andypugh's Avatar
21 Apr 2025 17:12
Replied by andypugh on topic Digital Input

Digital Input

Category: O Codes (subroutines) and NGCGUI

is "mesa-input-pin" just a placeholder?

I don't really understand the question. Are you wanting to not have the HAL entry for some reason?
  • andypugh
  • andypugh's Avatar
21 Apr 2025 17:07
  • andypugh
  • andypugh's Avatar
21 Apr 2025 17:06
Replied by andypugh on topic boxford 160tcl

boxford 160tcl

Category: General LinuxCNC Questions

A multimeter in diode-check mode can identidy the LEDs. (almost certainly black gnd and red power) and then if the other two are wrong, swap them. P should be several pulses per rev, I should be one pulse per rev.
  • bkt
  • bkt's Avatar
21 Apr 2025 16:26

First time to try build my xml for not listed ethercat in-out component

Category: EtherCAT

I made a test in these way .....
<masters>
<master idx="0" appTimePeriod="8000000" refClockSyncCycles="1">  
    <slave idx="0" type="generic" vid="0x00000b3d" pid="0x29c9f7b1" name="D1">
      <!--S1-M20-->
      <syncManager idx="0" dir="in"/>
      <syncManager idx="1" dir="out"/>
      <syncManager idx="2" dir="out">
        <pdo idx="1600">
          <!--Output Data-->
          <pdoEntry idx="7000" subIdx="01" bitLen="32" halType="complex">
            <complexEntry bitLen="1" halPin="out-1" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-2" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-3" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-4" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-5" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-6" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-7" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-8" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-9" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-10" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-11" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-12" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-13" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-14" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-15" halType="bit"/>
            <complexEntry bitLen="1" halPin="out-16" halType="bit"/>
          </pdoEntry>
      </pdo>
      </syncManager>
      <syncManager idx="3" dir="in">
        <pdo idx="1a00">
          <!--Input Data-->
          <pdoEntry idx="6000" subIdx="01" bitLen="32" halType="complex">
            <complexEntry bitLen="1" halPin="in-1" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-2" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-3" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-4" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-5" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-6" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-7" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-8" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-9" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-10" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-11" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-12" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-13" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-14" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-15" halType="bit"/>
            <complexEntry bitLen="1" halPin="in-16" halType="bit"/>
          </pdoEntry>
      </pdo>
      </syncManager>
    </slave>
  </master>
</masters>


same result ..... no lcec.0.op-state true....????

 
  • pgf
  • pgf
21 Apr 2025 15:20

After homing X and Y, can I auto move to a non 0,0 location?

Category: General LinuxCNC Questions

I've now tested my original homing-at-0 config, with HOME=12, and it does indeed home as usual, and then set the current position to 12. So the question asked in the thread title is answered.

I'd still like to home-at-12, instead.
  • Didi
  • Didi
21 Apr 2025 14:33 - 21 Apr 2025 14:39
Replied by Didi on topic Proxxon CU4

Proxxon CU4

Category: General LinuxCNC Questions

In my opinion they are using the "Leadshine DM542EU" stepper motor controllers, but I couldn't identify the BOB. So, thank you for that info.
  • besriworld
  • besriworld
21 Apr 2025 14:10
Replied by besriworld on topic Lathe with C axis

Lathe with C axis

Category: General LinuxCNC Questions

You can add a second servo motor with a gear like HAAS does
I think it's better if the second encoder goes to the mesa card.
  • vre
  • vre
21 Apr 2025 14:07 - 21 Apr 2025 21:31
Digital Input was created by vre

Digital Input

Category: O Codes (subroutines) and NGCGUI

If i have this in hal
#M66 Digital Inputs
net spindle-stoped motion.digital-in-03 mesa_input_pin
and this subroutine code
M66 P3 L3 Q4 ;Check for spindle stopped - wait up to 4 seconds for digital input 3 to turn on
o307 if [#5399 LT 0]
(abort, spindle not stopped)
o307 endif

How can change this code to check if spindle is stopped
if i have not set this pin
net spindle-stoped motion.digital-in-03 mesa_input_pin

In reality spindle is connected to mesa daughter card 7i33
and i want to check from subroutine code if it is stopped.
Displaying 16216 - 16230 out of 17612 results.
Time to create page: 0.368 seconds
Powered by Kunena Forum