Lancie,
who said I gave up? I solved that problem and moved on to next one. The program is functional now, waiting for the motors to arrive to continue with high-speed stuff. But thank you for advice - it is my first attempt at PLC programming and I don't claim to know it all.
I learned that transitional contacts are bad (if they aren't used to monitor inputs), now SET and RST instructions are bad (i didn't understand why yet - could you elaborate?). Is there another, better way to enable an output in one stage and leave it on when moving to another?
Thanks everybody for smoothing up my learning curve!