Generated modular mercury drivers

This commit is contained in:
Douglas Clowes
2014-05-14 17:28:58 +10:00
parent abafa6a2e6
commit cf8a08ea7e
11 changed files with 2305 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
# vim: ts=8 sts=2 sw=2 expandtab autoindent smartindent nocindent
driver mercury_temp = {
vendor = oxford; device = mercury; protocol = std;
class = environment; simulation_group = environment_simulation;
add_args = '{id 99} {tol 1}'
make_args = 'id tol'
group Loop4 = {
priv = user; type = float; readable = 5;
var sensor = { readable = 1; read_command = 'READ:DEV:DB8.T1:TEMP:SIG:TEMP'; permlink = 'T.S04'; }
var nick = { type=text; readable = 15; read_command = 'READ:DEV:DB8.T1:TEMP:NICK'; read_function = rdText; }
var power = { read_command = 'READ:DEV:DB3.H1:HTR:SIG:POWR'; }
var setpoint = { read_command = 'READ:DEV:DB8.T1:TEMP:LOOP:TSET';
driveable = Loop4/sensor; lowerlimit = 0; upperlimit = 333; tolerance = '${tol}'; property settle_time = 15;
writeable = 1; write_function = setPoint; write_command = 'SET:DEV:DB8.T1:TEMP:LOOP:TSET:';
permlink = 'T.SP04';
}
}
code read_function rdValue = {
@ scan [lindex [split "$data" ":"] end] "%g" data
}
code read_function rdText = {
@ scan [lindex [split "$data" ":"] end] "%s" data
}
code Write_function setPoint = {
}
}