The invention provides a hierarchical control method and device for a
residual gas analyzer and a medium, and the method comprises the steps: receiving a starting instruction sent by
machine station equipment, and starting an
ion source when the local vacuum degree is smaller than a first preset threshold value; when the total
voltage is smaller than a second preset threshold value, an
electron multiplier power supply is started; when the local vacuum degree and the total pressure are smaller than a third preset threshold value, a
mass spectrometer power supply is started; receiving a vacuum breaking instruction sent by the
station equipment, and disconnecting a
functional module power supply of the
residual gas analyzer; and receiving a power-off instruction sent by the
station equipment, and when the local vacuum degree and the total pressure are greater than or equal to a second preset threshold value,
cutting off the power supply of the
electron multiplier, and when the local vacuum degree and the total pressure are greater than or equal to a first preset threshold value, disconnecting the
ion source and the
mass spectrometer power supply in sequence. The problem of hardware damage caused by out-of-control vacuum degree of the
residual gas analyzer is solved through vacuum degree pre-judgment, graded protection and intelligent collaborative protection methods.