A non-transitory computer-readable medium storing a diagnostic program for a fluid control apparatus including a fluid resistance provided in a flow path, an upstream pressure sensor that detects an upstream pressure of the fluid resistance, a downstream pressure sensor that detects a downstream pressure of the fluid resistance, a first flow rate calculation unit that calculates, based on the upstream pressure and the downstream pressure, a first flow rate flowing through the fluid resistance, a fluid control valve provided upstream of the upstream pressure sensor or downstream of the downstream pressure sensor, and a valve control unit that controls the fluid control valve based on the first flow rate, the diagnostic program diagnosing an abnormality of the fluid control valve and/or an abnormality of each of the pressure sensors in the fluid control apparatus when the fluid control valve is closed, the diagnostic program being executable by a computer to cause the computer to:
- calculate a sensor shift difference that is a difference between a sensor shift pressure change model and the upstream pressure detected by the upstream pressure sensor or the downstream pressure detected by the downstream pressure sensor, the sensor shift pressure change model indicating a pressure change due to a sensor shift of the upstream pressure sensor or the downstream pressure sensor;
- and
- diagnose, based on the sensor shift difference, whether each of the pressure sensors is abnormal.