fig1 diagrammatically illustrates hydraulic apparatus for controlling a plurality of valves or other subsea operators while using only a pair of hydraulic pressure source lines . the present invention as illustrated in fig1 includes a control module 11 for use with a subsea christmas tree 12 having a plurality of hydraulically controlled valves with their associated valve operators . the control module 11 is connected to a surface control center 13 having the usual pressure pumps , pressure gauges and switches , none of which is shown . the control module 11 includes a rotary actuator 17 connected to a rotary switch having a plurality of rotatable valve sections 18 - 24 each having a pressure input pa - pg , an output oa - og , and a vent va - vg . each valve section includes a plurality of positions a - f each having either the pressure input connected to the output or having the output connected to the vent . each of the pressure inputs pa - pg is connected to the hydraulic supply line 28 which is provided with pressurized fluid from the control center 13 , and each of the vents va - vg is connected to a vent 29 which is vented into the sea . an accumulator 30 , which is connected to the hydraulic supply line 28 , aids in providing a stabilized value of hydraulic pressure to the valve sections 18 - 24 and to operate the actuator 17 through a pilot valve 34 . the rotary actuator 17 includes a rotatable shaft 17a which is coupled to a plurality of rotatable shafts 18a - 24a of the valve sections 18 - 24 . when a hydraulic pilot line 35 is unpressurized the pilot valve 34 is in the position shown in fig1 wherein upper chamber 17b of the actuator 17 is connected to the vent 29 through the valve section a , whereby the actuator shaft 17a and the valve sections 18 - 24 remain in a stationary position . when pressure is admitted to the hydraulic pilot line 35 the spool of the valve 34 shifts so that liquid from the hydraulic supply line 28 is coupled through the section b of the pilot valve 34 to the upper chamber 17b , causing the actuator 17 to rotate the valve sections 18 - 24 to another distinct position . when the valves 18 - 24 are in the positions shown in fig1 hydraulic pressure from the hydraulic supply line 28 is coupled through portion a of valve 19 through a hydraulic line 25b to a production wing valve 36 , causing the wing valve to open . hydraulic fluid coupled through portion a of valve 20 and portion a of valve 23 through hydraulic lines 25c , 25f also causes a downhole safety valve 37 and a crossover valve 41 to open . an upper master valve 42 and a lower master valve 43 are connected to vent 29 through hydraulic line 25a and the portion a of valve 18 , and an annulus master valve 47 and an annulus wing valve 48 are connected to the vent 29 by lines 25d , 25e through the portions a of valve section 21 and 22 , respectively . the lowermost valve 24 and a plurality of pressure relief valves 51 - 56 provide a predetermined upper value of pressure on the pilot line 35 at the control center to indicate the position of the valve 24 , thereby also indicating the position of the rotary actuator 17 and of the other valve 18 - 23 . for example , when all the valves are in their a positions , the pressure relief valve 51 is connected through the portion a of valve 24 to the pilot line 35 and limits the maximum pressure on the pilot line to 1000 psi . when the valves are all in their b positions the pressure relief valve 52 limits the pressure on the pilot line 35 to 1400 psi , thereby indicating that the valves and the actuator are in said b positions . fig1 and 15 disclose other embodiments of circuits for interconnecting the actuator pilot valve 34 , the actuator 17 and the valve sections . in fig1 the position signal line 35a is connected to the supply line 28 through the portion b of the pilot valve 34 so that the pressure on line 28 can be used to determine the rotary position of the valve sections 18 - 24 during the time when the pilot valve 34 is energized . when the pilot valve 34 is deenergized the signal line 35a is connected to the vent 29 . the hydraulic supply line 28 is always connected to the valve section just as shown in fig1 . the hydraulic supply line 28 of fig1 is connected to a feed line 28a when the pilot valve 34 is deenergized . when the pilot line 35 of fig1 is energized the supply line 28 is disconnected from the feedline 28a thereby allowing the rotary position of the valves to be indicated by the pressure on line 28 and disconnecting the christmas tree valves until the pilot valve 34 is again deenergized . the valve sections 18 - 24 are individually removable units which can be stacked in an end - to - end manner as shown in fig2 with the shaft 17a of the actuator 17 connected to the shaft 18a of the uppermost valve section 18 , and with each of the other valve sections having a shaft connected to the shaft of the valve section positioned immediately above it . each of the valve sections includes a body 60 ( fig3 ) having a generally cylindrical chamber 61 , with a generally disc shaped rotor 62 mounted therein and a cover 63 connected to the body 60 by a plurality of cap screws 67 . the rotor 62 is rotatably mounted in the chamber 61 by the shaft 18a which is pressed into a bore 69 in the rotor ( fig3 ). the rotor is connected to the shaft and retained in any one of six positions ( fig6 ) thereon by a key 70 ( fig3 ) which resides partially in a slot 74 in the shaft , and partially in any one of the six slots 75 in the rotor 62 . one end of the shaft 18a includes a female slot 76 ( fig5 ), and the other shaft end includes a mating male projection 79 ( fig4 ). when the valve sections are stacked , the male projection 79 on the upper end of one shaft fits into the female slot 76 on the lower end of an adjacent valve section to interconnect the sections for unitary rotation of their shafts and rotors . a plurality of ball or other suitable bearings 80 , mounted between the rotor 62 , the body and the cover 63 , relieve strain at the connection between the shaft and the rotor . the valve section ( fig3 ) includes a right angle pressure port 81 and a vent port 82 drilled radially in the body , and a right angle outlet port 86 in the cover 63 . a pair of shear seals 87a , 87b are mounted in an enlarged portion 81a , 86a of the ports 81 , 86 to provide a fluid - tight seal between the ports and the rotor . the rotor 62 ( fig3 ) includes a plurality of holes 88a - 88f drilled in either a straight - line pattern or a right angle pattern . when any one of the right angle holes 88b , 88d and 88f are rotated adjacent the shear seals 87a , 87b the outlet port 86 is connected to the vent port 82 as shown in fig3 . when any one of the straight line holes 88a , 88c and 88e are rotated adjacent the shear seals the pressure port 81 is connected directly to the outlet port 86 . the drilling pattern of the rotor shown in fig6 is shown schematically in fig7 . a plurality of threaded mounting bores 92 ( fig4 ) and a plurality of dowel pin holes 93 facilitate mounting the valve sections to a manifold 94 ( fig2 ). a plurality of seals 98 provide sealing around the shaft 18a , and a plurality of seals 99 provide fluid tight connections between the pressure ports 81 , the vent port 82 , the outlet port 86 and the connections on the manifold 94 . a seal 101 provides a fluid tight connection between the body 60 and the cover 63 . in order to control a plurality of subsea valves in a desired sequence it may be necessary to provide a unique pattern of straight - through and right angle holes for the rotors of each of the valve sections . for example , to control the subsea tree 12 of fig1 the sequence of operation shown in the matrix of fig1 may be used . in the shut - in position , with the supply line 28 and the pilot line 35 unpressurized , the crossover valve 41 ( fig1 ) is open , as represented by the letter o ( fig1 ), and all the other valves are closed , as represented by the letter c . in the example shown in fig1 , the valves 42 , 43 are closed in steps 0 , 1 and 3 , and are open in steps 2 and 4 - 6 . this requires a rotor with the pattern of straight - through and angular holes shown in type no . 11 of fig8 b , and with the rotor starting in the f position in order to provide pressure to the valves 42 , 43 in steps 2 and 4 - 6 . this can be done by positioning and locking the rotor 62 on the shaft 18a ( fig3 ), with the right angle hole f at the shaft &# 39 ; s no . 1 position . a type 10 valve rotor ( fig8 b ) with the right angle hole e at the no . 1 shaft position , is required to control the valve 36 . proper positioning of the twelve rotor types of fig8 a and 8b with respect to the actuator drive shaft facilitates operation of the tree 12 in a six - step manner , and also all possible combinations of sequences of operations of the valves . other combinations , and / or specially drilled rotors , are not required when the twelve basic rotor types shown in fig8 a and 8b are used . in a system where a different number of steps of operation are required , a different number of holes can be spaced around the rotor , and the rotors rotated a different number of degrees as each step of the operation is carried out . the manifold 94 ( fig2 ) is mounted on a base plate 104 , and includes a plurality of internal passageways ( not shown ) which connect the ports 81 , 82 , 86 of the valve sections 18 - 23 to the various hydraulic lines , such as the supply line 28 , pilot line 35 and output lines 25a - 25f of fig1 and connect the pressure relief valves 51 - 56 to the valve section 24 . the valve sections 18 - 24 ( fig2 ) are secured to the manifold 94 by a plurality of cap screws 100 which are threaded into bores 92 ( fig4 ) in the valve bodies 60 . the actuator 17 is fixed to the upper end of the manifold 94 . a housing 103 , sealed to the base plate 104 by a seal 108 , provides fluid - tight protection to the actuator 17 and valve assembly . the actuator 17 ( fig9 - 12 ) includes a generally cylindrical tubular housing 105 having a pair of end plates 106 , 107 connected thereto by a plurality of cap screws 111 . the upper end plate 106 includes an axially extending fluid chamber 112 and a right angle port 113 extending between the upper end ( fig9 ) of the fluid chamber and a hydraulic line 109 . the lower end plate 107 includes an axial flange 117 and an axial bore 118 extending through the center of the end plate . a spring loaded detent 123 , having a ball - shaped portion 124 at the radial inner end thereof , resides in a radial hole 119 . the cylindrical actuator shaft 17a includes a lower portion 17c mounted in the axial bore 118 . a pair of roller bearing assemblies 125 , 126 , mounted in a pair of recesses 130 , 131 of the lower end plate 107 , rotatably mount the shaft to the lower end plate . the lower portion of the actuator shaft is threaded to a nut 132 . the shaft 17a includes an enlarged upper portion 17d having an axially extending bore 136 . an axially movable plunger 137 ( fig9 ) is located in the upper end of the housing 105 , and this plunger includes a piston 138 extending upwardly into the fluid chamber 112 of the upper end plate 106 , and a radial flange 137a extending to the wall of the housing 105 . the lower portion of the plunger 137 includes a sleeve 139 having a radially expanded portion 139a . a cylindrical pin 143 , having a pair of circumferentially extending grooves 144 , 145 , is mounted in a radial bore 149 in the expanded sleeve 139a . a spring detent 150 ( fig9 ), mounted in a radial bore 151 ( fig9 ), intersects the pin 143 and rests in one of the grooves 144 , 145 . a key 155 ( fig9 ), connected to the plunger 137 and riding in an axial slot 156 in the housing 105 , prevents rotational movement of the plunger 137 but allows vertical movement thereof relative to the housing . a coil spring 157 ( fig9 ), connected between the lower end plate 107 and the radial flange 137a , biases the plunger in an upward direction , so that in the absence of hydraulic pressure on the upper end of the piston 138 the plunger flange 137a moves upward to rest against the upper end plate 106 . a hollow cylindrical outer cam 161 ( fig9 ), having six angular slots 162a - 162e ( only five shown ) spaced about the upper portion thereof , is rotatably mounted around the upper portion 17c of the actuator shaft 17a by a plurality of bearings 160 . the outer cam also includes an additional angled slot which is not shown due to the problem of cluttering the drawings with too many details . a plate 163 , having an axial bore 164 , is mounted in an annular groove 168 ( fig9 ) in the shaft 17a and secured to the outer cam by a plurality of cap screws 169 . the lower portion of the diagrammatic drawing of fig1 has been stretched to better show other details , so the groove 168 in fig1 appears to be much wider than the same groove as shown in the sectional view of fig9 . a torsion spring 170 ( fig9 ) is connected between the shaft 17a and the outer cam 161 to bias a radial inward cam lug 174 ( fig1 , 11 ) toward a radial outward shaft lug 175 . the rotation of outer cam 161 about the shaft 17a is limited to an arc of less than 360 degrees by the lugs 174 , 175 . a cylindrical inner cam 176 ( fig9 , 12 ), having a plurality of angular slots 180a - 180f spaced about the upper portion ( fig1 ) thereof , is rotatably mounted in the axial bore 136 of the shaft 17a by a plurality of bearings 181 . the slots 180a - 180f ( fig1 ) are angled clockwise as they extend downward from the top of the inner cam 176 , in contrast to the slots 162a - 162e of the outer cam 161 which are angled counterclockwise as they extend downward . a torsion spring 182 ( fig9 ) is connected between the shaft 17a and the inner cam 176 to bias a radial outward cam lug 186 ( fig1 , 12 ) toward a radial inward shaft lug 187 . the actuator shaft 17a is normally retained in one of six rotary positions by the detent 123 ( fig9 ) extending into one of a plurality of shallow bores 188 in the lower portion 17c of the shaft 17a . as stated above , the number of rotary positions of the shaft and of the valve sections can be changed to a greater or lesser number as required . when the fluid chamber 112 ( fig9 ) is unpressurized the plunger 137 is biased to the upper end of the housing 105 with the pin 143 slightly above the upper end 161a of the outer cam 161 , and with one end of the pin 143 ( fig1 ) radially above the open end of one of the outer cam slots 162a - 162e and the other end of the pin 143 radially above the open end of one of the inner cam slots 180a - 180f . when the pin or cam follower 143 ( fig1 ) is positioned radially outward with the outward end 143a immediately above the open end of one of the outer cam slots 162a - 162e , the detent 150 is positioned in the groove 144 to retain the pin in the outer cam slot . when pressurized fluid is admitted through the port 113 to the fluid chamber 112 , the plunger 137 ( fig9 ) is moved axially downward forcing the pin 143 downward in the adjacent slot , with the pin moving along the radially extending line a ( fig1 ), as the plunger is prevented from rotating by the key 155 in the slot 156 ( fig9 ). for example , when the pin 143 moves down into the slot 162e , the pin 143 progresses downward along the line a until it reaches the lower end 162e &# 39 ; of the slot causing the outer cam 161 to rotate 60 degrees clockwise ( as viewed from above the actuator ). clockwise rotation of the cam 161 and the cam lug 174 causes the shaft lug 175 ( fig1 ) and the shaft 17a to rotate 60 degrees clockwise and for the detent 123 to move from bore 188a ( fig1 ) into the adjacent detent bore 188b . when pressure is released from the chamber 112 ( fig9 ) the plunger 137 is forced upward by the coil spring 157 , moving the pin 143 ( fig1 ) upward along the line a , in the slot 162e and rotating the outer cam 60 degrees counterclockwise . the shaft 17a is prevented from rotating by the detent 123 in the bore 188b and the cam lug 174 ( fig1 ) is rotated counter clockwise away from shaft lug 175 . the counterclockwise rotation of the outer cam 161 &# 34 ; winds &# 34 ; the torsion spring 182 ( fig9 ) to bias the outer cam lug 174 more strongly toward the shaft lug 175 . when the pin 143 moves out of the open end of the slot 162e the spring 170 causes the cam 161 to quickly rotate 60 degrees clockwise , with the upper end of the cam slot 162f stopping adjacent the pin 143 , as the outer cam lug 174 contacts the shaft lug 175 . this same sequence is repeated each time the plunger moves down and returns to the upper position , with the outer cam and shaft rotating 60 degrees clockwise as the pin 143 moves down to the bottom of a cam slot , the shaft is stopped and held in place by the detent 123 while the pin moves upward , rotates the outer cam counterclockwise and winds up the tension spring . when the pin 143 moves above the outer cam the cam snaps around clockwise with the pin adjacent another open end of another slot . this causes the shaft to rotate in increments between six distinct stopping points . when the pin 143 reaches the lower end of the last cam slot 162f the radial outer end of the pin is pressed against a bevelled surface 192 ( fig9 ) causing the pin 143 to move radially inward with the end 143b of the pin in the lower end 180a &# 39 ; of the cam slot 180a in the inner cam 176 . the detent 150 moves into the groove 145 of the pin to retain the pin in the slot 180a as the pin 143 and the plunger 137 move upward . each time the plunger moves downward the pin 143 moves downward in one of the inner cam slots 180a - 180f , with the pin moving along a line parallel to line a ( fig1 ) causing the inner cam 176 to rotate counterclockwise 60 degrees . the radial outward lug 186 on the inner cam 176 presses against the radial inward lug 187 on the shaft 17a ( fig1 ) causing the shaft to rotate counterclockwise and to move the detent 123 ( fig1 ) into an adjacent bore 188a - 188 f ( only part of which are shown ) on the shaft 17a . an upward movement of the plunger 137 and the pin 143 causes the inner cam 176 ( fig1 ) to rotate clockwise to move the lug 186 away from the lug 187 and &# 34 ; wind &# 34 ; the torsion spring 170 ( fig1 , 12 ) to bias the inner cam lug 186 more strongly toward the shaft lug 187 . when the pin 143 moves upward , out of the open end of one of the slots 180a - 180f , the torsion spring 182 causes the cam 176 to quickly rotate 60 degrees counterclockwise with the upper end of the next cam slot stopping adjacent the pin 143 , as the inner cam lug 186 contacts the shaft lug 187 . repeating the sequence causes the shaft 17a to rotate counterclockwise in increments between each of six distinct stopping points . when the pin 143 reaches the lower end of the last cam slot 180f ( fig9 ) the radial inner end 143b of the pin is pressed against a bevelled surface 193 causing the pin 143 to move radially outward into the lower end of the cam slot 162a and to again reverse the direction of rotation of the actuator shaft whenever the plunger 137 is moved downward . the shaft rotates through six positions in one direction , then automatically reverses the direction of rotation , and moves in reverse order through the same six positions . this process is automatically repeated as long as the plunger moves down and back up . the actuator 17 is connected to the stacked valve sections 18 - 24 by a spring loaded coupling means 194 ( fig2 , 9 ) comprising a generally cylindrical coupler 198 having an axial bore 199 extending downward through a portion of the coupler . a radial flange portion 200 includes an annular groove 201 ( fig3 ) with one end of a compression spring 205 mounted in the groove 201 and the other end of the spring connected to an annular groove 206 in the nut 132 ( fig9 ) to bias the coupler 198 toward the valve section 18 ( fig2 ). the coupler 198 is secured to the lower end 17c of the actuator shaft 17a ( fig9 ) by a set screw 207 mounted in a radial threaded hole 211 in the coupler and with the radial inner end of the set screw extending into an axial slot 212 in the shaft 17a . the slot 212 and set screw 207 allow the coupler 198 to travel axially along the shaft 17a through a distance determined by the vertical length of the slot 212 . the lower end of the coupler includes a shaft 213 ( fig3 ) having a radial slot 213a to receive the rectangular projection 79 on the upper end of the valve shaft 68 ( fig3 ) and to secure the shaft 18a of the upper valve section 18 to the shafts 213 and 17a . a slot 217 in the upper portion of the coupler 198 and a slot 218 in the lower end of the actuator shaft 17a ( fig9 ) contain a key 219 which couple rotational motion from the shaft 17a to the coupler 198 . the purpose of the coupling means 194 is to couple the actuator shaft 17a to the shaft 18a of the valve sections 18 - 24 during normal operation of the actuator 17 . if the actuator should fail , the coupler 198 ( fig2 ) can be pried upward from the valve section 18 by an appropriate tool until the shaft 213 ( fig3 ) of the coupler is disconnected from the shaft 18a of the upper valve section . a nut 223 ( fig2 ) extending from the lower end of the valve 24 and connected to the valve shaft 24a can be turned by an appropriate wrench to rotate the shaft 24a and temporarily operate the valves 18 - 24 . another embodiment 218 of the valve sections 18 - 24 ( fig2 ) is disclosed in fig1 with most of the elements functioning in a manner similar to the embodiment shown in fig3 - 6 . however , a rotor 262 and a shaft 268 are fixed together and the rotor cannot be removed and positioned in a different rotary position on the shaft as in the valve section of fig3 . the rotor 262 is supported by the shaft 268 which rotates in a bore 269 in the valve body 260 and in a bore 270 in a cover 263 . the upper end of the shaft 262 includes a square hole 270 and a square shaft end 271 on the other end . several of the valve sections 218 can be stacked with the square end 271 of one valve shaft fitting into the square hole 270 in the shaft of an adjacent valve section . these stacked valve sections 218 can be connected to a single actuator as shown in fig2 but individual sections cannot be removed or replaced without disconnecting the sections mounted below the section being removed . the present invention discloses apparatus for remote control of a relatively large number of hydraulically - operated subsea operators using only two hydraulic lines between a surface control center and a subsea device containing the operators . a valve actuator having a rotatable shaft or other output member which is movable to a plurality of distinct operating positions is coupled to a plurality of valves which are used to control the subsea operators . the valve actuator includes means for automatically reversing the direction of movement , so the valve is moved in a first direction through a sequence of distinct positions and then moved in a reverse direction through the same distinct positions . although the best mode contemplated for carrying out the present invention has been herein shown and described , it will be apparent that modification and variation may be made without departing from what is regarded to be the subject matter of the invention as defined in the appended claims .