pneumatic cylinders
To perform their function, pneumatic cylinders impart a force by converting the potential energy of compressed gas into kinetic energy. This is achieved by the compressed gas being able to expand, without external energy input, which itself occurs due to the pressure gradient established by the compressed gas being at a greater pressure than the atmospheric pressure. This air expansion forces a piston to move in the desired direction.
General
Once actuated, compressed air enters into the tube at one end of the piston and, hence, imparts force on the piston. Consequently, the piston becomes displaced (moved) by the compressed air expanding in an attempt to reach atmospheric pressure.
Specialized functions
Depending upon the design of the system, pneumatic cylinders can operate in a variety of ways. Examples include having the ability to perform multiple strokes without the need for intermediate intervention, to perform a full stroke with intermediate stopping points, to be adjusted so as to control the amount of extension and/or retraction of the piston rod once actuated.
Fail safe mechanisms
Pneumatic systems are often found in settings where even rare and brief system failure is unacceptable. In such situations locks can sometimes serve as a safety mechanism in case of loss of air supply (or its pressure falling) and, thus, remedy or abate any damage arising in such a situation.