Pneumatics Control module programming


I am looking for an example to program this years PCM Do you treat them as doubesolenoids like in prior years and how do you determine the channel this year. The roborio says the pcm id is 0. need to address solenoid 1 and 2 as double stroke


The code for interacting with solenoids should be exactly the same as prior years except the channel numbers start from 0. Another thing to note is that you do not need to create a compressor object (unless you want manual control), as the PCM automatically starts (and stops based on the pressure switch) the compressor when a solenoid is created.

The only time you need to worry about the PCM id is if you have multiple PCMs.

I think you’ll find your answer in the software documentation here…