Patent ID: 8256518

Claim:
A system for use in a well, comprising: a downhole well system comprising an inline barrier valve having a valve member movable between closed and open flow positions, the downhole well system further comprising a fail-as-is mechanism coupled with the valve member and shiftable upon receiving a predetermined hydraulic input, the fail-as-is mechanism being limited to moving the valve member only on specific shifts in a series of shifts of the fail-as-is mechanism; wherein: the fail-as-is mechanism comprises: a mandrel coupled with the valve member; and a piston to move the mandrel, the piston being decoupled from the mandrel such that every transition of a series of similar transitions of the piston does not move the mandrel; the piston comprises a plurality of J-slots and the mandrel comprises a plurality of keys sized to slide along the J-slots, the plurality of J-slots having a short J-slot which allows the piston to move the mandrel and a long J-slot which prevents movement of the mandrel by the piston.