kstmApp/Db/dualgauge.template
author Heinz Junkes <junkes@fhi-berlin.mpg.de>
Mon, 09 Jul 2018 13:36:24 +0200
changeset 4 f7598b2df637
permissions -rw-r--r--
update

record(stringin, "$(P):$(R):getter"){
	field(DESC, "get Pfeiffer MaxiGauge Sensor Value")
	field(DTYP, "stream")
	field(INP, "@dualgauge.proto getSensorValue($(CHA)) $(PORT)")
	field(SCAN, "1 second")
	field(FLNK, "$(P):$(R):Status")
}

record(scalcout, "$(P):$(R):Status"){
	field(DESC, "extracts the Status from the response")
	field(INAA, "$(P):$(R):getter")
	field(CALC, "SSCANF(AA, \"%d%*\")")
	field(FLNK, "$(P):$(R):Pressure")
}

record(scalcout, "$(P):$(R):Pressure"){
	field(DESC, "extracts the Pressure from the response")
	field(INAA, "$(P):$(R):getter")
        field(CALC, "SSCANF(AA, \"%*2c%E\")")
	field(PREC, "12")
        field(EGU, "mbar")
}