45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using bizFacade;
|
||
using MesServerWork;
|
||
using System;
|
||
//using SystemFramework;
|
||
|
||
namespace MesServerFunctions
|
||
{
|
||
partial class Functions_BASE_17
|
||
{
|
||
/// <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, "Function17:WorkStart");
|
||
}
|
||
}
|
||
|
||
}
|
||
}
|