The Pneumatics Control Module (PCM) is a CAN-based device that provides complete control over the compressor and up to 8 solenoids per module. The PCM is integrated into WPILib through a series of classes that make it simple to use.
The closed loop control of the Compressor and Pressure switch is handled by the Compressor
class (Java, C++), and the Solenoids are handled by the Solenoid
(Java, C++) and DoubleSolenoid
(Java, C++) classes.
An additional PCM module can be used where the modules corresponding solenoids are differentiated by the module number in the constructors of the Solenoid and Compressor classes.
.. todo:: Link Operating a Compressor below
For more information on controlling the compressor, see Operating a Compressor for Pneumatics.
For more information on controlling solenoids, see :ref:`Operating Pneumatic Cylinders <docs/software/actuators/pneumatics:Operating pneumatic cylinders>`.