- Posts: 75
- Thank you received: 0
Does Linux CNC support Closed loop with Steppers?
I reached out to Mesa yesterday to get information on 7I95 + encoders and the rep said I should use 7I76 E or 7I96 which are cheaper so that's good but I was hoping to at least stop if I lose steps. Since I am new to this hobby I was assuming It would take some time to get a handle on speeds, and depth of cut and all that other stuff that I don't even know exists yet. I would be nice to stop the machine before destroying the work piece, tool or the machine.
I would appreciate any and all advice on hardware and LinuxCNC capabilities.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
The only issue is when using closed loop stepper/drives and using the same encoders for LinuxCNC feedback ( even this will work for sure ) but might need some signal shaping and/or splitting to have the same encoder wired to two inputs on the drive and Mesa board.
BTW, LinuxCNC can do all this with a simple parallel port, although with very limited speed.
EDIT:
Closed loop stepper/drives have a fault output that can be used to stop the machine when the drive detects it's lost position.
Please Log in to join the conversation.
The 7i95 should work but I guess the guy didn't have that one since he tried to sell you a 7i96.
The 7i96 should work together with a 7i85 for encoder input. The 7i76e + 7i85s is what I have
since a couple of years and yes it works fine, wouldn't use the milling machine without the linear scales.
Please Log in to join the conversation.
step drive and tapping off the drives encoder is not recommended for electrical
reasons. If you have linear scales for feedback, there are real gains possible.
but not so much if you are just reading the rotary encoder on the motor.
If you are mainly concerned about lost steps or stalling, its much simpler to use
closed loop step drives and monitor their fault output that indicate a motion problem
Please Log in to join the conversation.
The attempt to correct lost steps is done between the encoder and the drive. Linuxcnc is unaware of what happens there.
The shut-down alarm can be sent to Linuxcnc like an e-stop.
I think that's what PCW is saying (I'm no tech guy)
Someone here must be using these things ? A search of the forums might return something.
Please Log in to join the conversation.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
Correct and correct.jbraun wrote: The attempt to correct lost steps is done between the encoder and the drive. Linuxcnc is unaware of what happens there.
The shut-down alarm can be sent to Linuxcnc like an e-stop.
www.google.com/search?source=hp&ei=-r0ZY...WQBskQ4dUDCAY&uact=5
Please Log in to join the conversation.
This is very helpful. My stepper drivers have encoder inputs and alarm out if I understand correctly I should just wire the alarm out to Mesa board for LinuxCNC?
or am I misunderstanding and it would it be better to just wire the encoders to Masa directly and not the drivers?
Please Log in to join the conversation.
Craig E wrote: Thanks everyone,
This is very helpful. My stepper drivers have encoder inputs and alarm out if I understand correctly I should just wire the alarm out to Mesa board for LinuxCNC?
or am I misunderstanding and it would it be better to just wire the encoders to Masa directly and not the drivers?
Your drive requires the encoders as you just mentioned. You cant just disconnect them from the drives and add them to linuxcnc.
Do what the guys are telling you. leave the encoders connected to the drives and alarm out to linuxcnc.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
Yes, namely wire it to the "joint.N.amp−fault−in" as Rod mentioned in the hal file, but the actual wire from the fault output can be connected to any of the Mesa field inputs. It literally needs a single line added for each of the drive/motors used in hal.Craig E wrote: My stepper drivers have encoder inputs and alarm out if I understand correctly I should just wire the alarm out to Mesa board for LinuxCNC?
Forget the encoders for now, leave them wired to the drive and let the drives do it's thing, first lets get the machine moving.
Please Log in to join the conversation.
