add Firmware check
This commit is contained in:
@@ -155,7 +155,7 @@
|
|||||||
</site>
|
</site>
|
||||||
<site name="MeterProcessState" id="2">
|
<site name="MeterProcessState" id="2">
|
||||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||||
<virtualDirectory path="/" physicalPath="C:\Users\SZLATEV\source\repos\laa_production\Common\Service\MeterProcessState" />
|
<virtualDirectory path="/" physicalPath="C:\Users\drabesch_ro\Repo\lab\la_operations\laa_production\Common\Service\MeterProcessState" />
|
||||||
</application>
|
</application>
|
||||||
<bindings>
|
<bindings>
|
||||||
<binding protocol="http" bindingInformation="*:56011:localhost" />
|
<binding protocol="http" bindingInformation="*:56011:localhost" />
|
||||||
|
|||||||
@@ -65,19 +65,19 @@ namespace CordoPlot
|
|||||||
{
|
{
|
||||||
decoder.DecodeMsg(t[1].Trim());
|
decoder.DecodeMsg(t[1].Trim());
|
||||||
IMeasurementRecord recordToAdd;
|
IMeasurementRecord recordToAdd;
|
||||||
if (decoder.DataBendDetectTest.IsValid)
|
if (decoder.DataBendDetectTest != null && decoder.DataBendDetectTest.IsValid)
|
||||||
{
|
{
|
||||||
decoder.DataBendDetectTest.ReceivedTime = recived;
|
decoder.DataBendDetectTest.ReceivedTime = recived;
|
||||||
decoder.DataBendDetectTest.SyncMarkRecord = currentSyncmark;
|
decoder.DataBendDetectTest.SyncMarkRecord = currentSyncmark;
|
||||||
recordToAdd = decoder.DataBendDetectTest ;
|
recordToAdd = decoder.DataBendDetectTest ;
|
||||||
}
|
}
|
||||||
else if (decoder.DataCalib.IsValid)
|
else if (decoder.DataCalib != null && decoder.DataCalib.IsValid)
|
||||||
{
|
{
|
||||||
decoder.DataCalib.ReceivedTime = recived;
|
decoder.DataCalib.ReceivedTime = recived;
|
||||||
decoder.DataCalib.SyncMarkRecord = currentSyncmark;
|
decoder.DataCalib.SyncMarkRecord = currentSyncmark;
|
||||||
recordToAdd = decoder.DataCalib;
|
recordToAdd = decoder.DataCalib;
|
||||||
}
|
}
|
||||||
else if (decoder.DataFlowTest.IsValid)
|
else if (decoder.DataFlowTest != null && decoder.DataFlowTest.IsValid)
|
||||||
{
|
{
|
||||||
decoder.DataFlowTest.ReceivedTime = recived;
|
decoder.DataFlowTest.ReceivedTime = recived;
|
||||||
decoder.DataFlowTest.SyncMarkRecord = currentSyncmark;
|
decoder.DataFlowTest.SyncMarkRecord = currentSyncmark;
|
||||||
@@ -126,6 +126,11 @@ namespace CordoPlot
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
foreach (var item in collection )
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
double[] dataX = { 1, 2, 3, 4, 5 };
|
double[] dataX = { 1, 2, 3, 4, 5 };
|
||||||
|
|||||||
@@ -810,29 +810,27 @@ namespace CordonelAssemblyLine.Model
|
|||||||
|
|
||||||
if (_skipProcessSteps == null || !_skipProcessSteps.SkipFWCheck)
|
if (_skipProcessSteps == null || !_skipProcessSteps.SkipFWCheck)
|
||||||
{
|
{
|
||||||
foreach (var item in checkAppsIdVersion)
|
if (!meter.InstalledFwVersion.HasValue || !checkAppsIdVersion.Any())
|
||||||
{
|
{
|
||||||
try
|
SetState("Fehler beim auslesen der FW");
|
||||||
{
|
meter.WriteLog(State);
|
||||||
var meterFWApp = meter.MeterAppListVersion.First(a => item.Key == a.AppId);
|
lblS06Text = State;
|
||||||
if (meterFWApp.Version != item.Value)
|
lblS06Color = _progressError;
|
||||||
{
|
return false;
|
||||||
SetState($"Falsche FW, bitte Updaten! AppId:{item.Key} sollte {item.Value} haben, hat aber {meterFWApp.Version}");
|
|
||||||
meter.WriteLog(State);
|
|
||||||
lblS06Color = _progressError;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
lblS06Text = meterFWApp.StrVersion;
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
SetState("Fehler beim auslesen der FW");
|
|
||||||
meter.WriteLog(State);
|
|
||||||
lblS06Text = State;
|
|
||||||
lblS06Color = _progressError;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (meter.InstalledFwVersion.Value != checkAppsIdVersion.FirstOrDefault().Value)
|
||||||
|
|
||||||
|
{
|
||||||
|
SetState($"Falsche FW, bitte Updaten! FW sollte {checkAppsIdVersion.FirstOrDefault().Value} haben, hat aber {meter.InstalledFwVersion.Value}");
|
||||||
|
meter.WriteLog(State);
|
||||||
|
lblS06Color = _progressError;
|
||||||
|
return false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
+3
-3
@@ -197,11 +197,11 @@ namespace ProductionUiCordonel.ProductionProcesses.Actions
|
|||||||
UserControl.lblText.Content = "Lut not correct";
|
UserControl.lblText.Content = "Lut not correct";
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
var meterFWApp = Meter.MeterAppListVersion.First(a => a.AppId == 24);
|
var meterFWApp = Meter.MeterAppListVersion.First(a => a.AppId == 24);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(res[9]) && meterFWApp.StrVersion.Replace(".", "") != uint.Parse(res[9]).ToString("X4"))
|
if (string.IsNullOrEmpty(res[9]) || !Meter.InstalledFwVersion.HasValue || Meter.InstalledFwVersion.Value != uint.Parse(res[9]))
|
||||||
{
|
{
|
||||||
currentProcessState = ProductionProcessState.Error;
|
currentProcessState = ProductionProcessState.Error;
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,7 @@
|
|||||||
FROM [CordonelMeterSizes]
|
FROM [CordonelMeterSizes]
|
||||||
WHERE [Dn_VakoID] = SUBSTRING([Identnr].[VakoCode], 4, 2)) AS [NewNennweiteID]
|
WHERE [Dn_VakoID] = SUBSTRING([Identnr].[VakoCode], 4, 2)) AS [NewNennweiteID]
|
||||||
, [lut].[FileCrc] AS [LutCrc]
|
, [lut].[FileCrc] AS [LutCrc]
|
||||||
, fw.FWVersionHex as FWVersion
|
, fw.Version as FWVersion
|
||||||
FROM [Cordonel_AssignedPicking] AS [MapOrder]
|
FROM [Cordonel_AssignedPicking] AS [MapOrder]
|
||||||
LEFT OUTER JOIN [MapPcbIdToSerialNumber] AS [map]
|
LEFT OUTER JOIN [MapPcbIdToSerialNumber] AS [map]
|
||||||
ON [MapOrder].[CordonelAssignedPicking_PcbId] = [map].[MapPcbIdToSerialNumber_PcbId]
|
ON [MapOrder].[CordonelAssignedPicking_PcbId] = [map].[MapPcbIdToSerialNumber_PcbId]
|
||||||
|
|||||||
Reference in New Issue
Block a user