Files
37-BeiHangDaXue-BH-DAS/CCYQ_JieFang/BusinessCode/WorkStart.cs
2026-06-08 17:06:10 +08:00

38 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
}
}
}
}