Fix commento reset dove disattivato, niserito x Ghidini (da testare)
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user