init: 北航大学BH-DAS项目首次入库
This commit is contained in:
37
CCYQ_JieFang/BusinessCode/WorkStart.cs
Normal file
37
CCYQ_JieFang/BusinessCode/WorkStart.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
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
|
||||
{
|
||||
/// <summary>
|
||||
/// 工件到位与离开时,清空MES自身信号
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="tagValue"></param>
|
||||
private static void WorkStart(string opName, string tagValue)
|
||||
{
|
||||
if (tagValue == "1")
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
WritePLC((int)EnumTagTypeCodeID.EngineTypeGetOverMES, opName, false);//MES传递机型5
|
||||
WritePLC((int)EnumTagTypeCodeID.FixAllow, opName, false);//允许工作66
|
||||
WritePLC((int)EnumTagTypeCodeID.ConfirmOkGo, opName, false);//合格放行51
|
||||
WritePLC((int)EnumTagTypeCodeID.FalseGo, opName, false);//不合格放行8
|
||||
WritePLC((int)EnumTagTypeCodeID.MaterialVerifyOver, opName, false);//工作完成7
|
||||
WritePLC((int)EnumTagTypeCodeID.MesReadOver, opName, false);//保存完成20
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user