Run Mesa 7i76e + 7i85 with 3 servos and 1 stepper motor

More
4 years 7 months ago - 4 years 7 months ago #237825 by MarcusM
In the meantime, I found the matching value to reduce speed. This was a bit tricky. I changed the carousel.*-dc values and nothing happens. So i deleted them and played with the axes/joint values. It needs so time to realize, that the carousel.*-dc has no effect, but has to exist regardless. I changed now the max_vel and max_acc to get proper speed.

The motor is directly attached to the carousel. There is no gear. Microstepping is 1.600. Seems to be ok.

Next issue is to figure out, how to drive the carousel to pocket-1-position after/within the init-sequence.
Last edit: 4 years 7 months ago by MarcusM.

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

More
4 years 7 months ago #237987 by andypugh

It needs so time to realize, that the carousel.*-dc has no effect, but has to exist regardless. I changed now the max_vel and max_acc to get proper speed.

The "dc" outputs ought to work.
github.com/LinuxCNC/linuxcnc/blob/master...s/carousel.comp#L266
Shows that the motor-vel pin should be the same as the duty cycle.
I suspect that you had simply set the fwd-dc and rev-dc too high. 2 = 2 revs per second...
Try numbers less than 1.

Next issue is to figure out, how to drive the carousel to pocket-1-position after/within the init-sequence.


Does it need to? It should home itself the first time that it is enabled. Though I don't see any connection to the "sense-0" pin (home sensor) in your HAL file.

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

More
4 years 7 months ago #238035 by MarcusM

Does it need to? It should home itself the first time that it is enabled. Though I don't see any connection to the "sense-0" pin (home sensor) in your HAL file.

I'am sorry - I didn't attach my lastest config files. They're added now.

The sense-o pin is connected to a digital-in and works fine. While doing M13, the carousel stops at sense-0 = high as expected. Unfortunately the position of the pockets will not fit with needed position. So I have to offset - just like in a typical axis homing too. In the moment I have no idea, how to make that best. Is it a good way, to config the carousel stepper as a axis and do a usual axis homing?

And another issue I think about: After correct homing I obviously do not need the step-calculation in M11 and M12...I just have to jog n times where n is the amount of pockets to move. Is this correct? As I'am not a software developer: How can I code a carousel jog in the M12 ngc file?   

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

More
4 years 7 months ago #238040 by andypugh
I had rather assumed that the index sensor was in the right place....

Would a home-offset pin help? I have added one.

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

More
4 years 7 months ago #238042 by andypugh

And another issue I think about: After correct homing I obviously do not need the step-calculation in M11 and M12...I just have to jog n times where n is the amount of pockets to move. Is this correct? As I'am not a software developer: How can I code a carousel jog in the M12 ngc file?   

The carousel component has jogging built in. Just connect buttons (physical or software) to the carousel.0.jog-plus and jog-minus pins. 

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

More
4 years 7 months ago #238043 by MarcusM

Would a home-offset pin help? I have added one.

So cool image missing /media/kunena/emoticons/w00t.png Thanks a lot. I'll try that an be back.

Regarding the jogging: I'm wondering, if I could do that in the easy way (n-times x jog). I'am afraid, I could to pipeline n jog commands...
 

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

Moderators: PCW, jmelson
Time to create page: 0.229 seconds
Powered by Kunena Forum