bridgeport conversion 5i25, 7i76 and gecko 203v

More
11 Apr 2013 19:20 #32562 by andypugh

What do I change in my hal file to get the speed control working correctly for ccw?


What does your spindle drive expect as input?

I think that you probably need to use an "abs" HAL component between motion.spindle-speed-out and hm2_5i25.0.7i76.0.0.spinout

Is your spindle drive configured for on/off and reverse rather than forwards and reverse buttons?

Please Log in or Create an account to join the conversation.

More
11 Apr 2013 23:42 #32582 by canner

What do I change in my hal file to get the speed control working correctly for ccw?


What does your spindle drive expect as input?

I think that you probably need to use an "abs" HAL component between motion.spindle-speed-out and hm2_5i25.0.7i76.0.0.spinout

Is your spindle drive configured for on/off and reverse rather than forwards and reverse buttons?


The spindle drive expects 0-10v for speed control, and this works it is just reversed but only on the ccw direction.

Yes the spindle drive is configured for on/off on one pin and then forward reverse on a second pin. There is another set of pins that controls the spindle speed which is working just reversed on the ccw direction.

I think that you probably need to use an "abs" HAL component between motion.spindle-speed-out and hm2_5i25.0.7i76.0.0.spinout Will this change it for just the ccw or will it effect both directions?


Thanks for the help.

Please Log in or Create an account to join the conversation.

More
12 Apr 2013 00:32 - 12 Apr 2013 00:36 #32585 by PCW
I'm not so sure that an absolute is not already being used.
If you measure the analog out from 7I76 TB4 pin1 (meter negative or black)
to 7I76 TB4 pin 2 (meter positive or red) if its 10V at 1500 RPM setting (from a S command)
in both directions, this indicates the drive is set up in a funny way (0V should never be full speed)
Last edit: 12 Apr 2013 00:36 by PCW.

Please Log in or Create an account to join the conversation.

More
12 Apr 2013 00:47 #32586 by canner
It is 10V at maximum speed in both directions from TB4 pin1 but in the ccw direction Axis has it backwards, it speeds up when I click the "-" button and slows down when I click the "+" button (the same if I use "s" in mdi). I somehow need to reverse a signal but only for the ccw direction.

Please Log in or Create an account to join the conversation.

More
12 Apr 2013 09:29 #32612 by PCW
can you post your hal and ini files, that might clear things up a little

Please Log in or Create an account to join the conversation.

More
12 Apr 2013 11:13 #32614 by canner
Here they are.
Attachments:

Please Log in or Create an account to join the conversation.

More
12 Apr 2013 19:28 #32624 by andypugh

Here they are.

OUTPUT_MIN_LIMIT = -1800.0
OUTPUT_MAX_LIMIT = 18000.0

This looks wrong. It might not be the cause of the problem, but it won't help. I think there is an extra zero in the max limit.

Please Log in or Create an account to join the conversation.

More
12 Apr 2013 21:22 #32635 by PCW
Also thinking about it, (took me awhile) I dont think an absolute is appropriate for a 7I76

It also looks like the the HAL file is using CW/CCW mode in the drive , not ENA/DIR mode
(via field I/O) The drive should be in DIR/ENA mode and should connect only to TB4
no field I/O is needed.

Please Log in or Create an account to join the conversation.

More
12 Apr 2013 23:04 #32648 by canner
Thanks for catching that it was giving me a little bit of a problem with manual control in the cw direction. I need to look closer.

Please Log in or Create an account to join the conversation.

More
12 Apr 2013 23:23 - 13 Apr 2013 02:48 #32650 by PCW
I am still not quite right, and Andy was right, you need absolute value function.

On the7I76 there are 3 spindle control HAL pins:

spinout (unsigned spindle analog output setting)
spindir (spindle direction OPTO, on if true)
spinena (spindle enable OPTO, on if true)

so
OUTPUT_MIN_LIMIT = 0.0
OUTPUT_MAX_LIMIT = 1800.0

Is correct for the _unsigned_ spindle speed
(not sure if the driver allowing a negative number here is a bug...)
and net spindle-vel-cmd must be run through the abs component
before its connected to hm2_5i25.0.7i76.0.0.spinout

EDIT: Since this started with a pncconf generated configuration, when this gets straightened out
the working spindle code should probably be posted to the pncconf forum so the proper hal boilerplate
can be incorporated in pncconf for 7I76 configurations
Last edit: 13 Apr 2013 02:48 by PCW.

Please Log in or Create an account to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum