Mesa 7i95T spindle step/Direction setup using stepgen
- Sternfox
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 6
04 Jan 2025 15:30 #318085
by Sternfox
Mesa 7i95T spindle step/Direction setup using stepgen was created by Sternfox
Hi All,
As the title suggests i have the Mesa 7i95T, I am wanting to use a AC servo as a spindle motor.
I am on version 2.9.2
I have the servo wired up correctly, i have validated this by plugging it into the Z axis socked and i get movement. The problem is that non of the configuration tools supports stepgen for the spindle only PWM, I have tried all the tricks i can find online to get this to work, like setting up for a different card then copy and pasting to my config but nothing works. no movement of the spindle.
I have attached my HAL and ini files if someone could kindly have a look.
As the title suggests i have the Mesa 7i95T, I am wanting to use a AC servo as a spindle motor.
I am on version 2.9.2
I have the servo wired up correctly, i have validated this by plugging it into the Z axis socked and i get movement. The problem is that non of the configuration tools supports stepgen for the spindle only PWM, I have tried all the tricks i can find online to get this to work, like setting up for a different card then copy and pasting to my config but nothing works. no movement of the spindle.
I have attached my HAL and ini files if someone could kindly have a look.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18778
- Thank you received: 5188
04 Jan 2025 15:38 #318087
by PCW
Replied by PCW on topic Mesa 7i95T spindle step/Direction setup using stepgen
I know pncconf does support step/dir spindles (but not the 7I95/7I95T)
You might use pncconf to create a say 7I96s configuration with a step/dir spindle
and steal the hal/ini spindle bits from that.
You might use pncconf to create a say 7I96s configuration with a step/dir spindle
and steal the hal/ini spindle bits from that.
Please Log in or Create an account to join the conversation.
- Sternfox
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 6
04 Jan 2025 16:10 #318097
by Sternfox
Replied by Sternfox on topic Mesa 7i95T spindle step/Direction setup using stepgen
Thanks for the reply.
I have tried that already, and no joy, wasn't sure if it was a incorrect setting in my configs
I have tried that already, and no joy, wasn't sure if it was a incorrect setting in my configs
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18778
- Thank you received: 5188
04 Jan 2025 16:16 #318099
by PCW
Replied by PCW on topic Mesa 7i95T spindle step/Direction setup using stepgen
As a first step try this:
[SPINDLE_0]
MAX_VELOCITY = 100.0
MAX_ACCELERATION = 300.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAX_VEL = 125.00
STEPGEN_MAX_ACC = 375.00
P = 0
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0.001
MAX_OUTPUT = 2000
[SPINDLE_0]
MAX_VELOCITY = 100.0
MAX_ACCELERATION = 300.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAX_VEL = 125.00
STEPGEN_MAX_ACC = 375.00
P = 0
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0.001
MAX_OUTPUT = 2000
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18778
- Thank you received: 5188
04 Jan 2025 16:21 - 04 Jan 2025 17:18 #318101
by PCW
Replied by PCW on topic Mesa 7i95T spindle step/Direction setup using stepgen
Never mind, the PID stuff is all side stepped by:
net machine-is-on => hm2_[MESA](BOARD).0.stepgen.03.enable
net spindle-vel-cmd-rps => hm2_[MESA](BOARD).0.stepgen.03.velocity-cmd
net spindle-vel-fb-rps <= hm2_[MESA](BOARD).0.stepgen.03.velocity-fb
But it looks like machine-is-on is not connected, it probably should be something like:
net machine-is-on <=motion.motion-enabled
net machine-is-on => hm2_[MESA](BOARD).0.stepgen.03.enable
net spindle-vel-cmd-rps => hm2_[MESA](BOARD).0.stepgen.03.velocity-cmd
net spindle-vel-fb-rps <= hm2_[MESA](BOARD).0.stepgen.03.velocity-fb
But it looks like machine-is-on is not connected, it probably should be something like:
net machine-is-on <=motion.motion-enabled
Last edit: 04 Jan 2025 17:18 by PCW.
Please Log in or Create an account to join the conversation.
- alexandrap
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
22 Jun 2025 15:11 #330699
by alexandrap
Replied by alexandrap on topic Mesa 7i95T spindle step/Direction setup using stepgen
Hi, Sternfox.
Did you manage to create a working hal and ini file ?
It would be possible for you to attach it ?
Did you manage to create a working hal and ini file ?
It would be possible for you to attach it ?
Please Log in or Create an account to join the conversation.
- Yaroslav
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 0
23 Jun 2025 00:01 #330739
by Yaroslav
Replied by Yaroslav on topic Mesa 7i95T spindle step/Direction setup using stepgen
Hello. I have a lathe with a spindle on a servo motor and step/dir control and feedback via the encoder of the same drive on 7i96s. Everything works well. I also have an unfinished project on 7i97, where the spindle still works in an analog way. Step/dir is also planned. I can send the working files of the lathe.
Please Log in or Create an account to join the conversation.
- zmrdko
-
- Offline
- Elite Member
-
Less
More
- Posts: 183
- Thank you received: 49
23 Jun 2025 04:52 - 23 Jun 2025 05:00 #330748
by zmrdko
Replied by zmrdko on topic Mesa 7i95T spindle step/Direction setup using stepgen
does it work now?
Last edit: 23 Jun 2025 05:00 by zmrdko.
Please Log in or Create an account to join the conversation.
- Yaroslav
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 0
23 Jun 2025 13:22 #330759
by Yaroslav
Replied by Yaroslav on topic Mesa 7i95T spindle step/Direction setup using stepgen
Lathe with Step/dir spindle.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.200 seconds