From 101ab047e2b1c78ba4554a52c6bebcfeb7d094a4 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 16 Apr 2018 14:16:34 +0200 Subject: [PATCH] typo var --- IOB-WIN/IobFanuc.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/IOB-WIN/IobFanuc.cs b/IOB-WIN/IobFanuc.cs index 21e1163f..1031511f 100644 --- a/IOB-WIN/IobFanuc.cs +++ b/IOB-WIN/IobFanuc.cs @@ -19,7 +19,7 @@ namespace IOB_WIN /// /// Ultima lettura variabile contapezzi da CNC /// - protected Int32 currCncCount; + protected Int32 lastCountCNC; /// /// Area memoria G (copia) /// @@ -167,7 +167,7 @@ namespace IOB_WIN lg.Info("Errore lettura contapezzi (empty)"); } // per adesso imposto lettura fanuc == contapezzi (poi farà vera lettura...) - currCncCount = contapezzi; + lastCountCNC = contapezzi; // finisco INIT ADAPTER lg.Info("End init Adapter FANUC"); } @@ -408,18 +408,18 @@ namespace IOB_WIN // resetto timer... lastPzCountSend = DateTime.Now; // verifico se variato contapezzi in area STD PAR6711... e se passato ritardo minimo... - if (currCncCount > contapezzi) + if (lastCountCNC > contapezzi) { // salvo nuovo contapezzi (incremento di 1...) contapezzi++; // salvo in semaforo! B_input += 1 << 2; // registro contapezzi - lg.Info(string.Format("Contapezzi FANUC: {0} | Contapezzi interno {1}", currCncCount, contapezzi)); + lg.Info(string.Format("Contapezzi FANUC: {0} | Contapezzi interno {1}", lastCountCNC, contapezzi)); } - else if (contapezzi > currCncCount) // in questo caso resetto + else if (contapezzi > lastCountCNC) // in questo caso resetto { - contapezzi = currCncCount; + contapezzi = lastCountCNC; } // invio a server contapezzi (aggiornato) utils.callUrl(urlSetPzCount + contapezzi.ToString()); @@ -717,7 +717,7 @@ namespace IOB_WIN FANUC_ref.F_RW_Param_Integer(false, 6711, 3, ref output); if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-PAR", 4), stopwatch.ElapsedTicks); // salvo ultimo conteggio rilevato - Int32.TryParse(output.ToString(), out currCncCount); + Int32.TryParse(output.ToString(), out lastCountCNC); stopwatch.Stop(); } }