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

59 lines
1.6 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 bizFacade;
using MesServerWork;
//using SystemFramework;
namespace MesServerFunctions
{
partial class Functions_BASE_25
{
/// <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);
PartLoad_Show(e);
}
catch (Exception err)
{
////ApplicationLog.WriteLog(err, "Function23:WorkStart");
}
}
private void PartLoad_Show(object e)
{
try
{
DoWhatPlc.CustomeEvetnArgs msgEvent = (DoWhatPlc.CustomeEvetnArgs)e;
string OpName = Convert.ToString(msgEvent.OpName);
int tagValue = Convert.ToInt32(msgEvent.TagValue);
if (tagValue == 1)
{
BaseDataSystemMES.MesServer_Process_EngineTypeOver(OpName);
Sendmessage("123", "111", OpName);//向前台发送显示操作指南、物料、图片的命令
}
else
{
}
}
catch (Exception err)
{
////ApplicationLog.WriteLog(err, "Function01:PartLoad");
}
}
}
}