Vacuum System Migration
Contents
Migration from RaspberryPi to MOXA/Saba-taro
Procedures
- Stop Raspberry Pi DAQ (comment out CC10.py) on crontab@k1script1
controls@k1script1> crontab -e # * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py --daq --wait 15 > /tmp/crontest-cc10.log 2>&1 # * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py --daq --wait 45 >> /tmp/crontest-cc10.log 2>&1
- Shutdown Raspberry Pi
pi@raspberrypi> sudo /sbin/shutdown -h now
- Parallel work
- Hardware works
- Disconnect Raspberry Pi from CC-10
- Connect MOXA/Saba-taro to CC-10 and set up MOXA/Saba-taro in VAC network
- Software works
- Comment out related channels in "threshold" dict on VAC_MON guardian, and then reload it.
controls@k1ctr0> guardutils edit VAC_MON
Create and edit new RaspPi VAC channel list
controls@k1ctr0> cd /users/DAQ/EpicsDAQ/etc/CC10/ controls@k1ctr0> cp VAC.json VAC.json.(unique_name) controls@k1ctr0> emacs VAC.json.(unique_name) controls@k1ctr0> unlink VAC.json controls@k1ctr0> ln -s VAC.json.(unique_name) VAC.json
- Resume Raspberry Pi DAQ (uncomment CC10.py) on crontab@k1script1
controls@k1script1> crontab -e * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py --daq --wait 15 > /tmp/crontest-cc10.log 2>&1 * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py --daq --wait 45 >> /tmp/crontest-cc10.log 2>&1
- Create and edit new MOXA VAC channel list
controls@k1ctr0> cd /users/DAQ/EpicsDAQ/etc/CC10/ controls@k1ctr0> cp MOXA_VAC.json.txt MOXA_VAC.json.txt.(unique_name) controls@k1ctr0> emacs MOXA_VAC.json.txt.(unique_name) controls@k1ctr0> unlink MOXA_VAC.json.txt controls@k1ctr0> ln -s MOXA_VAC.json.txt.(unique_name) MOXA_VAC.json.txt
- Update IOC data base
controls@k1ctr0> cd /opt/rtcds/kamioka/k1/target/k1vac/db/ controls@k1ctr0> /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o db > example_vac_gauge.db.(unique_name) controls@k1ctr0> unlink example_vac_gauge.db controls@k1ctr0> ln -s example_vac_gauge.db.(unique_name) example_vac_gauge.db
- Restart vacuum IOC on supervisor@k1script1
controls@k1script1> sudo supervisorctl restart vac_ioc
- Comment out related channels in "threshold" dict on VAC_MON guardian, and then reload it.
- Hardware works
- Set up EPICS gateway from VAC network to DGS network.
- Add related channels in "GVs" list, uncomment related channels in "threshold" dict on VAC_MON guardian, and then reload it.
controls@k1ctr0> guardutils edit VAC_MON
- Update daqd configuration file
controls@k1ctr0> cd /opt/rtcds/kamioka/k1/chans/daq/ controls@k1ctr0> /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o ini > K1EDCU_VAC_GAUGE.ini.(unique_name) controls@k1ctr0> unlink K1EDCU_VAC_GAUGE.ini controls@k1ctr0> ln -s K1EDCU_VAC_GAUGE.ini.(unique_name) K1EDCU_VAC_GAUGE.ini
- Restart daqd from DAQ guardian
Add new channels with the MOXA/Saba-taro system
Procedures
- Parallel work
- Hardware work
- Connect MOXA/Saba-taro to CC-10 and set up MOXA/Saba-taro in VAC network.
- Set up EPICS gateway from VAC network to DGS network.
- Software work
- Create and edit new MOXA VAC channel list
controls@k1ctr0> cd /users/DAQ/EpicsDAQ/etc/CC10/ controls@k1ctr0> cp MOXA_VAC.json.txt MOXA_VAC.json.txt.(unique_name) controls@k1ctr0> emacs MOXA_VAC.json.txt.(unique_name) controls@k1ctr0> unlink MOXA_VAC.json.txt controls@k1ctr0> ln -s MOXA_VAC.json.txt.(unique_name) MOXA_VAC.json.txt
- Update IOC data base
controls@k1ctr0> cd /opt/rtcds/kamioka/k1/target/k1vac/db/ controls@k1ctr0> /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o db > example_vac_gauge.db.(unique_name) controls@k1ctr0> unlink example_vac_gauge.db controls@k1ctr0> ln -s example_vac_gauge.db.(unique_name) example_vac_gauge.db
- Restart vacuum IOC on supervisor@k1script1
controls@k1script1> sudo supervisorctl restart vac_ioc
- Create and edit new MOXA VAC channel list
- Hardware work
- Add related channels in "GVs" list and "threshold" dict on VAC_MON guardian, and then reload it.
controls@k1ctr0> guardutils edit VAC_MON
- Update daqd configuration file
controls@k1ctr0> cd /opt/rtcds/kamioka/k1/chans/daq/ controls@k1ctr0> /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o ini > K1EDCU_VAC_GAUGE.ini.(unique_name) controls@k1ctr0> unlink K1EDCU_VAC_GAUGE.ini controls@k1ctr0> ln -s K1EDCU_VAC_GAUGE.ini.(unique_name) K1EDCU_VAC_GAUGE.ini
- Restart daqd from DAQ guardian
- Update trend-monitor configuration file
controls@k1ctr0> cd /users/tyamamoto/longTermTrendMonitor/conf/ controls@k1ctr0> /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o conf > vac.lst.(unique_name) controls@k1ctr0> unlink vac.lst controls@k1ctr0> unlink vac.lst.(unique_name) vac.lst
Add new channels with the Raspberry Pi system
Procedures
- Parallel work
- Hardware work
- Connect Raspberry Pi to CC-10 and set up it.
- Software work
- Stop Raspberry Pi DAQ (comment out CC10.py) on crontab@k1script1
controls@k1script1> crontab -e # * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py --daq --wait 15 > /tmp/crontest-cc10.log 2>&1 # * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py --daq --wait 45 >> /tmp/crontest-cc10.log 2>&1
Create and edit new RaspPi VAC channel list
controls@k1ctr0> cd /users/DAQ/EpicsDAQ/etc/CC10/ controls@k1ctr0> cp VAC.json VAC.json.(unique_name) controls@k1ctr0> emacs VAC.json.(unique_name) controls@k1ctr0> unlink VAC.json controls@k1ctr0> ln -s VAC.json.(unique_name) VAC.json
- Resume Raspberry Pi DAQ (uncomment CC10.py) on crontab@k1script1
controls@k1script1> crontab -e * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py --daq --wait 15 > /tmp/crontest-cc10.log 2>&1 * * * * * /users/DAQ/EpicsDAQ/bin/CC10.py --daq --wait 45 >> /tmp/crontest-cc10.log 2>&1
- Update IOC data base
controls@k1ctr0> cd /opt/rtcds/kamioka/k1/target/k1vac/db/ controls@k1ctr0> /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o db > example_vac_gauge.db.(unique_name) controls@k1ctr0> unlink example_vac_gauge.db controls@k1ctr0> ln -s example_vac_gauge.db.(unique_name) example_vac_gauge.db
- Restart vacuum IOC on supervisor@k1script1
controls@k1script1> sudo supervisorctl restart vac_ioc
- Add related channels in "threshold" dict on VAC_MON guardian, and then reload it.
controls@k1ctr0> guardutils edit VAC_MON
- Stop Raspberry Pi DAQ (comment out CC10.py) on crontab@k1script1
- Hardware work
- Update daqd configuration file
controls@k1ctr0> cd /opt/rtcds/kamioka/k1/chans/daq/ controls@k1ctr0> /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o ini > K1EDCU_VAC_GAUGE.ini.(unique_name) controls@k1ctr0> unlink K1EDCU_VAC_GAUGE.ini controls@k1ctr0> ln -s K1EDCU_VAC_GAUGE.ini.(unique_name) K1EDCU_VAC_GAUGE.ini
- Restart daqd from DAQ guardian
- Update trend-monitor configuration file
controls@k1ctr0> cd /users/tyamamoto/longTermTrendMonitor/conf/ controls@k1ctr0> /users/DAQ/EpicsDAQ/share/scripts/generate_daq_conf.py -s cc10 -o conf > vac.lst.(unique_name) controls@k1ctr0> unlink vac.lst controls@k1ctr0> unlink vac.lst.(unique_name) vac.lst
