82 lines
2.6 KiB
Python
82 lines
2.6 KiB
Python
Node('jtccr.psi.ch',
|
|
'CCR with JT-stage',
|
|
secondary = ['ws://8051'],
|
|
)
|
|
|
|
sea_cfg = 'secop.config'
|
|
|
|
IO('io_p1', 'jtccr-ts:3001', visibility='expert')
|
|
IO('io_p2', 'jtccr-ts:3002', visibility='expert')
|
|
IO('io_p3', 'jtccr-ts:3003', visibility='expert')
|
|
IO('io_p4', 'jtccr-ts:3004', visibility='expert')
|
|
IO('io_preg', 'jtccr-ts:3005', visibility='expert')
|
|
IO('io_ccu', 'jtccr-ts:3006', visibility='expert')
|
|
IO('io_pwsw', 'jtccr-ts:3007', visibility='expert')
|
|
IO('io_lsc', 'jtccr-ls:7777', visibility='expert')
|
|
|
|
Mod('ls', 'frappy_psi.lakeshore336.Device',
|
|
'lakeshore in cc rack', curve_handling=True, io='io_lsc', visibility='expert')
|
|
|
|
Mod('T_main', 'frappy_psi.lakeshore336.Loop', 'T sensor Ts',
|
|
channel='A', calcurve='X63710', device='ls', io='io_lsc', output_module='htr',
|
|
meaning = ['temperature', 20],)
|
|
|
|
Mod('T_ccr', 'frappy_psi.lakeshore336.Sensor', 'T of cold finger',
|
|
channel='B', calcurve='X67737', device='ls', io='io_lsc')
|
|
|
|
Mod('htr', 'frappy_psi.lakeshore336.MainOutput', 'heater output',
|
|
io='io_lsc', max_heater='5W', visibility='expert', resistance=100) # in fact 500, but with parallel R about 100
|
|
|
|
Mod('jtcontrol',
|
|
'frappy_psi.jtccr.JTCCR',
|
|
'jt ccr control',
|
|
compressor = 'jtcompressor',
|
|
ccrcompressor = 'ccrcompressor',
|
|
preg = 'preg',
|
|
ccr_temp = 'T_main',
|
|
)
|
|
|
|
for i in range(1,11):
|
|
Mod(f'v{i}', 'frappy_psi.ccu4.Valve', f'valve V{i}', io='io_ccu',
|
|
channel=i, visibility='expert')
|
|
|
|
Mod('MV9',
|
|
'frappy_psi.manual_valves.ManualValve',
|
|
'Manual Valve MV9',
|
|
visibility='expert',
|
|
)
|
|
|
|
Mod('MV1',
|
|
'frappy_psi.manual_valves.ManualValve',
|
|
'Manual Valve MV1',
|
|
visibility='expert',
|
|
)
|
|
|
|
#Mod('vm',
|
|
# 'frappy_psi.ccu4.MotorValve', 'motor valve VM',
|
|
# io='io_ccu',
|
|
#)
|
|
|
|
Mod('preg',
|
|
'frappy_psi.bronkhorst.Controller', 'pressure regulator',
|
|
io='io_preg',
|
|
value = Param(unit='bar'),
|
|
scale = 18,
|
|
)
|
|
|
|
punit = 'mbar'
|
|
for i in range(1,5):
|
|
Mod(f'p{i}', 'frappy_psi.dtmpressure.Pressure', '', io=f'io_p{i}', value = Param(unit=punit))
|
|
punit = 'bar'
|
|
|
|
Mod('jtcompressor', 'frappy_psi.epc8210.Switch', 'jt compressor switch', io='io_pwsw',
|
|
addr=1, visibility='expert')
|
|
Mod('jtpump', 'frappy_psi.epc8210.Switch', 'jt pump switch', io='io_pwsw',
|
|
addr=2, visibility='expert')
|
|
Mod('ccrcompressor', 'frappy_psi.epc8210.Switch', 'ccr compressor switch', io='io_pwsw',
|
|
addr=3, visibility='expert')
|
|
Mod('roughing', 'frappy_psi.epc8210.Switch', 'roughing pump switch', io='io_pwsw',
|
|
addr=4, visibility='expert')
|
|
Mod('turbo', 'frappy_psi.epc8210.Switch', 'turbo pump switch', io='io_pwsw',
|
|
addr=5, visibility='expert')
|