7i92t and 5 axis bob no 0-10v on spindle
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
05 Feb 2024 10:02 #292498
by 0jw
7i92t and 5 axis bob no 0-10v on spindle was created by 0jw
Hello, I'm not sure what's going on with my spindle setting. I'm using the 7i92t with 7i92_5abobx2d.bit and a cheap 5 axis bob with spindle output set to i/o 000: for pin 1. The relay pin 17 is working as expected but I get 10v on pin 1 with the relay off and no voltage with it on. Giving S commands has no effect with relay off or on. My spindle setting from pncconf were[SPINDLE_0]
P = 0.0
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 24000.0
So I addedOUTPUT_SCALE = 24000.0
OUTPUT_MIN_LIMIT = 0
OUTPUT_MIN_LIMIT = 24000.0
but this had no noticeable change.
If anyone knows what might be wrong, please let me know
My ini and hal are attached along with the xhc mpg hal.
P = 0.0
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 24000.0
So I addedOUTPUT_SCALE = 24000.0
OUTPUT_MIN_LIMIT = 0
OUTPUT_MIN_LIMIT = 24000.0
but this had no noticeable change.
If anyone knows what might be wrong, please let me know
My ini and hal are attached along with the xhc mpg hal.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Online
- Moderator
-
Less
More
- Posts: 19784
- Thank you received: 6686
05 Feb 2024 12:54 #292505
by tommylight
Replied by tommylight on topic 7i92t and 5 axis bob no 0-10v on spindle
Upload here a picture of the BOB, we have several members here that know all the ins and outs of BOB's just from a picture.
Also, does the voltage change if you set different values for S or speed?
If it ends up being 0V at full speed and 10V at 0/low speed, it is just a matter of inverting the output pin in hal.
Also, does the voltage change if you set different values for S or speed?
If it ends up being 0V at full speed and 10V at 0/low speed, it is just a matter of inverting the output pin in hal.
Please Log in or Create an account to join the conversation.
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
05 Feb 2024 14:00 - 05 Feb 2024 14:36 #292513
by 0jw
Replied by 0jw on topic 7i92t and 5 axis bob no 0-10v on spindle
I don't think it's a wiring issue as I was first testing with a multimeder from pin 1 to gnd.
The spindle starts running when the relay is off. So that's a problem. I need to invert that in the sunfar e300 vfd or in hal somehow.
But after using a M3 I can not change the voltage with a S command. After using a M5 command I can not change the voltage as I don't think should be able to. If I disconnect the fwd wire from the vfd it will get 10v when I use a M5 command and 0V with M3 regardless if I use S0 S12000 S24000.
The spindle starts running when the relay is off. So that's a problem. I need to invert that in the sunfar e300 vfd or in hal somehow.
But after using a M3 I can not change the voltage with a S command. After using a M5 command I can not change the voltage as I don't think should be able to. If I disconnect the fwd wire from the vfd it will get 10v when I use a M5 command and 0V with M3 regardless if I use S0 S12000 S24000.
Last edit: 05 Feb 2024 14:36 by 0jw.
Please Log in or Create an account to join the conversation.
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
05 Feb 2024 14:17 #292516
by 0jw
Replied by 0jw on topic 7i92t and 5 axis bob no 0-10v on spindle
I have it connected the same as in this diagram.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4197
- Thank you received: 1845
05 Feb 2024 14:31 #292519
by Aciera
Replied by Aciera on topic 7i92t and 5 axis bob no 0-10v on spindle
I don't see how you have connected the commanded spindle speed in your HAL files. All I see is this:
# --- SPINDLE-CW ---
setp hm2_7i92.0.gpio.000.is_output true
net spindle-cw => hm2_7i92.0.gpio.000.out
# --- SPINDLE-ENABLE ---
setp hm2_7i92.0.gpio.007.is_output true
net spindle-enable => hm2_7i92.0.gpio.007.out
# --- SPINDLE-CW ---
setp hm2_7i92.0.gpio.000.is_output true
net spindle-cw => hm2_7i92.0.gpio.000.out
# --- SPINDLE-ENABLE ---
setp hm2_7i92.0.gpio.007.is_output true
net spindle-enable => hm2_7i92.0.gpio.007.out
Please Log in or Create an account to join the conversation.
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
05 Feb 2024 14:52 #292521
by 0jw
Replied by 0jw on topic 7i92t and 5 axis bob no 0-10v on spindle
Im not sure what its missing. the spindle section was just created through pncconf. Am I just missing a scale component? I wasn't sure what that was and thought it was mabe for dedicated dac converters.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18255
- Thank you received: 4969
05 Feb 2024 15:13 #292525
by PCW
Replied by PCW on topic 7i92t and 5 axis bob no 0-10v on spindle
There is no pwm setup or pwm connections in the hal file
and the driver command line has "num_pwmgens=0"
and the driver command line has "num_pwmgens=0"
The following user(s) said Thank You: 0jw
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4197
- Thank you received: 1845
05 Feb 2024 15:24 #292527
by Aciera
Replied by Aciera on topic 7i92t and 5 axis bob no 0-10v on spindle
Seems that you are missing the hal entries for the PWM output.
I'm not familiar with your particular mesa card/ firmware but I would have expected something like in this thread:
forum.linuxcnc.org/24-hal-components/387...tartup-solved#162724
Did you maybe miss the spindle setup in the pncconf tool?
I'm not familiar with your particular mesa card/ firmware but I would have expected something like in this thread:
forum.linuxcnc.org/24-hal-components/387...tartup-solved#162724
Did you maybe miss the spindle setup in the pncconf tool?
The following user(s) said Thank You: 0jw
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18255
- Thank you received: 4969
05 Feb 2024 15:29 #292528
by PCW
Replied by PCW on topic 7i92t and 5 axis bob no 0-10v on spindle
I suspect PWM 0 on P2 was not assigned to the spindle in pncconf
I get this:
loadrt hm2_eth board_ip="192.168.1.121" config="num_encoders=1 num_pwmgens=1 num_stepgens=5"
setp [HMOT](CARD0).pwmgen.pwm_frequency 20000
setp [HMOT](CARD0).pwmgen.pdm_frequency 6000000
And this further down:
# ---PWM Generator signals/setup---
setp [HMOT](CARD0).pwmgen.00.output-type 1
setp [HMOT](CARD0).pwmgen.00.scale [SPINDLE_0]OUTPUT_SCALE
net spindle-output => [HMOT](CARD0).pwmgen.00.value
net spindle-enable => [HMOT](CARD0).pwmgen.00.enable
When I assign PWM 0 to spindle on the P2 tab
I get this:
loadrt hm2_eth board_ip="192.168.1.121" config="num_encoders=1 num_pwmgens=1 num_stepgens=5"
setp [HMOT](CARD0).pwmgen.pwm_frequency 20000
setp [HMOT](CARD0).pwmgen.pdm_frequency 6000000
And this further down:
# ---PWM Generator signals/setup---
setp [HMOT](CARD0).pwmgen.00.output-type 1
setp [HMOT](CARD0).pwmgen.00.scale [SPINDLE_0]OUTPUT_SCALE
net spindle-output => [HMOT](CARD0).pwmgen.00.value
net spindle-enable => [HMOT](CARD0).pwmgen.00.enable
When I assign PWM 0 to spindle on the P2 tab
The following user(s) said Thank You: 0jw
Please Log in or Create an account to join the conversation.
- 0jw
- Offline
- Premium Member
-
Less
More
- Posts: 98
- Thank you received: 0
05 Feb 2024 17:14 #292532
by 0jw
Replied by 0jw on topic 7i92t and 5 axis bob no 0-10v on spindle
Oh I didn't realize I need a pwm generator in pncconf. In fact I had thought the exact opposite because I need 0-10v. Before in pncconf I had spindle cw on 000: and now I see I can set spindle pwm on 0: not sure it will goto pin 1 but I'll.
Please Log in or Create an account to join the conversation.
Time to create page: 0.168 seconds