Epics Deployment at Fermilab

P. Hanlet,M. Gonzalez,J. Diamond,K.S. Martin
2024-08-01
Abstract:Fermilab has traditionally not been an EPICS house; as such expertise in EPICS is limited and scattered. PIP-II will be using EPICS for its control system. When in operation, it will need to interface with the existing, modernized (see ACORN) legacy control system. Treating EPICS controls at Fermilab as a green field, we have developed and deployed a software pipeline which addresses these needs and presents to developers a tested and robust software framework, including template IOCs from which new developers can quickly deploy new front ends, aka IOCs. In this presentation, motivation for this work, implementation of a continuous integration/continuous deployment pipeline, testing, template IOCs, and the deployment of user services/applications will be discussed. This new infrastructure of IOCs and services is being developed and used in the PIP-II cryomodule teststand; our experiences and lessons learned will be also be discussed.
Accelerator Physics
What problem does this paper attempt to address?
The paper mainly addresses the following issues: 1. **Deployment and Integration of the EPICS Control System**: Fermilab has not widely used EPICS in its traditional control systems, so how to sustainably deploy EPICS with limited expert resources becomes a key issue. To support the new superconducting RF linear accelerator (PIP-II), the research team developed and deployed a software pipeline aimed at providing developers with a tested and stable software framework, including template Input/Output Controllers (IOCs). 2. **Interface Between New and Old Systems**: PIP-II needs to interact with the existing modernized control system (updated through the ACORN project). The research team's goal is to create a standardized code and hardware platform to simplify the development work for non-expert developers and ensure that the new system can seamlessly interface with existing facilities. 3. **Continuous Integration and Continuous Deployment (CI/CD)**: To achieve sustainability goals, the research team adopted a CI/CD pipeline to automate the build, test, deploy, and monitor processes. This not only improves efficiency but also ensures the quality and security of the code. 4. **Development of Template IOCs**: To address issues with different hardware platforms, the team developed a series of template IOCs that include all the common functionalities required by IOCs, such as heartbeat detection, statistics collection, etc. This helps new developers quickly get started and customize their own IOCs. 5. **Service Evaluation and Integration**: In addition to IOCs, the paper also discusses the evaluation and integration of various EPICS services, including operator Human-Machine Interface (HMI), archiving devices, alarm handling, etc. These services aim to improve the reliability and usability of the entire control system. 6. **Practical Application and Testing**: Through practical application on the PIP-II Integration Test Stand (PIP2IT), the research team conducted comprehensive testing of the developed system and gained many valuable lessons. Future plans include further optimizing these systems to ensure their stability and reliability during the official operation of PIP-II. In summary, this paper aims to ensure the efficient and reliable implementation of EPICS in Fermilab's new projects through a series of technical means and management measures.