diff --git a/IOB-WIN-NEXT/IobSiemens/Siemens.cs b/IOB-WIN-NEXT/IobSiemens/Siemens.cs
index 9b3b92bc..8a5ba08b 100644
--- a/IOB-WIN-NEXT/IobSiemens/Siemens.cs
+++ b/IOB-WIN-NEXT/IobSiemens/Siemens.cs
@@ -31,45 +31,6 @@ namespace IOB_WIN_NEXT.IobSiemens
#endregion Public Fields
- #region Protected Fields
-
- ///
- /// Oggetto PLC da ri-utilizzare...
- ///
- protected Plc currPLC;
-
- ///
- /// Ultimo controllo ping x evitare ping flood...
- ///
- protected DateTime lastPingConn = DateTime.Now.AddMinutes(-10);
-
- ///
- /// Esito ultimo ping
- ///
- protected bool lastPingOk = false;
-
- ///
- /// Lungh massima stringhe
- ///
- protected int maxStrChar = 20;
-
- ///
- /// parametri di connessione
- ///
- protected connParamS7 parametri;
-
- ///
- /// Oggetto cronometro x test vari...
- ///
- protected Stopwatch sw = new Stopwatch();
-
- ///
- /// indica se scrivere i primi byte x string siemens x indicare lung max e corrente
- ///
- protected bool writePre = true;
-
- #endregion Protected Fields
-
#region Public Constructors
///
@@ -126,16 +87,6 @@ namespace IOB_WIN_NEXT.IobSiemens
#endregion Public Constructors
- #region Protected Properties
-
- ///
- /// Dizionario delle ultime operazioni di scrittura per OGNI memoria (in modo che fa log
- /// ogni x sec...)
- ///
- protected Dictionary lastMemWrite { get; set; } = new Dictionary();
-
- #endregion Protected Properties
-
#region Public Methods
///
@@ -1167,6 +1118,55 @@ namespace IOB_WIN_NEXT.IobSiemens
#endregion Public Methods
+ #region Protected Fields
+
+ ///
+ /// Oggetto PLC da ri-utilizzare...
+ ///
+ protected Plc currPLC;
+
+ ///
+ /// Ultimo controllo ping x evitare ping flood...
+ ///
+ protected DateTime lastPingConn = DateTime.Now.AddMinutes(-10);
+
+ ///
+ /// Esito ultimo ping
+ ///
+ protected bool lastPingOk = false;
+
+ ///
+ /// Lungh massima stringhe
+ ///
+ protected int maxStrChar = 20;
+
+ ///
+ /// parametri di connessione
+ ///
+ protected connParamS7 parametri;
+
+ ///
+ /// Oggetto cronometro x test vari...
+ ///
+ protected Stopwatch sw = new Stopwatch();
+
+ ///
+ /// indica se scrivere i primi byte x string siemens x indicare lung max e corrente
+ ///
+ protected bool writePre = true;
+
+ #endregion Protected Fields
+
+ #region Protected Properties
+
+ ///
+ /// Dizionario delle ultime operazioni di scrittura per OGNI memoria (in modo che fa log
+ /// ogni x sec...)
+ ///
+ protected Dictionary lastMemWrite { get; set; } = new Dictionary();
+
+ #endregion Protected Properties
+
#region Protected Methods
///
@@ -1289,11 +1289,10 @@ namespace IOB_WIN_NEXT.IobSiemens
// verifica e decremento blink...
item.checkBlinkCounter(i, (uint)currStatus);
- // verifico SE sia variato... confronto allarmi filtrato stile blink per
- // bit status:
+ // verifico SE sia variato... confronto allarmi filtrato stile blink per bit status:
// - allarmi che iniziano per # IGNORATI
- // - altri allarmi con un countdown da MAX_COUNTER_BLINK a 0 per il
- // fronte di discesa
+ // - altri allarmi con un countdown da MAX_COUNTER_BLINK a 0 per il fronte
+ // di discesa
if (item.isChanged(i, currStatus))
{
if (currStatus > 0)
diff --git a/IOB-WIN-NEXT/IobSiemens/SiemensComeca.cs b/IOB-WIN-NEXT/IobSiemens/SiemensComeca.cs
index 8a679778..155a5510 100644
--- a/IOB-WIN-NEXT/IobSiemens/SiemensComeca.cs
+++ b/IOB-WIN-NEXT/IobSiemens/SiemensComeca.cs
@@ -172,7 +172,7 @@ namespace IOB_WIN_NEXT.IobSiemens
// bit status:
// - allarmi che iniziano per # IGNORATI
// - altri allarmi con un countdown da MAX_COUNTER_BLINK a 0 per il
- // fronte di discesa
+ // fronte di discesa
if (item.isChanged(i, currStatus))
{
if (currStatus > 0)
diff --git a/IOB-WIN-NEXT/IobSiemens/SiemensFape.cs b/IOB-WIN-NEXT/IobSiemens/SiemensFape.cs
index 34576467..bd25af5c 100644
--- a/IOB-WIN-NEXT/IobSiemens/SiemensFape.cs
+++ b/IOB-WIN-NEXT/IobSiemens/SiemensFape.cs
@@ -234,8 +234,8 @@ namespace IOB_WIN_NEXT.IobSiemens
}
if (!string.IsNullOrWhiteSpace(currODL) && currODL != "0")
{
- // ora processo il contapezzi...
- // controllo se è passato intervallo minimo tra 2 controlli/elaborazioni x distanziare invio e ridurre letture
+ // ora processo il contapezzi... controllo se è passato intervallo minimo tra 2
+ // controlli/elaborazioni x distanziare invio e ridurre letture
if (DateTime.Now >= lastPzCountSend.AddMilliseconds(pzCountDelay))
{
// se sono differenti MOSTRO...
diff --git a/IOB-WIN-NEXT/IobSiemens/SiemensIngenia.cs b/IOB-WIN-NEXT/IobSiemens/SiemensIngenia.cs
index 64b8b151..005f9a65 100644
--- a/IOB-WIN-NEXT/IobSiemens/SiemensIngenia.cs
+++ b/IOB-WIN-NEXT/IobSiemens/SiemensIngenia.cs
@@ -58,16 +58,6 @@ namespace IOB_WIN_NEXT.IobSiemens
*
* -------------------------------------------------------------------------------- */
- #region Protected Fields
-
- protected int counterMes2Plc = 0;
-
- protected int counterPlc2Mes = 0;
-
- protected DateTime lastPLCWatchDog;
-
- #endregion Protected Fields
-
#region Public Constructors
///
@@ -230,6 +220,16 @@ namespace IOB_WIN_NEXT.IobSiemens
#endregion Public Methods
+ #region Protected Fields
+
+ protected int counterMes2Plc = 0;
+
+ protected int counterPlc2Mes = 0;
+
+ protected DateTime lastPLCWatchDog;
+
+ #endregion Protected Fields
+
#region Protected Methods
///
diff --git a/IOB-WIN-NEXT/IobSiemens/SiemensLasco.cs b/IOB-WIN-NEXT/IobSiemens/SiemensLasco.cs
index 938d5479..9c48a230 100644
--- a/IOB-WIN-NEXT/IobSiemens/SiemensLasco.cs
+++ b/IOB-WIN-NEXT/IobSiemens/SiemensLasco.cs
@@ -23,20 +23,6 @@ namespace IOB_WIN_NEXT.IobSiemens
* -------------------------------------------------------------------------------- */
- #region Protected Fields
-
- protected int counterMes2Plc = 0;
-
- protected int counterPlc2Mes = 0;
-
- protected int counterPlc2MesWrote = 0;
-
- protected DateTime lastPLCWatchDog;
-
- protected bool useNewSend = false;
-
- #endregion Protected Fields
-
#region Public Constructors
///
@@ -126,7 +112,7 @@ namespace IOB_WIN_NEXT.IobSiemens
foreach (var item in task2exe)
{
taskOk = false;
- taskVal = "";
+ taskVal = "";
int valore = 0;
// converto richiesta in enum...
taskType tName = taskType.nihil;
@@ -523,6 +509,20 @@ namespace IOB_WIN_NEXT.IobSiemens
#endregion Public Methods
+ #region Protected Fields
+
+ protected int counterMes2Plc = 0;
+
+ protected int counterPlc2Mes = 0;
+
+ protected int counterPlc2MesWrote = 0;
+
+ protected DateTime lastPLCWatchDog;
+
+ protected bool useNewSend = false;
+
+ #endregion Protected Fields
+
#region Protected Methods
///