Files
2026-05-29 10:07:05 +08:00

51 lines
1.3 KiB
C#
Raw Permalink 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 MesServerWork;
using bizFacade;
using System.Data;
//using SystemFramework;
namespace MesServerFunctions
{
partial class Functions_BASE_06
{
/// <summary>
/// 工件到位与离开时清空MES自身信号
/// </summary>
/// <param name="OpName"></param>
/// <param name="tagValue"></param>
private void WorkStart(object e)
{
try
{
DoWhatPlc.CustomeEvetnArgs msgEvent = (DoWhatPlc.CustomeEvetnArgs)e;
string OpName = Convert.ToString(msgEvent.OpName);
int tagValue = Convert.ToInt32(msgEvent.TagValue);
if (tagValue == 0)
{
}
else
{
BaseDataSystemMES.MesServer_Process_EngineTypeOver(OpName);
//通知web显示
Sendmessage("2", "1", OpName);
AsyncSendMessage_Notice(OpName, "请扫描物料!");
}
}
catch(Exception err)
{
////ApplicationLog.WriteLog(err, "Function06:WorkStart");
}
}
}
}