Category: Milling Machines
haha.. next issue..but solved...
a second mux2 and a mult brings up the fwd and rev function to the spindle in carousel movement. now bidirectional works...but all only on the table with buttons,switches,leds.
i was wondering why i get motor-fwd and motor-rev velocity shown only as positiv value.. then i use the motor-rev pin to use a second mux2 to select the inverted value.
the inverted value i got from mult2. i give in the carousel.0.motor-vel and multiplie with -1.
then i get the negative value...
carousel.0.motor-vel 100 with carousel.0.motor-fwd true gives 100
carousel.0.motor-vel 100 with carousel.0.motor-rev true gives -100
when carousel.0.motor-rev true then the mux2.sel is active nd sends the -100 Value to the first mux2.
first mux2 change between carousel and spindle mode.