Slow control

    Version as of 11:19, 19 Apr 2025

    to this version.

    Return to Version archive.

    View current version

    TOC 

    Other pages:


    New ISTTOK slow control system

    Intro

    The new ISTTOK slow control system is designed to replace the former vaccum/power/slow timing system based is the EDWARDS controller.

     

    The new system uses the EPICS framework and the Control System Studio, below there is a detailed description of the used software. In the next figure is depicted the system structure.

    systemdraw.png

    At the present all the software are installed in one IOC server with the exception of the Control System Studio that is also used for the GUI management.

    Team and responsabilities

    • Horácio Fernandes (ISTTOK Leader)
    • Bernardo Carvalho (Project Leader)
    • Paulo Duarte (ISTTOK Session Leader, State Machine develpment)
    • Tiago Pereira (dsPIC development, RS232 protocol/ Sensor Interface/ Wiring)
    • Paulo F. Carvalho ( Epics Applications)
    • Bruno Santos (Epics)
    • Gonçalo Quintal (Epics, CSS Gui Panels)

    System description

    The slow system control consists of:

    Gas injection system

    Vacuum System

    - Pfeiffer pressure gauges

    The dsPic acquires the pressure value from the Pfeiffer gauge, with the Pfeiffer protocol working on RS485, and sends the pressure to a high level PC application.

    Liquid Metal Limiter

    - Ds18s20 temperature sensors

    - Inp. Superior

    - Dep. Inferior

    - Bypass

    - Troço Inferior

    - Dep. Superior

    - Colector

    - 4 Vaves

    The dsPic acquires the temperature and send it back to a high level PC application. It also control four valves by logic gates with two states, this information is sent back to the PC, there are two commads to control the valve state from the high level application. 

    Temperature System

    - Thermocouple Sensor
     
    The dsPic uses the internal ADC to read the voltage signal from the thermocouple.

    State machine description

    Hardware Platform

    Supervisor/Central Node

    One PC Controller

    • Intel(R) Atom(TM) CPU  330   @ 1.60GHz, Dual Core, 1 Gbyte RAM, 4 RAM
    • 4 Serial Ports
    • IP addr:192.168.1.152 ( ISTTOK private network)
    • Scientific Linux CERN 6 (SLC6) with MRG Realtime extensions
    • Linux kernel 3.2.33-rt50.66.el6rt.x86_64
    • NTP time conected to  IPFN Gps NTP/PPS server IP:10.136.236.255
    Local Control

    One or more dsPic board running an embedded firmware
    -

    Software Platform

    All software stored in IPFN SVN server: http://metis.ipfn.ist.utl.pt/svn/cdaq/ISTTOK/

    Central Node

    EPICS v. 3.14.12.3 including modules:

    CS-STUDIO

    Apache Tomcat

    Installed Scripts

    • epicsenv.sh                      directory: /etc/profile.d/epicsenv.sh
    • epicsenv                          directory: /usr/bin/epicsenv
    • epicsEnv                          directory: /etc/opt/epics/env.d/epicsEnv
    • epicsCaRepeater              directory: /etc/init.c/epicsCaRepeater
    • service-startup                 directory: /opt/epics/bin/services/service-startup
    • epicsIocLogServer            directory: /etc/init.c/epicsIocLogServer
    • epicsenv                           directory: /usr/bin/epicsenv
    • ioc-isttok                          directory: /etc/init.d/ioc-isttok
    • isttok-archive-engine       directory: /etc/init.d/isttok-archive-engine
    • isttok-css-alarm-server     directory: /etc/init.d/isttok-css-alarm-server
    Local Control

    Protocol for communication between dspics and PC in ISTTOK slow control

    • all bytes are readable ASCII
    • all messages all terminated with two bytes: \r\n (13 10)
    • messages have variable length
    • framing character for fields inside message is space (32)
    • individual fields inside each message have variable length
    • the last three characters before the terminator are the ASCII representation of the checksum of all other bytes, excluding the terminator
    Examples:                                                                                            
    PIC -> PC

    VL01_1 VL02_1 VL03_0 TE01_150.9 TE02_80.1 UP_7200 PR01_1.3e-4 CKS\r\n

    PC -> PIC

    VL01_1 CKS\r\n

    Table of words:
        VL   - Valve
        TE   - Temperature
        UP   - Uptime  
        PRD - Wave Periode  
        PR   - Pressure

    Archive System

    Main folder: /home/bernardo/css/

     

    References

    "EPICS IOC module development and implementation for the ISTTOK machine subsystem operation and control"
    Paulo Carvalho, André Duarte, Tiago Pereira, Bernardo Carvalho, Jorge Sousa, Horácio Fernandes, Carlos Correia, Bruno Gonçalves, Carlos Varandas

    Fusion Engineering and Design 86 (2011) 1085–1090

    Powered by MindTouch Core