# Omega CN16DPT2 protocol OutTerminator = CR; InTerminator = CR; replytimeout = 5000; readtimeout = 5000; # milliseconds writetimeout = 5000; TACT { out "*G110"; wait 500; in "G110%f"; @mismatch {in "\000G110%f";}} TPEAK { out "*G111"; wait 500; in "G110%f"; @mismatch {in "\000G110%f";}} TVALLEY { out "*G112"; wait 500; in "G110%f"; @mismatch {in "\000G110%f";}} TDES { out "*W400 %04f"; wait 100; in "W400"; @mismatch {in "\000@W400";}} TDES_RBV { out "*R400"; wait 300; in "R400%f"; @mismatch {in "\000R400%f";}} # 310 is serial data mode: Omega/Modbus, Command/Continuous, No LF/LF, no echo/echo, space/CR wcfg { out "*W310 %05b"; wait 300; @mismatch {in "\000W310";}} rcfg { out "*R310"; wait 300; in "R310%b"; @mismatch {in "\000R310%b";}} # 500 is PID config: Active if PV < setpoint (heater)/Active if PV > setpoint (chiller), Enable/Disable adaptive control wpcfg { out "*W500 %02b"; wait 300; @mismatch { in "W500";}} rpcfg { out "*R500"; wait 300; in "R500%b"; @mismatch {in "\000R500%b";}} kP { out "*W503 %f"; wait 300; in "W503"; @mismatch {in "\000W503";}} kI { out "*W504 %f"; wait 300; in "W504"; @mismatch {in "\000W504";}} kD { out "*W505 %f"; wait 300; in "W505"; @mismatch {in "\000W505";}} kP_RBV { out "*R503"; wait 300; in "R503%f"; @mismatch {in "\000R503%f";}} kI_RBV { out "*R504"; wait 300; in "R504%f"; @mismatch {in "\000R504%f";}} kD_RBV { out "*R505"; wait 300; in "R505%f"; @mismatch {in "\000R505%f";}}