Fix commento reset dove disattivato, niserito x Ghidini (da testare)

This commit is contained in:
Samuele Locatelli
2025-11-06 10:14:42 +01:00
parent be664a88b3
commit c9cc8f2d3e
12 changed files with 52 additions and 7 deletions
+3 -3
View File
@@ -832,7 +832,7 @@ namespace IOB_WIN_FORM.Iob
// reset contapezzi inizio setup
if (IOBConfFull.Counters.ResetOnProdEnd)
{
lgDebug($"Generic.executeTasks {tName} | resetContapezziPLC");
lgInfo($"Generic.executeTasks {tName} | resetContapezziPLC");
taskOk = resetContapezziPLC(codTav);
}
break;
@@ -841,7 +841,7 @@ namespace IOB_WIN_FORM.Iob
// recupero dati da memMap...
if (memMap != null && memMap.mMapWrite != null)
{
lgDebug($"Generic.executeTasks {tName} | resetContapezziPLC | memMap");
lgInfo($"Generic.executeTasks {tName} | resetContapezziPLC | memMap");
if (memMap.mMapWrite.ContainsKey(iKey))
{
dataConf currMem = memMap.mMapWrite[iKey];
@@ -859,7 +859,7 @@ namespace IOB_WIN_FORM.Iob
else
{
// reset contapezzi senza memMap
lgDebug($"Generic.executeTasks {tName} | resetContapezziPLC | NO memMap");
lgInfo($"Generic.executeTasks {tName} | resetContapezziPLC | NO memMap");
taskOk = resetContapezziPLC(codTav);
taskVal = taskOk ? "forceResetPzCount | RESET PZ COUNT OK" : "forceResetPzCount | PZ RESET DISABLED | NO EXEC";
}
+1
View File
@@ -615,6 +615,7 @@ namespace IOB_WIN_FORM.Iob
/// <returns></returns>
public override bool resetContapezziPLC(string codTav)
{
lgInfo("OpcUa.resetContapezziPLC - mockup true");
// indico fatto...
return true;
}
+1
View File
@@ -771,6 +771,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
/// <returns></returns>
public override bool resetContapezziPLC(string codTav)
{
lgInfo("OpcUa.resetContapezziPLC - none");
bool answ = false;
return answ;
}
+2
View File
@@ -53,6 +53,8 @@ namespace IOB_WIN_OPC_UA.IobOpc
/// <returns></returns>
public override bool resetContapezziPLC(string codTav)
{
lgInfo("OpcUaCMS.resetContapezziPLC - none");
bool answ = false;
return answ;
}
+1
View File
@@ -53,6 +53,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
/// <returns></returns>
public override bool resetContapezziPLC(string codTav)
{
lgInfo("OpcUaEwon.resetContapezziPLC - none");
bool answ = false;
return answ;
}
+1
View File
@@ -53,6 +53,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
/// <returns></returns>
public override bool resetContapezziPLC(string codTav)
{
lgInfo("OpcUaImas.resetContapezziPLC - none");
bool answ = false;
return answ;
}
+1
View File
@@ -43,6 +43,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
/// <returns></returns>
public override bool resetContapezziPLC(string codTav)
{
lgInfo("OpcUaKwp.resetContapezziPLC - none");
bool answ = false;
return answ;
}
+1
View File
@@ -53,6 +53,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
/// <returns></returns>
public override bool resetContapezziPLC(string codTav)
{
lgInfo("OpcUaMBH.resetContapezziPLC - none");
bool answ = false;
return answ;
}
+1
View File
@@ -126,6 +126,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
public override bool resetContapezziPLC(string codTav)
{
lgInfo("OpcUaMbhCimolai.resetContapezziPLC - none");
bool answ = false;
return answ;
}
+1
View File
@@ -47,6 +47,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
/// <returns></returns>
public override bool resetContapezziPLC(string codTav)
{
lgInfo("OpcUaOmron.resetContapezziPLC - none");
bool answ = false;
return answ;
}
+38 -4
View File
@@ -35,16 +35,50 @@ namespace IOB_WIN_OPC_UA.IobOpc
#region Public Methods
/// <summary>
/// Effettua reset del contapezzi, NON POSSIBILE in questa versione
/// Effettua reset del contapezzi
/// </summary>
/// <returns></returns>
public override bool resetContapezziPLC(string codTav)
{
bool answ = false;
// da implementare con area memoria configurata ad hoc...
lgInfo("OpcUaGhidini.resetContapezziPLC - gestione segnale reset");
if (memMap != null && memMap.mMapWrite != null)
{
string pKey = "forceResetPzCount";
if (memMap.mMapWrite.ContainsKey(pKey))
{
dataConf currMem = memMap.mMapWrite[pKey];
string addr = currMem.memAddr;
// imposto il valore e forzo la scrittura ...
memMap.mMapWrite[pKey].value = "True";
// preparo elenco parametri da inviare...
list2Write = new List<objItem>();
// aggiungo bit reset
objItem currData = new objItem()
{
uid = pKey,
reqValue = "True",
name = pKey
};
list2Write.Add(currData);
// scrivo!
plcWriteParams(ref list2Write);
// sctivo nuovo parametro x spegnere bit...
Thread.Sleep(500);
list2Write.Clear();
currData = new objItem()
{
uid = pKey,
reqValue = "False",
name = pKey
};
list2Write.Add(currData);
// scrivo!
plcWriteParams(ref list2Write);
}
}
return answ;
}
+1
View File
@@ -245,6 +245,7 @@ namespace IOB_WIN_OPC_UA.IobOpc
/// <returns></returns>
public override bool resetContapezziPLC(string codTav)
{
lgInfo("OpcUaOmronIcoel.resetContapezziPLC - none");
bool answ = false;
return answ;
}