we will modifie a old bale opener machine and we use S7-300.There is a rail and A and B side of the cotton bales available.If the request came from the silo head is moving on the rail.and flapping cottons until the entered value on the HMI screen.One each magnet is placed on the start and end of the cotton bales.There is one switch in moving on the rail head and changing the position of a magnet retains its position until the other magnets.My question is (continuous requests while) how this moving head goes forward and comes back ?I could not understand,any idea,thanks for advance...