Merge branch 'release/UpdateOmpVerboseLogResetContapezzi'

This commit is contained in:
Samuele Locatelli
2022-09-21 18:30:41 +02:00
+7 -1
View File
@@ -42,7 +42,7 @@ namespace IOB_WIN_NEXT
// aggiungo comportamento custom: se ho impostato nome ricetta (programma) --> imposto
// richiesta caricamento se ho richiesto reset o fine lavoro --> imposto azzeramento
// esco restituendo risutlato scrittura iniziali
// esco restituendo risultato scrittura iniziali
if (task2exe != null)
{
// controllo se memMap != null...
@@ -114,6 +114,7 @@ namespace IOB_WIN_NEXT
public override bool resetcontapezziPLC()
{
bool answ = false;
lgInfo("Chiamata resetcontapezziPLC");
try
{
List<WriteValue> nodes2Write = new List<WriteValue>();
@@ -130,6 +131,7 @@ namespace IOB_WIN_NEXT
// vera scrittura
UA_ref.WriteNodes(nodes2Write);
answ = true;
lgInfo($"Eseguito scrittura OPC-UA su nodo {opcUaParams.actResetCounter}");
}
catch
{ }
@@ -147,6 +149,7 @@ namespace IOB_WIN_NEXT
private bool setFineLotto()
{
bool answ = false;
lgInfo("Chiamata setFineLotto");
try
{
List<WriteValue> nodes2Write = new List<WriteValue>();
@@ -163,6 +166,7 @@ namespace IOB_WIN_NEXT
// vera scrittura
UA_ref.WriteNodes(nodes2Write);
answ = true;
lgInfo($"Eseguito scrittura OPC-UA su nodo {opcUaParams.actStopProd}");
}
catch
{ }
@@ -176,6 +180,7 @@ namespace IOB_WIN_NEXT
private bool setInizioProd()
{
bool answ = false;
lgInfo("Chiamata setInizioProd");
try
{
List<WriteValue> nodes2Write = new List<WriteValue>();
@@ -192,6 +197,7 @@ namespace IOB_WIN_NEXT
// vera scrittura
UA_ref.WriteNodes(nodes2Write);
answ = true;
lgInfo($"Eseguito scrittura OPC-UA su nodo {opcUaParams.actSetRecipe}");
}
catch
{ }