Merge branch 'release/OpcUaRamaRed02'
This commit is contained in:
@@ -422,7 +422,47 @@ namespace IOB_WIN_NEXT.IobOpc
|
||||
{
|
||||
if ((enablePzCountByApp || enablePzCountByIob) && !(disablePzCounteByIob))
|
||||
{
|
||||
// da ridefinire la gestione base del contapezzi OPC-UA...
|
||||
if (string.IsNullOrEmpty(opcUaParams.keyPartCount))
|
||||
{
|
||||
lgTrace("Gestione contapezzi: manca parametro per keyPartCount");
|
||||
}
|
||||
else
|
||||
{
|
||||
// cerco parametro contapezzi...
|
||||
string currPzCount = getDataItemValue(opcUaParams.keyPartCount);
|
||||
|
||||
// se ho un contapezzi... processo...
|
||||
if (!string.IsNullOrEmpty(currPzCount))
|
||||
{
|
||||
int newVal = -1;
|
||||
bool fatto = Int32.TryParse(currPzCount, out newVal);
|
||||
|
||||
if (fatto)
|
||||
{
|
||||
// gestione decremento contapezzi: viene "messo via" solo SE c'è un
|
||||
// effettivo decremento contapezzi...
|
||||
if (newVal < contapezziPLC)
|
||||
{
|
||||
pzCountResetted = true;
|
||||
// incremento contatore richiesta
|
||||
countKeyRichiesta = countKeyRichiesta + 1;
|
||||
// log
|
||||
lgInfo("Contapezzi resettato (PLC) --> pzCountResetted = true");
|
||||
}
|
||||
|
||||
// salvo nuovo valore contapezziPLC
|
||||
contapezziPLC = newVal > -1 ? newVal : contapezziPLC;
|
||||
}
|
||||
else
|
||||
{
|
||||
lgError($"Errore in decodifica valore contapezzi, valore rilevato: {currPzCount}");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lgError("Errore in decodifica valore contapezzi, valore vuoto!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1482,6 +1522,7 @@ namespace IOB_WIN_NEXT.IobOpc
|
||||
threshDBand = 0;
|
||||
dSamplePeriod = 60;
|
||||
}
|
||||
lgDebug($"Deadband | item {uuid} | DBand {threshDBand} | samplePeriod {dSamplePeriod}");
|
||||
|
||||
// salvo oggetto x "uso interno"
|
||||
currDataItem = new OpcUaDataItemExt(dataItem)
|
||||
|
||||
@@ -225,7 +225,7 @@ namespace IOB_WIN_NEXT
|
||||
// se veto --> loggo veto
|
||||
if (vetoBrowse.Contains($"{result.NodeId}"))
|
||||
{
|
||||
lgTrace($"| FILTERED --> NodeId = {result.NodeId}, DisplayName = {result.DisplayName.Text}, NodeClass = {result.NodeClass}, Others: {result.BinaryEncodingId} | {result.BrowseName}");
|
||||
lgInfo($"| FILTERED --> NodeId = {result.NodeId}, DisplayName = {result.DisplayName.Text}, NodeClass = {result.NodeClass}, Others: {result.BinaryEncodingId} | {result.BrowseName}");
|
||||
}
|
||||
// se NON fa parte dell'elenco dei VETO di filterItems...
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user