|
|
@ -7,6 +7,7 @@ using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
using Microsoft.VisualBasic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ProductionSystem.Untils.Tool
|
|
|
|
namespace ProductionSystem.Untils.Tool
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -26,6 +27,9 @@ namespace ProductionSystem.Untils.Tool
|
|
|
|
this.mo = mo;
|
|
|
|
this.mo = mo;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string Val { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool ToAction()
|
|
|
|
public bool ToAction()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
@ -44,6 +48,7 @@ namespace ProductionSystem.Untils.Tool
|
|
|
|
bool b = false;
|
|
|
|
bool b = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MfSerialInfo mfSerialInfo = new MfSerialInfo(0x21, 0x29, com, "19200");
|
|
|
|
MfSerialInfo mfSerialInfo = new MfSerialInfo(0x21, 0x29, com, "19200");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -64,6 +69,8 @@ namespace ProductionSystem.Untils.Tool
|
|
|
|
intelLsb = me.GetMotoralaLsb(24, 8);
|
|
|
|
intelLsb = me.GetMotoralaLsb(24, 8);
|
|
|
|
XTrace.WriteLine("RealRPM: {0}", intelLsb);
|
|
|
|
XTrace.WriteLine("RealRPM: {0}", intelLsb);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Val = intelLsb.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
int begin = Convert.ToInt32(intelLsb) - 5;
|
|
|
|
int begin = Convert.ToInt32(intelLsb) - 5;
|
|
|
|
int end = Convert.ToInt32(intelLsb) + 5;
|
|
|
|
int end = Convert.ToInt32(intelLsb) + 5;
|
|
|
|
|
|
|
|
|
|
|
@ -80,7 +87,7 @@ namespace ProductionSystem.Untils.Tool
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mfSerialInfo.SendMsg(sendMes,30);
|
|
|
|
mfSerialInfo.SendMsg(sendMes,40);
|
|
|
|
return b;
|
|
|
|
return b;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|