7i33 spindle

More
12 Jun 2017 09:12 #94422 by billykid
7i33 spindle was created by billykid
Hello.
I am setting up a lathe with 5i22 + 3 7i37, I have a doubt about the 0 - 10 volt analogue fanuc spindle drive.
I have a new 7i33 available, I would like to know if I can use only one spindle channel and leave the other 3 free.
A problem leaving -10 +10 volts output instead of 0 +10 only.
it can be done ?
regards
Mauro

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

More
15 Jun 2017 13:03 #94531 by andypugh
Replied by andypugh on topic 7i33 spindle
It should work. But PWM from a 7i37 and a SPINX1 board might be cheaper and easier.

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

More
15 Jun 2017 19:46 #94555 by billykid
Replied by billykid on topic 7i33 spindle
Thanks Andy, but we are going to use 2 analogs one also for motorized tools in the future.
Without counting the convenience of the differential encoder input I have already connected and it works fine.
I could not get the analogue output but I think it's changing in pdm ..
If you have some example link I would be useful
regards
Mauro

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

More
17 Jun 2017 12:13 #94644 by billykid
Replied by billykid on topic 7i33 spindle
Well, now the signal has a single polarity in both m3 and m4, 0 to 9.7 volts.
But i have gnd positive and analog out negative ...
I saw that abs has pins for the sign but I do not know how to do it.
regards
Mauro

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

More
17 Jun 2017 12:57 - 17 Jun 2017 12:58 #94646 by PCW
Replied by PCW on topic 7i33 spindle
There are a couple ways to invert the 7I33 output, probably the easiest is to just invert the
PWM scale parameter (change it to a negative number)
Last edit: 17 Jun 2017 12:58 by PCW.
The following user(s) said Thank You: billykid

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

More
26 Jun 2017 09:24 #94967 by billykid
Replied by billykid on topic 7i33 spindle
Hi pcw
The spindle works well, now I'm trying the orientation but I have some problem.
The spindle index enable signal is always red, but the spindle index becomes yellow for the time that the encoder index is high controlled with oscilloscope.
I certainly made confusion in setting the orient, but there are so many different examples, each one uses different methods ..

Now with orient mode 1 or 2 you enable cw or ccw relais, abs out ok but you really do not enable analog output.
I attach the section hal and pid setting at end
regards
Mauro
Attachments:
The following user(s) said Thank You: massimodamassa

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

More
27 Jun 2017 12:14 #95033 by andypugh
Replied by andypugh on topic 7i33 spindle
Spindle orientation doesn't necessarily use the index-enable HAL pin so what you see is probably right.

Can you check that the orient and both pid functions are added to a the servo thread?

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

More
27 Jun 2017 12:38 #95040 by billykid
Replied by billykid on topic 7i33 spindle
Thanks Andy
The functions are added to the servo thread.
Now the main problem is that in orient mode I do not have the spindle on active.
The "pid" are regularly switched abs out from the right output as well as the signs.
In fact the cw and ccw relays get excited well.
But the analog output is not enabled.
Tonight let me see the full configuration files, now I have to go around with the xt550 :-)

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

More
28 Jun 2017 14:06 #95105 by billykid
Replied by billykid on topic 7i33 spindle
Here I am with the files.
There are "high" commented numbers, they are referring to my friend's 5i22.
I'm trying with a 5i23.
Thanks in advance
Mauro
Attachments:

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

More
29 Jun 2017 12:31 #95169 by andypugh
Replied by andypugh on topic 7i33 spindle
I think the problem might be that spindle-enable is only set when the spindle is on, and this controls the spindle pwmgen and a GPIO pin (spindle drive?). Halscope will prove this one way or the other.

I think that you might want to use some logic, perhaps an OR2 so that spindle-enable is true if motion.spindle-on OR motion.spindle-orient are set.

I think I would probably use a LUT5 to give the option to add more inputs to the logic, for example (spindle-on OR orient) AND (not probe AND not tool-release)

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

Moderators: PCWjmelson
Time to create page: 0.163 seconds
Powered by Kunena Forum