using System;
using MesServerWork;
//using SystemFramework;
namespace MesServerFunctions
{
partial class Functions_BASE_08
{
///
/// 工件到位与离开时,清空MES自身信号
///
///
///
private void WorkStart(object e)
{
try
{
DoWhatPlc.CustomeEvetnArgs msgEvent = (DoWhatPlc.CustomeEvetnArgs)e;
string OpName = Convert.ToString(msgEvent.OpName);
int tagValue = Convert.ToInt32(msgEvent.TagValue);
MIS_BASE.Write_Match(OpName, false);//匹配结果
MIS_BASE.Write_MatchingCompleted(OpName, false);//匹配完成
if (tagValue == 0)
{
SendActuallyCount(OpName, tagValue);//统计在线产量,在线节拍
}
}
catch(Exception err)
{
////ApplicationLog.WriteLog(err, "Function08:WorkStart");
}
}
}
}