Pnuematic code

I need help trying to make my robot stop at 120 psi but I don’t understand how to code it.

First, is everything hooked up through the PCM? If the pressure switch is plumbed correctly and wired to the inputs on the PCM, and the compressor is being powered from the PCM, then you’re done! The PCM will automatically take care of shutting the compressor off, no programming needed.

Stopping the compressor at 120 psi has nothing to do with programming. The PCM should take care of it automatically as long as the pressure switch is installed correctly.

(See R94 in the 2018 manual)

thank you

You do need to at least declare one pneumatic solenoid in your code for the compressor switching to work, and upload that code to the RIO, and enable the robot. Once you do that, the compressor monitoring is automatically enabled.