Sie sind auf Seite 1von 2

DEVELOPMENT OF EPICS ENABLED ALARM ANNINCIATION SYSTEM

Anindya Roy†, Partha Pratim Nandy, R. B. Bhole, Sarbajit Pal, Amitava Roy
Variable Energy Cyclotron Centre, Kolkata, India

Abstract remote logging of alarms. Hence an alarm annunciation


Alarm annunciation system plays a crucial role in the system with embedded EPICS is designed and developed
control systems of large-scale experiments like accelera- in VECC for this purpose.
tors, telescopes, superconducting tokamak, etc. It pro-
vides discrete state information of important machine HARDWARE DESIGN
parameters to the operators as audio-visual alarms. The A modular architecture is adopted for designing the
time-stamped log of these alarms is a useful tool for fault hardware. The annunciation system consists of one master
analysis in large machines during commissioning and module and upto six pluggable slave modules. The master
day-to-day operation. In VECC, an Alarm annunciation module communicates over SPI protocol with slave mod-
system with embedded EPICS is developed for logging ules sitting on a common backplane. Each slave module is
the time-stamped alarms into control system data archiv- designed to acquire 16 alarm signals. Hence, the system is
er. The system is designed as an ARM based master mod- capable to handle maximum 96 alarms. The novelty of the
ule with embedded EPICS IOC connected with multiple design is the use of hardware interrupts for exchanging
microcontroller based slave modules. The master and alarm data between master and slave modules. This archi-
slave modules are connected over SPI bus. The field tecture is adopted to minimise the latency between time of
alarm signals are connected with slave modules for gene- occurrence and logging of alarm states. The hardware
rating audio-visual alarms. The communication between architecture of the system is shown in Figure 1.
master and slaves are driven by the events generated by
hardware interrupts e.g. field alarm signal, acknowledge Table 1: Specifications of ARM based SBC
button, reset button. The embedded EPICS IOC is de- CPU 1 GHz Quad core ARM CPU
signed for event driven acquisition of alarm states e.g. OS Debian Linux, Kernel 4.1.15
FAULT, ACK, OK and RESET from slave modules and to Memory
broadcast the same to the channel access clients e.g. oper- DDR-RAM 2 GB
ator interface, data archiver etc. The detail design and eMMC Flash 4 GB
functional testing of the system is described in this paper. Micro SD Card 4 GB
Peripherals
INTRODUCTION USB 2.0 Host (4) / Device (1)
Ethernet 10 / 100 Mbit (1)
There are two cyclotrons in VECC i.e. Room Tempera- Serial SPI and I2C interface
ture Cyclotron (K=130) (RTC) and Superconducting DIO 24 configurable as interrupts
Cyclotron (K=500) (SCC). RTC is being operated round- Power 600 mA @ 5 VDC
the-clock for delivering Alpha and Proton beams at pre-
sent. SCC is under commissioning. The master module is developed using ARMv7-A based
The supervisory control systems of these cyclotrons are Single Board Computer (SBC). The SBC is based on 1
developed using EPICS [1], a standard open-source dual Ghz Quad core NXP i.MX6 Cortex-A9 ARM CPU. Its
layer software tool for designing distributed control sys- detailed specifications are listed in Table 1. The SBC is
tem. The in-house developed control data archiver [2] is configured to boot SD card based full featured Debian
used for logging time stamped data of various control Linux (version Jessie Arm, kernel version 4.1.15) distri-
parameters. An E-Log system is also developed in-house bution including a complete GNU C/C++ embedded de-
for time-stamped logging of operators’ messages into the velopment environment. There are six dedicated hardware
data archiver. A NTP server is installed to synchronize all interrupt inputs assigned to six slave modules. Acknowl-
control nodes and data archiver. In this present setup, it is edge and reset buttons of the annunciation system are also
now possible to extract time correlations among various interfaced with master module through hardware interrupt
events while operating the machines. This information is inputs.
a useful tool for fault analysis in a complex machine like The slave module is developed using 8-bit AVR micro-
cyclotron. There is also an objective to implement an controller. Each module has sixteen discrete inputs to be
Auto inference engine to enhance the fault analysis capa- interfaced with potential free contacts. On change in in-
bility of the system. However, the above system requires put, the slave module interrupts the master and communi-
logging of time stamped sequence of machine faults i.e. cates alarm states over SPI to master module. There are
audio-visual alarms in addition to above logs. The alarm sixteen discrete type latched outputs with buffer for driv-
annunciation systems of the cyclotrons are third party ing the alarm windows. A jumper based selection is pro-
systems. These systems are not equipped for event based vided on the slave module for assigning to a particular
___________________________________________ master interrupt.
† r_ani@vecc.gov.in
Figure 1: Hardware configuration of the alarm annunciation system
ducted to measure the processing delay of the annuncia-
SOFTWARE tion system. For this purpose, alarm sequences are simu-
The embedded EPICS Soft-IOC running on master lated simultaneously among the channels of same slave
module is designed to run dedicated thread for handling module and different slave modules. The time stamped
individual interrupt. On interrupt, EPICS IOC callback data is logged into file using EPICS camonitor utility.
task is used to process device support routine for acquir-
ing data from slave. Subsequently, the alarm states of RESULT
individual channels are updated into dedicated EPICS Initially the slave module is designed to send the alarm
process variables using forward link feature. EPICS status of individual channel using 16 bytes over SPI. The
Mutex is used to overcome SPI bus contention due to response time of the system is measured 200 msec for
parallel processing of interrupts. The interrupt based broadcasting the alarms for logging. Consequent investi-
asynchronous processing of records ensures logging of gation reveals that the processing time of interrupt from
alarm state into data archiver with minimum delay. the slave is measured to around 1 msec on master module.
The firmware of slave module is designed to poll its in- Hence, the communication of status bytes over SPI is
puts and generate interrupt to master on any change in responsible for the delay. So the firmware of slave is
state. Individual input can acquire either faulty state or modified to send 4 bytes to master using 2 bits for indi-
healthy state. The output of the module will have either of vidual channel. The response time of the system is re-
four states i.e. fault, acknowledged, reset and healthy duced to 50 msec which is acceptable for cyclotron con-
depending on the condition of input signal and operator trol system.
action. The module is configured to operate in Ringback
sequence as per ISA S18.1 1979(R2004) standard. CONCLUSION
The system is developed and tested in lab, however is
FUNCTIONAL TESTNG not deployed yet. The logging of time-stamped sequence
A dedicated test setup is developed to evaluate the per- of alarms along with operators’ messages and other pa-
formance of the annunciation system. The setup is com- rameters will be a useful tool for regular operation and
prised of a microcontroller based fault simulator and a PC commissioning of the cyclotrons in VECC. The system
for logging time-stamped alarm states using EPICS chan- will also provide necessary information for implementing
nel access interface. The fault simulator is designed to Auto inference engine for fault finding in future.
simulate sixteen field signals, acknowledge and reset
actions. It is programmed to introduce predefined delays REFERENCES
among the channels during testing. [1] EPICS, http://www.aps.anl.gov/epics/
The functional testing is conducted by simulating mul-
tiple faults catering to several slave modules. The system [2] Anindya Roy et.al., “Implementation of EPICS based va-
cuum control system for variable energy cyclotron centre,
is put on for continuous seventy two hours to detect any
Kolkata”, Rev. Sci. Instrum, 86, 033306(2015). https: // doi
degradation of hardware. A performance test is also con- .org / 10.1063 / 1.4915318.

Das könnte Ihnen auch gefallen