7i92t and 5 axis bob no 0-10v on spindle

More
2 years 8 months ago #292498 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 added
OUTPUT_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 to join the conversation.

More
2 years 8 months ago #292505 by tommylight
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.

Please Log in to join the conversation.

More
2 years 8 months ago #292513 by 0jw
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.

Please Log in to join the conversation.

More
2 years 8 months ago #292516 by 0jw
I have it connected the same as in this diagram.

Please Log in to join the conversation.

More
2 years 8 months ago #292519 by Aciera
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

Please Log in to join the conversation.

More
2 years 8 months ago #292521 by 0jw
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 to join the conversation.

More
2 years 8 months ago #292525 by PCW
There is no pwm setup or pwm connections in the hal file

and the driver command line has "num_pwmgens=0"

Please Log in to join the conversation.

More
2 years 8 months ago #292527 by Aciera
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?

Please Log in to join the conversation.

More
2 years 8 months ago #292528 by PCW
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

Please Log in to join the conversation.

More
2 years 8 months ago #292532 by 0jw
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 to join the conversation.

Time to create page: 0.153 seconds
Powered by Kunena Forum