Files
01-Siyuan-MesProject/MisData_3.0_2022.08.23.1622.LLX/MesDataFunctionWebApi/MesDataFunction/MIS.Functions.WorkStart.cs
2026-05-29 10:07:05 +08:00

46 lines
1.1 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.Data;
using System.Collections;
using System.Windows.Forms;
using bizFacade;
using System.Collections.Specialized;
using MesWork;
using SystemFramework;
using System.Threading;
namespace MesServerWork
{
public partial class MIS_BASE
{
static object lockerWorkStart = new object();
/// <summary>
/// 工件到位与离开时清空MES自身信号
/// </summary>
/// <param name="OpName"></param>
/// <param name="tagValue"></param>
static public void WorkStart(object e)
{
lock (lockerWorkStart)
{
try
{
OpcData.CustomeEvetnArgs msgEvent = (OpcData.CustomeEvetnArgs)e;
string OpName = Convert.ToString(msgEvent.OpName);
int tagValue = Convert.ToInt32(msgEvent.TagValue);
}
catch (Exception err)
{
ApplicationLog.WriteLog(err, "Function02:WorkStart");
}
}
}
}
}