Don't.
Please, don't.
Are you going to automate reading the tanks test status too?
Way, way too dangerous.
Ok, little more information about the compressor:
The compressor is connected to an air fill ramp that got two outputs, 232bar and a 300bar.
The 232 side got a pressure regulator that makes sure that you never overfill (starts to spew out air)
The 300 bar side is monitored with the compressors guard which stops it at 320bar.
So there should not be any real danger of overfilling (as long as you place the 200 tanks on
the 200 bar side!).
I want is to stop the compressor when it reaches these pressures, cut the power (especially when
filling 200 bar tanks, the compressor is still pumping and the pressure regulator is letting go of
the pressure).
Cheers, Fredrik