There is provided a method and apparatus for operating a sterilization chamber such that one version of Programmable Logic Controller (PLC) software is compatible with any number of hardware configurations of the sterilization chamber. The PLC software is divided into a core module for operations which are the same across all hardware configurations, and a template module for hardware specific operations. Configuration data, state data, and live data are segregated from each other.