public string Rate(Pump p, string suffix = "\r\n") { string rtn = p.Address.ToString() + "RAT" + p.Rate.ToString() + p.RateUnits + suffix; return(rtn); }
public string VolumeUnits(Pump p, string suffix = "\r\n") { string rtn = p.Address.ToString() + "VOL" + p.VolumeUnits + suffix; return(rtn); }
public string Diameter(Pump p, string suffix = "\r\n") { string rtn = p.Address.ToString() + "DIA" + p.Diameter.ToString() + suffix; return(rtn); }
public string Direction(Pump p, string suffix = "\r\n") { string rtn = p.Address.ToString() + "DIR" + p.Direction + suffix; return(rtn); }
public string Purge(Pump p, string suffix = "\r\n") { string rtn = p.Address.ToString() + "PUR" + suffix; return(rtn); }
public string Stop(Pump p, string suffix = "\r\n") { string rtn = p.Address.ToString() + "STP" + suffix; return(rtn); }
//Single pump communication functions public string Run(Pump p, string suffix = "\r\n") { string rtn = p.Address.ToString() + "RUN" + suffix; return(rtn); }