From f1115c937b52a364eaf99dece0d88674a50a038a Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Mon, 29 Jan 2024 10:45:42 +0100 Subject: [PATCH] add cfg files from wip Change-Id: I71b647c269c10eac7241970377d6f812636d082f --- cfg/addons/camea-be-filter_cfg.py | 7 +- cfg/drums_cfg.py | 27 ++++++++ cfg/uniax_cfg.py | 1 + cfg/vf_cfg.py | 103 ++++++++++++++++++++++++++++++ 4 files changed, 134 insertions(+), 4 deletions(-) create mode 100644 cfg/drums_cfg.py create mode 100644 cfg/vf_cfg.py diff --git a/cfg/addons/camea-be-filter_cfg.py b/cfg/addons/camea-be-filter_cfg.py index 84f491c..73a2ace 100644 --- a/cfg/addons/camea-be-filter_cfg.py +++ b/cfg/addons/camea-be-filter_cfg.py @@ -1,18 +1,17 @@ Node('cfg/sea/camea-be-filter.cfg', 'Camea Be-Filter', - interface='5000', - name='camea-be-filter', ) Mod('sea_addons', - 'secop_psi.sea.SeaClient', + 'frappy_psi.sea.SeaClient', 'addons sea connection for camea-be-filter.addon', config='camea-be-filter.addon', service='addons', ) Mod('t_be_filter', - 'secop_psi.sea.SeaReadable', + 'frappy_psi.sea.SeaReadable', + 'Be filter T', io='sea_addons', sea_object='t_be_filter', ) diff --git a/cfg/drums_cfg.py b/cfg/drums_cfg.py new file mode 100644 index 0000000..e05f4ac --- /dev/null +++ b/cfg/drums_cfg.py @@ -0,0 +1,27 @@ +Node('relais.psi.ch', + 'relais test', + 'tcp://5000', +) + +Mod('rl', + 'frappy_psi.ionopimax.DigitalOutput', + 'left relais', + addr = 'o1', + value = 0, # start with relais off + ) + +Mod('rr', + 'frappy_psi.ionopimax.DigitalOutput', + 'right relais', + addr = 'o2', + value = 0, # start with relais off + ) + +Mod('drummer', + 'frappy_psi.drums.Drums', + 'drummer', + target = 150, + pattern='l2L2rl1R1L2', + left='rl', + right='rr', +) diff --git a/cfg/uniax_cfg.py b/cfg/uniax_cfg.py index 0b2a2a4..fd7d849 100644 --- a/cfg/uniax_cfg.py +++ b/cfg/uniax_cfg.py @@ -50,6 +50,7 @@ Mod('res', Mod('T', 'frappy_psi.softcal.Sensor', + 'sample T', rawsensor='res', calib='X132254', value=Param( diff --git a/cfg/vf_cfg.py b/cfg/vf_cfg.py new file mode 100644 index 0000000..ad7e44b --- /dev/null +++ b/cfg/vf_cfg.py @@ -0,0 +1,103 @@ +Node('vf.psi.ch', + 'small vacuum furnace', + 'tcp://5000', +) + +Mod('htr_io', + 'frappy_psi.bkpower.IO', + 'powersupply communicator', + uri = 'serial:///dev/ttyUSBupper', + ) + +Mod('htr', + 'frappy_psi.bkpower.Power', + 'heater power', + io= 'htr_io', + ) + +Mod('out', + 'frappy_psi.bkpower.Output', + 'heater output', + io = 'htr_io', + maxvolt = 50, + maxcurrent = 2, + ) + + +Mod('relais', + 'frappy_psi.ionopimax.DigitalOutput', + 'relais for power output', + addr = 'o2', + ) + +Mod('T_main', + 'frappy_psi.ionopimax.CurrentInput', + 'sample temperature', + addr = 'ai4', + valuerange = (0, 1372), + value = Param(unit='degC'), + + ) + + +Mod('T_extra', + 'frappy_psi.ionopimax.CurrentInput', + 'extra temperature', + addr = 'ai3', + valuerange = (0, 1372), + value = Param(unit='degC'), + + ) + +Mod('T_htr', + 'frappy_psi.ionopimax.CurrentInput', + 'heater temperature', + addr = 'ai2', + valuerange = (0, 1372), + value = Param(unit='degC'), + ) + +Mod('T_wall', + 'frappy_psi.ionopimax.VoltageInput', + 'furnace wall temperature', + addr = 'av2', + rawrange = (0, 1.5), + valuerange = (0, 150), + value = Param(unit='degC'), + ) + +Mod('T', + 'frappy_psi.picontrol.PI', + 'controlled Temperature', + input = 'T_htr', + output = 'out', + relais = 'relais', + p = 2, + i = 0.01, + ) + +Mod('interlocks', + 'frappy_psi.furnace.Interlocks', + 'interlock parameters', + input = 'T_htr', + wall_T = 'T_wall', + vacuum = 'p', + relais = 'relais', + control = 'T', + wall_limit = 50, + vacuum_limit = 0.1, + ) + +Mod('p_io', + 'frappy_psi.pfeiffer.IO', + 'pressure io', + uri='serial:///dev/ttyUSBlower', + ) + +Mod('p', + 'frappy_psi.pfeiffer.Pressure', + 'pressure reading', + io = 'p_io', + ) + +