/** * 主界面/设置 发送报文 type=0 * */ public void SendMessage() { List <Setting_Model> setting_Models = new List <Setting_Model>(); Common_Rail_Injector_Setting common_Rail_Injector_Setting = new Common_Rail_Injector_Setting(); setting_Models = common_Rail_Injector_Setting.GetDataFromPage(); Send485.CycleSend(0, setting_Models); }
/** * 停止检测 发送报文 type=4 * */ public List <StructFrame485> SendStopMessage() { List <StructFrame485> structFrame485s = new List <StructFrame485>(); List <Setting_Model> setting_Models = new List <Setting_Model>(); setting_Models = STOP_DATA; structFrame485s = Send485.CycleSend(4, setting_Models); return(structFrame485s); }
/** * 检测界面 发送报文 type=2 * */ public List <StructFrame485> SendIntoMessage() { List <StructFrame485> structFrame485s = new List <StructFrame485>(); List <Setting_Model> setting_Models = new List <Setting_Model>(); setting_Models = INTO_DATA; structFrame485s = Send485.CycleSend(2, setting_Models); return(structFrame485s); }