Adapt sim_* cfg's to current syntax
+ make 'limit' usable as type in cfg files + minor fixes Change-Id: Ib94b2645c7a0d978d64d4c86c4415d4b5b0d485f Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/21485 Tested-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de> Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
[node stressihtf2]
|
||||
[node stressihtf2_v2]
|
||||
description = [sim] Stressihtf2 box of MLZ Sample environment group
|
||||
.
|
||||
Controls an High Temperature Furnace with an Eurotherm and an PLC controlling some valves and checking cooling water.
|
||||
|
||||
meaning={'T_regulation':{'T':100}, 'T_sample':{'T_sample':100}}
|
||||
|
||||
[interface tcp]
|
||||
type=tcp
|
||||
@ -13,40 +12,38 @@ bindport=10767
|
||||
[module T]
|
||||
class=secop.simulation.SimDrivable
|
||||
.description=Main temperature control node of Stressihtf2.
|
||||
value.unit='degC'
|
||||
value.datatype={"type":"double", "min":0, "unit":"degC"}
|
||||
value.default=20
|
||||
target.datatype=["double", 0, 2000]
|
||||
target.datatype={"type":"double", "min":0, "max":2000, "unit":"degC"}
|
||||
target.default=20
|
||||
target.unit='degC'
|
||||
.extra_params=ramp,regulationmode,abslimits,userlimits
|
||||
ramp.datatype=["double",0,600]
|
||||
ramp.datatype={"type":"double", "min":0, "max":600, "unit":"K/min"}
|
||||
ramp.description=target ramping speed in K/min.
|
||||
ramp.default=60
|
||||
ramp.unit=K/min
|
||||
abslimits.datatype=["tuple",[["double"],["double"]]]
|
||||
abslimits.datatype={"type":"limit", "members":{"type":"double", "min":0, "max":2000, "unit":"degC"}}
|
||||
abslimits.default=[0,2000]
|
||||
abslimits.description=currently active absolute limits for the setpoint.
|
||||
abslimits.unit='degC'
|
||||
abslimits.readonly=True
|
||||
userlimits.datatype=["tuple",[["double"],["double"]]]
|
||||
abslimits.description=currently active absolute limits for the setpoint. depend on the regulationmode parameter (both/stick->0..600, tube->0..300K).
|
||||
userlimits.datatype={"type":"limit", "members":{"type":"double", "min":0, "max":2000, "unit":"degC"}}
|
||||
userlimits.default=[0,300]
|
||||
userlimits.description=current user set limits for the setpoint. must be inside or coincide with abslimits.
|
||||
userlimits.unit='degC'
|
||||
userlimits.description=current user set limits for the setpoint. must be inside abslimits.
|
||||
userlimits.readonly=False
|
||||
.meaning=['temperature_regulation', 10]
|
||||
|
||||
[module T_sample]
|
||||
class=secop.simulation.SimReadable
|
||||
.description=(optional) Sample temperature sensor.
|
||||
.visibility=expert
|
||||
value.default=300
|
||||
value.unit='degC'
|
||||
value.datatype={"type":"double", "min":0, "unit":"degC"}
|
||||
.meaning=["temperature", 9]
|
||||
|
||||
[module N2]
|
||||
class=secop.simulation.SimWritable
|
||||
.description=Switches the N2 gas inlet on or off.
|
||||
.visibility=expert
|
||||
value.default='off'
|
||||
value.datatype=["enum", {'off':0,'on':1}]
|
||||
target.datatype=["enum", {'off':0,'on':1}]
|
||||
value.datatype={"type":"enum", "members":{'off':0,'on':1}}
|
||||
target.datatype={"type":"enum", "members":{'off':0,'on':1}}
|
||||
target.default='off'
|
||||
|
||||
[module He]
|
||||
@ -54,8 +51,8 @@ class=secop.simulation.SimWritable
|
||||
.description=Switches the He gas inlet on or off.
|
||||
.visibility=expert
|
||||
value.default='off'
|
||||
value.datatype=["enum", {'off':0,'on':1}]
|
||||
target.datatype=["enum", {'off':0,'on':1}]
|
||||
value.datatype={"type":"enum", "members":{'off':0,'on':1}}
|
||||
target.datatype={"type":"enum", "members":{'off':0,'on':1}}
|
||||
target.default='off'
|
||||
|
||||
[module lamps]
|
||||
@ -63,8 +60,8 @@ class=secop.simulation.SimWritable
|
||||
.description=Switches the heating lamps on or off.
|
||||
.visibility=expert
|
||||
value.default='on'
|
||||
value.datatype=["enum", {'off':0,'on':1}]
|
||||
target.datatype=["enum", {'off':0,'on':1}]
|
||||
value.datatype={"type":"enum", "members":{'off':0,'on':1}}
|
||||
target.datatype={"type":"enum", "members":{'off':0,'on':1}}
|
||||
target.default='on'
|
||||
|
||||
[module water_ok]
|
||||
@ -72,5 +69,5 @@ class=secop.simulation.SimReadable
|
||||
.description=Readout of the cooling water state.
|
||||
.visibility=expert
|
||||
value.default='ok'
|
||||
value.datatype=["enum", {'failed':0,'ok':1}]
|
||||
value.datatype={"type":"enum", "members":{'failed':0,'ok':1}}
|
||||
|
||||
|
Reference in New Issue
Block a user