Mesa 7i95T spindle step/Direction setup using stepgen
- Sternfox
- Offline
- Junior Member
-
Less
More
- Posts: 21
- Thank you received: 4
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
-
- Away
- Moderator
-
Less
More
- Posts: 18277
- Thank you received: 4979
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: 21
- Thank you received: 4
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
-
- Away
- Moderator
-
Less
More
- Posts: 18277
- Thank you received: 4979
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
-
- Away
- Moderator
-
Less
More
- Posts: 18277
- Thank you received: 4979
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.
Moderators: PCW, jmelson
Time to create page: 0.058 seconds