link two different signals to the same output

More
2 years 9 months ago - 2 years 9 months ago #291467 by greg23_78
I have a problem with the programming of my hal, I would like one output to be linked to two different signals.

net car-fwd carousel.0.motor-fwd hm2_5i25.0.7i77.0.0.output-08
net car-rev carousel.0.motor-rev hm2_5i25.0.7i77.0.0.output-08 hm2_5i25.0.7i77.0.0.output-13

I'm sure the solution isn't complicated but I'm having trouble finding it.
Last edit: 2 years 9 months ago by greg23_78.

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

More
2 years 9 months ago - 2 years 9 months ago #291469 by spumco
net car-fwd <= carousel.0.motor-fwd
net car-fwd => or2.in0
net car-fwd => hm2_5i25.0.7i77.0.0.output-08

net car-rev <= carousel.0.motor-rev
net car-rev => or2.in1
net car-rev => hm2_5i25.0.7i77.0.0.output-13

net car-out <= or2.out
net car-out => hm2_5i25.0.7i77.0.0.output-08

Test it on something inexpensive before getting married to it.

EDIT - undumbing
Last edit: 2 years 9 months ago by spumco.

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

More
2 years 9 months ago #291477 by blazini36

net car-fwd <= carousel.0.motor-fwd
net car-fwd => or2.in0
net car-fwd => hm2_5i25.0.7i77.0.0.output-08

net car-rev <= carousel.0.motor-rev
net car-rev => or2.in1
net car-rev => hm2_5i25.0.7i77.0.0.output-13

net car-out <= or2.out
net car-out => hm2_5i25.0.7i77.0.0.output-08

Test it on something inexpensive before getting married to it.
 
That won't work, you have car-fwd and car-out signals both linked to the hm2...output-08 pin which is a hal input pin. It's close though....

Just remove "net car-fwd => hm2_5i25.0.7i77.0.0.output-08"
 
The following user(s) said Thank You: spumco

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

More
2 years 9 months ago #291482 by spumco
Good catch, thx.

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

More
2 years 9 months ago - 2 years 9 months ago #291626 by greg23_78
thank you for your reply, it wasn't complicated, I understand better now. thank you

i have another question, how do i insert a home of my caroussel (tool pocket number 1) during the homing of my 3 axes. (all home button)

type of my carrousel if necessary (loadrt carousel pockets=30 encoding=index num_sense=2 dir=2)

Code:
    M64 P0 ;Enable Carousel     M66 P0 L3 Q120 ; wait for carousel-ready = true         o203 if [#5399 LT 0]             (abort, carousel not finished)         o203 endif          M65 P0 ;Disable carousel enable
Last edit: 2 years 9 months ago by greg23_78.

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

More
2 years 9 months ago #291627 by spumco
Note - in the future, start a new thread for a new topic.  I know it's 'just a little add-on question', but changing the thread title even if it's yours is frowned on and makes it harder for people to search later.  I'm guilty of it, too, but I try not to make a habit of it.

On to your question...

When exactly do you want the carousel to home?  At the start of the home-all activity, or after? or before the other axes move?  Do you want any pauses or confirmations? or some way of turning off the carousel homing function - perhaps for testing or if you've got an issue to resolve?
The following user(s) said Thank You: tommylight

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

Time to create page: 0.079 seconds
Powered by Kunena Forum