Advanced Search

Search Results (Searched for: stepper spindle)

  • PCW
  • PCW's Avatar
19 Jun 2025 22:36

Tuning stepper motors with encoder or glass scale feedback

Category: Advanced Configuration

None of these are needed and the first will likely mean
that you never get an index.

setp [HMOT](CARD0).encoder.00.index-mask 1
setp [HMOT](CARD0).encoder.00.index-invert 0
setp [HMOT](CARD0).encoder.00.index-mask-invert 0

The index mask logic is intended for configurations
that have a index mask input pin which is typically used
for spindles where the encoder is on the motor and the
spindle is geared down from the motor.
 
  • Geshka
  • Geshka
19 Jun 2025 17:31

How to link existing glass scale DRO readout to LinuxCNC for cheap

Category: Driver Boards

I was checking your GITHUB repos - great content. I am actually working on ELS myself right now. Fitting mechanical parts first to the Atlas lathe - need to add spindle encoder and stepper tot the lead-screw.

What ELS do you use ? your own design? LinuxCNC based ?
  • Kieran
  • Kieran
19 Jun 2025 04:58 - 19 Jun 2025 05:05

Getting Ebay 2.6kw ethercat kit going.

Category: EtherCAT

Im trying to get my 2.6kw spindle servo going. its got a P200SE drive. the instructions are written in Chinese. I used google translate and it worked pretty good. Right now im running it as a Z axis just to see if i can get it working. I got my XML setup enough that Linuxcnc reads the encoder no problem. the servo powers up and holds position along with my stepperonline X and y servos. my current roadblock is that its not listening to commands and doesnt move and it gets a following error shortly after. if i power off and turn the motor the DRO moves the distance expected so that's a good sign. the servo load meter on the PYvcp is workign for this servo too, when i "fight" the servo. i must just be missing something simple in my XML?


lcec_configgen gives me this
Warning: Spoiler!



my xml so far

Warning: Spoiler!


 
  • Sekai
  • Sekai
19 Jun 2025 03:07
Replied by Sekai on topic LinuxCNC MillTurn

LinuxCNC MillTurn

Category: General LinuxCNC Questions

Thx for the reply.
I know that linuxcnc has 9 axis in total and the name in different.
For now i have the linear guide rails and i'm working in Solidworks to build the 3d model of the entire build.
What i dont know is how to use linuxcnc for the spindle configuration.For example should i use a servomotor for the spindle head, main and subspindle or use a different style like a regular 3 phase motor with a VFD comanded by RS485 and then when i need position i can switch to servomotor or a stepper motor.
The advantage will be with 3 phase motor i can get higher rpm.
  • Sekai
  • Sekai
18 Jun 2025 19:26
LinuxCNC MillTurn was created by Sekai

LinuxCNC MillTurn

Category: General LinuxCNC Questions

Hi everybody.
I would like to build a CNC machine with 5 axis MillTurning.
Its basically like the DMG Mori CTX BETA 800 TC.
I work everyday as a cnc programmer with DMG(Siemens/Celo) and Doosan(Fanuc).
It would be a small form factor and only for light materials, like aluminiu or brass.
My ideea is :
X, Y, Z as linear axis.
C1, C2, C3 as rotary axis.
C1 is the rotary axis of the spindle head
C2 is rotary axis of main spindle (G54)
C3 is the subspindle (G55 for ex.)
BTW i know that in DMG the C1, C2, C3 are in angular mode, in turn mode is S1, S2, S3.
The Spindle head will be with a BT30. (i will machine all turn base tool holders for BT30)
The driver part i would like to use 400W to 750 W servomotors.
I would like to use Parallel port for this setup but i get the feeling i'm limiting the performance of the build.
For the moment i have some stepper motors (JSS57P2N) would like to experiment.
The build size will be maximum of 500mm between arbors (S2, S3), the Y axis max 150 mm travel, X axis 200 mm travel.
The problem i face right now is it posibil to make this cnc with linxcnc or i have to buy a different controller and software?
For now i have DELL Optiplex 745 with Intel Core2Duo CPU and 4GB Ram, AMD video card and i get about 12000ns
 latency test.
I'm trying different configurations but do not see something compatible for my purpose.
If someone build something similar from DMG style could you guide me.
Thanks
 
  • russkinch
  • russkinch's Avatar
09 Jun 2025 22:12
Encoder for rigid tapping was created by russkinch

Encoder for rigid tapping

Category: HAL

