Pressure is connected to port 1 and the valve alternately directs pressure to ports 2 and 4. The valve changes position whenever the cylinder reaches its end position or when line pressure exceeds the set threshold. Speed is adjusted by throttling the exhaust flow from ports 3 and 5.