コード例 #1
0
ファイル: SendHelp.cs プロジェクト: Menghuanjin/NDCATL10L
 /// <summary>
 /// 2#数据发送
 /// </summary>
 public static void DataSend2()
 {
     if (PLC_InquiryHelp.BreakThread_two)
     {
         PLC_InquiryHelp.PLC_InquiryTwo(1);
         InsertHelp.InsertInfo2_5 = JointInfoHelp.ReturnSend5(1180, 1195, 1); //五层温度数据
         InsertHelp.UpdateInfo(2, 5, PLC_InquiryHelp.StatusTo(PLC_InquiryHelp.RunMark2_5), InsertHelp.InsertInfo2_5, 1025);
         InsertHelp.InsertInfo2_4 = JointInfoHelp.ReturnSend4(1160, 1175, 1); //四层温度数据
         InsertHelp.UpdateInfo(2, 4, PLC_InquiryHelp.StatusTo(PLC_InquiryHelp.RunMark2_4), InsertHelp.InsertInfo2_4, 1024);
         InsertHelp.InsertInfo2_3 = JointInfoHelp.ReturnSend3(1100, 1115, 1); //三层温度数据
         InsertHelp.UpdateInfo(2, 3, PLC_InquiryHelp.StatusTo(PLC_InquiryHelp.RunMark2_3), InsertHelp.InsertInfo2_3, 1023);
         InsertHelp.InsertInfo2_2 = JointInfoHelp.ReturnSend2(1120, 1135, 1); //二层温度数据
         InsertHelp.UpdateInfo(2, 3, PLC_InquiryHelp.StatusTo(PLC_InquiryHelp.RunMark2_2), InsertHelp.InsertInfo2_2, 1022);
         InsertHelp.InsertInfo2_1 = JointInfoHelp.ReturnSend1(1140, 1155, 1); //一层温度数据
         InsertHelp.UpdateInfo(2, 1, PLC_InquiryHelp.StatusTo(PLC_InquiryHelp.RunMark2_1), InsertHelp.InsertInfo2_1, 1021);
         InsertHelp.InsertSql(MachineIDHelp.MachineIDInfo2(), InsertHelp.InsertInfo2_5, InsertHelp.InsertInfo2_4, InsertHelp.InsertInfo2_3, InsertHelp.InsertInfo2_2, InsertHelp.InsertInfo2_1);
     }
 }
コード例 #2
0
ファイル: SendHelp.cs プロジェクト: Menghuanjin/NDCATL10L
 /// <summary>
 /// 1#数据发送
 /// </summary>
 public static void DataSend1()
 {
     if (PLC_InquiryHelp.BreakThread_one)
     {
         PLC_InquiryHelp.PLC_InquiryOne(0);                                   //查询PLC
         InsertHelp.InsertInfo1_5 = JointInfoHelp.ReturnSend5(1180, 1195, 0); //五层温度数据
         InsertHelp.UpdateInfo(1, 5, PLC_InquiryHelp.StatusTo(PLC_InquiryHelp.RunMark1_5), InsertHelp.InsertInfo1_5, 1015);
         InsertHelp.InsertInfo1_4 = JointInfoHelp.ReturnSend4(1160, 1175, 0); //四层温度数据
         InsertHelp.UpdateInfo(1, 4, PLC_InquiryHelp.StatusTo(PLC_InquiryHelp.RunMark1_4), InsertHelp.InsertInfo1_4, 1014);
         InsertHelp.InsertInfo1_3 = JointInfoHelp.ReturnSend3(1100, 1115, 0); //三层温度数据
         InsertHelp.UpdateInfo(1, 3, PLC_InquiryHelp.StatusTo(PLC_InquiryHelp.RunMark1_3), InsertHelp.InsertInfo1_3, 1013);
         InsertHelp.InsertInfo1_2 = JointInfoHelp.ReturnSend2(1120, 1135, 0); //二层温度数据
         InsertHelp.UpdateInfo(1, 2, PLC_InquiryHelp.StatusTo(PLC_InquiryHelp.RunMark1_2), InsertHelp.InsertInfo1_2, 1012);
         InsertHelp.InsertInfo1_1 = JointInfoHelp.ReturnSend1(1140, 1155, 0); //一层温度数据
         InsertHelp.UpdateInfo(1, 1, PLC_InquiryHelp.StatusTo(PLC_InquiryHelp.RunMark1_1), InsertHelp.InsertInfo1_1, 1011);
         InsertHelp.InsertSql(MachineIDHelp.MachineIDInfo1(), InsertHelp.InsertInfo1_5, InsertHelp.InsertInfo1_4, InsertHelp.InsertInfo1_3, InsertHelp.InsertInfo1_2, InsertHelp.InsertInfo1_1);
     }
 }