ATC with carousel.comp and M6 remap

More
7 years 8 months ago #127253 by andypugh
Note that in the above, I am talking about the 2.8 version of carousel. The analogue speed outputs are not present in the 2.7 version. But it is fairly easy to install the 2.8 version in 2.7 with halcompile. (halcompile -install carousel.comp) after downloading the source file ,

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

More
7 years 8 months ago - 7 years 8 months ago #127254 by gmarconi2
Thanks andypugh
So I add another pin in the toolchange_index.hal and connect it to an output of mesa7i76 and edit this in toolchange.ncg:

M65 P2; move arm back out
M66 P4 L3 Q5; wait for arm-out = true
O111 if [# 5399 LT 0]
     (abort, failed to move arm out)
O111 endif

it's correct ???

Hi gmarconi2
Last edit: 7 years 8 months ago by gmarconi2.

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

More
7 years 8 months ago #127255 by gmarconi2
Thanks andypugh
I had not read the second post of response and thought to modify the 2.7 using an ad hoc harware to change the direction of the arm

anyway now I look at the 2.8

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

More
7 years 8 months ago - 7 years 8 months ago #127256 by andypugh

gmarconi2 wrote: Thanks andypugh
I had not read the second post of response and thought to modify the 2.7 using an ad hoc harware to change the direction of the arm


There is no reason to use hardware. It could be done in HAL even with the 2.7 version of carousel.
Code:
loadrt mux4 count=1 addf mux4.0 servo-thread ... net fwd carousel.0.motor-fwd mux4.0.sel0 net rev carousel.0.motor-rev mux4.0.sel1 setp mux4.0.in0 0 setp mux4.0.in1 100 setp mux4.0.in2 -100 setp mux4.0.in3 0 net motor-speed mux4.0.out stepgen.5.velocity-command

But it is a fair bit simpler with the updated version of carousel.comp
Last edit: 7 years 8 months ago by andypugh.

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

More
7 years 8 months ago #127267 by gmarconi2
Ok andypugh with the new version of carousel.comp:

float pin fwd-dc "Velocity or duty cycle when forward rotation is desired";
pin in float rev-dc "Velocity or duty cycle when reverse rotation is desired";

My step by step driver has 2 pins step and excuse my ignorance but how do I reverse the rotation, output of:

float fwd-dc ## produces a square wave
float rev-dc ## produces a reverse square wave

How should I wire these pins to the driver step dir.

Greetings Giampiero

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

More
7 years 8 months ago #127269 by andypugh
Are you using software stepping, a Pico card, a Mesa card or something else?

Most support velocity-mode, but the way the mode is set is different.

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

Time to create page: 0.342 seconds
Powered by Kunena Forum