Operation of the rotary conveyor

Good afternoon!
Tell me, please, at the moment I am working with a rotary conveyor and I would like to perform a U-turn on an external signal.
How do I add an external signal to control the rotation along the z-axis?