Hi,
I have a 50p/r encoder with A, B & Z. It threads perfect and can thread at 1000rpm no hassles. I am trying to do rigid tapping, but when I use G33.1, it taps to the right depth, but when the chuck reverses, the tap goes in more and not out. Its like the stepper is not being told to reverse direction. 
In my HAL file I have the three inputs setup (net spindle-phase-a encoder.0-phase-A) etc, I have the scale set to 50 and encoder mode set to 1. When I turn the chuck by hand, the position in HAL view rises by 1 for every 1 revolution of the chuck, but if I turn the chuck in the opposite direction, it carries on increasing and not count down. Is this correct? My encoder is an incremental Omron E6B2-CWZ6C. I am using a prallel port BOB (blue). Nema32 stepper motors and can control my spindle speed via the VFD (Bosch)

Any help is greatly appreciated.
  • atrex77
  • atrex77's Avatar
31 May 2025 11:52 - 31 May 2025 12:00

W5100S-EVB-PICO stepgenerator and encoder driver

Category: Driver Boards

in the near future. The stepper-ninja hal driver run in the servo-thread so the minimum width of one input is 1 servo thread refresh in length, with 1KHz servo-thread its 1mS, something like this: when you see a ruler, all 1mm division represents a servo thread cycle, the signal only starts in the divisions and only end on the divisions. With low spindle speed its probably working, but if you want better threading you use printer port for the lathe spindle encoder.
  • npostma
  • npostma's Avatar
23 May 2025 15:13

Protecting My Mesa 7i76EU: Wiring Questions for Home Sensors and Touch Probe

Category: Basic Configuration

Hi All,I’d like your input on my planned setup.
As I mentioned in my previous post, the latency on my new machine was so high that I had to switch from the parallel port to a Mesa card. Earlier this week, I received a Mesa 7i76EU board. It looks awesome—if a bit overwhelming at first glance!My plan:
  • Motors:
    I’m using 3x Longs DM542A stepper drivers, which I plan to connect to Stepper 0/1/2 outputs on the Mesa board, using what I believe is called a “single-ended” wiring configuration. My plan is to connect +5V to the ENA+, DIR+, and STEP+ on each driver, and wire the ENA (5V), DIR-, and STEP- of each driver directly to the corresponding outputs on the Mesa card.
  • Spindle:
    I have a Huanyang VFD 1.5KW for spindle control. For now, I’ll keep my Modbus-over-USB setup, which seems to work well enough. I’ve read that getting Modbus running directly on the Mesa board requires a bit more advanced configuration, so I’ll save that for later.
  • Homing Sensors (Capacitive, 3x):
    My plan is to connect the +24V supply to the positive (brown) wire, and field ground to the negative (blue) wire of each sensor. I intend to connect the sensor output (black) wires to Input 1, 2, and 3 on the Mesa card.
Questions:
  1. Current-limiting resistor for home sensors:
    For the capacitive homing sensors, do I need to add a resistor between the output pin of the sensor and the Mesa input to protect against overcurrent? In the past, I’ve blown a few sensors and started using resistors to protect them, but those were cheap sensors—the Mesa card isn’t!
  2. 2-wire touch probe:
    For my two-wire touch-off probe, I plan to connect one side to +24V field power and the signal wire to Input 4. Here too, should I add a resistor to avoid potential shorts or overcurrent situations?
Bonus questions:
  • Any recommendations for best practices when wiring sensors and stepper drivers to the Mesa 7i76EU?
  • Are there things I should definitely avoid to protect my Mesa card or improve reliability?
  • For those who have set up Modbus on the Mesa board, how steep is the learning curve compared to using Modbus over USB?
Thanks for your advice and experiences!
  • TheRealMable
  • TheRealMable
22 May 2025 19:59 - 22 May 2025 20:01
MESA 7i76 - Lenze VFD: Where are the 10V was created by TheRealMable

MESA 7i76 - Lenze VFD: Where are the 10V

Category: Driver Boards

Hi, I my name is Chrstian and I tend to read more on forums than to write. But as many others I am in some kind of a dead end and could use some advice...

Backstory:
I bought an used self build CNC Router. The controls were build around an USB Smooth Stepper and Mach3. Since the controls are not repair friendly (too much stuff packed in too little space with custom layout boards and same color wires) and I am more a Linux than a Windows guy, I am in the process to upgrade to LinuxCNC.

I use an 7i92 and an 7i76

One of the last steps missing is the spindle control (1,5kw china spindle with ER16). For some reason the person, who built the router went with an "Lenze 822MV" 400V 2,2kw VFD.

After the long introduction, my question:
Where can I get my 10V reference (Spindle +) from this VFD? If someone might take a look and give me a hint, I would appreciate it.

