70 lines
3.2 KiB
C#
70 lines
3.2 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
using BaseFunction;
|
||
|
||
namespace NSAnalysis
|
||
{
|
||
internal class PlcSignalDfn
|
||
{
|
||
//=========================Write to PLC =================================
|
||
public const string SoftLive = "SoftLive"; //10;
|
||
|
||
public const string CMMStatus = "CMMStatus"; //50; //10空闲,20忙碌
|
||
public const string CmmError = "CmmError"; //52; //10报警, 0清除
|
||
public const string CMMResult = "CMMResult"; //56; //10=OK, 20=NG
|
||
public const string CMMResultClear = "CMMResultClear"; //56; //10=OK, 20=NG
|
||
public const string CMMForceUnload = "CMMForceUnload"; //
|
||
public const string CMMResultKField = "CMMResultKField"; //57; //10=OK, 20=NG
|
||
|
||
public const string CMMResultBits = "CMMResultBits"; //56; //10=OK, 20=NG
|
||
public const string CMMResultDatas = "CMMResultDatas"; //58;
|
||
|
||
public const string Year = "Year"; //91
|
||
public const string Mouth = "Mouth"; //92
|
||
public const string Day = "Day"; //93
|
||
public const string Hour = "Hour"; //94
|
||
public const string Minute = "Minute"; //95
|
||
public const string Second = "Second"; //96
|
||
public const string Week = "Week"; //97
|
||
|
||
public const string CoordX = "CoordX"; //11-12 //坐标float,4字节,32位
|
||
public const string CoordY = "CoordY"; //13-14
|
||
public const string CoordZ = "CoordZ"; //15-16
|
||
|
||
public const string WCarType = "WCarType";
|
||
public const string WCarColor = "WCarColor";
|
||
public const string UnloadTray = "UnloadTray";
|
||
public const string CancelUnloadTray = "CancelUnloadTray";
|
||
public const string RFIDResult = "RFIDResult";
|
||
public const string daoguienter = "daoguienter";
|
||
public const string MeasureError = "MeasureError"; //10 :报警
|
||
|
||
//========================Read PLC Address==================================
|
||
public const string StartAddr = "StartAddr"; //100;
|
||
|
||
public const string PlcLive = "PlcLive"; //110;
|
||
public const string StartCmd = "StartCmd"; //131;
|
||
public const string CmmHome = "CmmHome"; //132;
|
||
public const string CmmPartOk = "CmmPartOk"; //133;
|
||
public const string PlcMode = "PlcMode"; //151;
|
||
public const string PlcAutoRunning = "PlcAutoRunning";
|
||
|
||
public const string PartID = "PartID";
|
||
public const string MachineID = "MachineID";
|
||
public const string ProgramCode = "ProgramCode";
|
||
public const string CarType = "CarType";
|
||
public const string NSStartMeasure = "NSStartMeasure";
|
||
public const string ReadVINFinishFlag = "ReadVINFinishFlag";
|
||
public const string LeaveFirstFlag = "LeaveFirstFlag";
|
||
public const string LeaveSecondFlag = "LeaveSecondFlag";
|
||
public const string CarPassFlag = "CarPassFlag";
|
||
|
||
public const string Speed1 = "Speed1";
|
||
public const string Speed2 = "Speed2";
|
||
public const string R01_Pules = "R01_Pules";
|
||
public const string R02_Pules = "R02_Pules";
|
||
}
|
||
} |