Multiposition cylinder