db/XGS600.proto
author Heinz Junkes <junkes@fhi-berlin.mpg.de>
Wed, 15 Jul 2020 08:12:22 +0200
changeset 2 320de4b4c9ee
parent 0 77d8eafe2a07
permissions -rw-r--r--
Add 2nd moxa XGS600 and TPG256

#----------------------------------------------------------------------
#
#  StreamDevice protocol file for a reading/setting selected elements
#  from a Varian XGS-600 pressure gauge controller
#
#  2013-01-10  J.Priller  original version
#
#----------------------------------------------------------------------

Terminator = CR;

# getUnits(address)
getUnits {
  out "#\$113";
  in ">%d";
}

# getPressure(address,chan)
getPressure {
  out "#\$102\$2";
  in ">%g";
}

# send a raw command
sendRawCommand {
  out "%s";
}

# send a raw query (needs argument for PV to receive reply)
sendRawQuery {
  ExtraInput = Ignore;
  out "%s";
  in  "%(\$1)40c";
}