On 31 October 2015 at 02:59, <[email protected]> wrote: >if the Carousel is not homed, and I set "enable" true, it should stop rotating >when it sees the sense.0 pin "home position" go true, then report back out on >the carousel.0.current-position as being pocket 1 correct?
It needs to see both the index and the pocket pin, ie it will consider itself homed when it sees sense0 and sense1 go true. > And this should be done with out telling it go to pocket 1 on the > carousel.0.pocket-number input during the homing routine? No, it will "stick" in state 1 until the pocket-number pin is >=1 and <= num-pockets. > Reason I ask, the only way I could get it to stop on the home position switch > " pocket 1" during homing, was to use an assignment block in my ladder logic > that I set to "1", at the same time I start the carousel homing sequence. > Then it works as intended I believe. You need to give it a pocket number to go to before it will get to the "finished" state. There is probably a bit of an error there, as setting enable in the either the homed or un-homed state without providing a pocket number will leave it "stuck" in state 1, and it will stay there even if enable goes false. So, if you want to home the carousel as part of the homing sequence you currently have to supply a pocket number to go to during that sequence. I should probably change things slightly so that enable going to false always takes the component back to state 0. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
