init: 北航大学BH-DAS项目首次入库
This commit is contained in:
26
CCYQ_JieFang/BusinessCode/Heartbeat.cs
Normal file
26
CCYQ_JieFang/BusinessCode/Heartbeat.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MesWork
|
||||
{
|
||||
public partial class Temp { }
|
||||
public partial class MesWorkForm
|
||||
{
|
||||
|
||||
private static void Heartbeat(string opName, string tagValue)
|
||||
{
|
||||
if (tagValue == "1")
|
||||
{
|
||||
WritePLC((int)EnumTagTypeCodeID.HeartBeatMIS, opName, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
WritePLC((int)EnumTagTypeCodeID.HeartBeatMIS, opName, false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user