kstmApp/Db/maxigauge.template
author William
Thu, 05 Jul 2018 08:48:18 +0000
changeset 4 68a4f654dc00
permissions -rw-r--r--
first

record(stringin, "$(P):$(R):getter"){
	field(DESC, "get Pfeiffer MaxiGauge Sensor Value")
	field(DTYP, "stream")
	field(INP, "@maxigauge.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")
}