The manual for the "Application IO Module" that is used, can be found here: www.becker-antriebstechnik.org/WebRoot/H...__v6-0__DE_EN_FR.pdf
(page 21 starts the english description)

The manual for the actual VFD (should not matter that much, just in case):https://www.lenze.com/en-de/products/inverters/previous-products-inverters/8200-motec

Currently connections A1, 2x7 (GND), 59, 28 and 2U are connected. I have absolutely no Idea where they go to...

In case the VFD does not have an 10V reference voltage, what are my options? Do the cheap 20€ 4channel 2,5V, 5V, 7.5V, 10V reference voltage things from ebay work?
Am I missing something?

Thanks in advance for the help (and all the help I got from the forum without having to ask).

Christian aka TheRealMable
  • npostma
  • npostma's Avatar
16 May 2025 15:05 - 16 May 2025 16:18
Replied by npostma on topic Need guidence to improve latency and speed

Need guidence to improve latency and speed

Category: Basic Configuration

I wouldn’t mind rewiring everything — my setup is quite simple, and the CNC machine is fairly small. For me, building and tweaking the CNC is part of the fun of the hobby.

I’ve read that many of you use various Mesa cards. I was hoping the 7i76EU alone would be a good starting point to learn how to work with Mesa hardware. Do you know if that’s the case? I saw some brutal shipment costs (like 200 dollar plus, so i will have to search for an European supplier, i'm in the Netherlands)

If the 7i76EU would allow me to completely move away from the parallel port, that would be a big plus — especially since I’m currently limited by base-thread latency.

[EDIT]

I see a seller with reasonable shipping costs, not sure if its a trusted compane EUSurplus?I think i am planning to switch to a Mesa board :-) and wanted to check if the 7i76EU is the right fit for my setup. This is what I’m working with:
  • 3x DM542A stepper drivers (they use step/dir signals)
  • 3x LJ12A3-4-Z/BY inductive proximity sensors (used for homing)
  • 1x Huanyang VFD (spindle, controllable via 0–10V or RS-485 Modbus (I think because i now use it over USB)
From what I’ve researched, the Mesa 7i76EU seems like the best option. Here’s why:
  • It supports up to 5 stepper/servo axes via step/dir signals (perfect for my DM542A drivers)
  • It has 32 opto-isolated inputs which should work well with the 24V NPN homing sensors
  • It has 16 outputs, which are configurable (sourcing/sinking)
  • It includes an analog spindle output (0–10V) for VFD speed control
  • It supports RS-485 communication if I decide to use Modbus for the Huanyang VFD
  • It isolates field I/O power from logic power, which helps protect the system
Important to note:
  • The sensors might need a pull-down resistor to give clean logic signals when connected to 24V. I already solderd a pc to convert the 30V signal back to a 5V system with opto's
  • I will need to supply 24V field power to the board 
  • I understand the 7i76EU requires a second Ethernet interface on my PC (either a second NIC or a USB↔Ethernet adapter)
  • I still need a PREEMPT-RT kernel, but I won't have to worry about tight base-thread latency anymore
Does this sound correct to those of you with experience using this board?Thanks in advance!

 
  • DarkPhoinix
  • DarkPhoinix
15 May 2025 14:01 - 15 May 2025 14:04
Replied by DarkPhoinix on topic Remora - ethernet NVEM / EC300 / EC500 cnc board

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

Warning: Spoiler!

 

Thanks for reply,
I have set 12800 and testing some gcode only with Y working.
I don't want to cause problems when all the stepper and spindle are physically working.
  • Hakan
  • Hakan
08 May 2025 06:05
Replied by Hakan on topic Mode and Scaling

Mode and Scaling

Category: EtherCAT

1. Normally csp I would say. For a spindle motor csv.
2. I prefer to send position in machine units to cia402 and do the scaling closer to the drive. But that's just me.
3. lcec comes from here github.com/linuxcnc-ethercat/linuxcnc-ethercat and there is a link in there to a reference guide. Unfortunately it doesn't cover sdo uploads. But it's done like this. Example comes from one of my ect60 stepper motor drivers.
<slave idx="0" name="X" type="generic" vid="00000a88" pid="0a880002" configPdos="true">
      <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>
      <sdoConfig idx="2000" subIdx="0"><sdoDataRaw data ="a0 0f"/></sdoConfig>  <!-- Max motor current (3.0A=b80b 4.0=a00f 5.0=8813) Rated=4.0A -->
      <sdoConfig idx="2003" subIdx="0"><sdoDataRaw data ="64 00"/></sdoConfig>  <!-- Standby current percentage (100%) -->
      <sdoConfig idx="2011" subIdx="0"><sdoDataRaw data ="01 00"/></sdoConfig>  <!-- Closed loop -->
      <sdoConfig idx="2023" subIdx="1"><sdoDataRaw data ="a0 0f"/></sdoConfig>  <!-- Kp=4000 (def=2000) -->
      <syncManager idx="2" dir="out">
The sdoDataRaw has some quirks. First you must enter 4 bytes for a 32-bit variable, 2 bytes for 16 bit and 1 for 8 bit.
Note the byte order, 4000 which is hex 0x0fa0 is entered as "a0 0f". 100 (hex 0x64) is entered as "64 00",
  • koch777
  • koch777
06 May 2025 02:18

Troubles with Mesa 7I76EU + 7I76U(P1) + 7I89(P2)

Category: Driver Boards

Hello everyone,

So, I have this configuration:
  • Main board is Mesa 7I76EU
  • 7I76U connected to main board expansion header P1
  • 7I89 connected to main board expansion header P2
Main board's +5V is connected to P5; +24V field power - to TB1.
Actually, never mind, main 7I76EU is not a problem, it works, everything's detected, steppers are moving, spindle/spindle encoder are working, MPG is working.

Now, expansion 7I76U (on P1 header) is indicating communication failure (red led in the middle of te board). It doesn't show up in halconfig (should it?). Field power is there, cable power from main board is there.

For 7I89 I see all 8 encoders, but encoder inputs do not react to signals from encoders. None of the encoder input-a/input-b/rawcounts change despite the fact that physical signals from encoders are. Encoders are TTL and so 7I89 is jumpered accordingly.
+5V power to 7I89 is connected to its P1 and cable power from 7I76EU is activated as well (per 7I89 manual). Encoders are powered and working just fine (checked with oscilloscope).

Firmware I load is from mesa website: 7i76eu_7i76x1_7i88_7i89d.bin
It is somewhat strange as its 7i76eu_7i76x1_7i88_7i89d.pin file has stepgens 10/11 where 7I76U (P1) should have Sserial and it also has Sserial where should be MuxedQCount (spindle encoder). Basically I/O for DB25 pins 7-13 is all wrong for 7I76U.
Probably that's why my 7I76 doesn't work.

I'm afraid to load firmware from post www.forum.linuxcnc.org/27-driver-boards/...7i89-firmware#240149
That one has all the right pinouts, but seem to be for older generation of 7I76 (Spartan FPGA?), not sure it will work for my 7I76EU (Efinix FPGA)
It also has clock high frequency set at 200MHz, while 7i76eu_7i76x1_7i88_7i89d.pin shows 160MHz.

How can I get out of this predicaments?
Can anybody help?
  • IB_CnC
  • IB_CnC
04 May 2025 12:22

Probe Basic and Carousel ATC with Geneva and Stepper

Category: QtPyVCP

Yes, to swap a tool for another tool that is the case, but my spindle was empty.

The carousel needs to move away to give clearance to the Z assembly during probing. Otherwise the probe can't reach X0 without the Z assembly running into the carousel.

If I would place the probe on the left side of the spindle, possibly the carousel wouldn't need to move away, only when it needs to swap for the toolsetter.

But the consequence would be not having full probing range on the end of X axis (without extending the gantry), which maybe isn't really an issue.
But I would need to find a way to block the spindle from going into the carousel work area during 'non-toolchange' events.
  • IB_CnC
  • IB_CnC
01 May 2025 23:44 - 01 May 2025 23:47

Probe Basic and Carousel ATC with Geneva and Stepper

Category: QtPyVCP

For now I'll just accept the situation and carry on with the small delay, until I got the whole toolchange process sorted.

Im at the point now where the carousel extends, gets detected, spindle moves to clearance height, spindle unclamps the tool etc..
All 5 sensors are working, Carousel Home, Carousel Index, Carousel IN position, Carousel OUT position and the Spindle Tool Clamped and Tool Released sensors.

Now its time to program the final movements, placing and removing a tool from a pocket.
Will be a little different probably compared to other carousel toolchangers where the carousel moving in and out takes the tool from the spindle.

When no tool is loaded it has to move down, clamp the tool, moving to the right to take a tool from the pocket, carousel retract, spindle up again and resume.
Or with a loaded tool it has to move in front of the carousel, moving to the left into the pocket, unclamp, up, rotate to new tool, down again etc.

Should be fun, hopefully it won't get fooked. :-D
Displaying 1 - 15 out of 155 results.
Time to create page: 1.174 seconds
Powered by Kunena Forum