fix GCode path 2 + fix visualizzazione debug x OSAI

This commit is contained in:
Samuele E. Locatelli
2017-06-28 11:50:02 +02:00
parent 524c6816ed
commit cc3c7b9bbf
3 changed files with 15 additions and 9 deletions
+13 -7
View File
@@ -1958,6 +1958,7 @@ namespace MTC_Adapter
}
else if (ciclo == gatherCycle.MF)
{
resetDebugConsole();
// leggo parametri a media freq (dati globali, path, assi, Unità Operatrice)
getGlobalData();
getUnOp();
@@ -1976,6 +1977,7 @@ namespace MTC_Adapter
// ciclo lento
else if (ciclo == gatherCycle.LF)
{
//resetDebugConsole();
// leggo EVENTUALI parametri da config file
getConfigParam();
///acquisisco dati su programma in esecuzione e dati generali (stato, orologio, power...)
@@ -1983,8 +1985,8 @@ namespace MTC_Adapter
// eventuale log!
if (utils.CRB("recTime")) logTimeResults();
// salva richiesta update x dati debug
showDebugData = true;
//// salva richiesta update x dati debug
//showDebugData = true;
}
// ciclo lentissimo
else if (ciclo == gatherCycle.VLF)
@@ -2046,16 +2048,20 @@ namespace MTC_Adapter
eh_refreshed(this, new EventArgs());
}
}
private void resetDebugConsole()
{
// resetto console debug...
parentForm.dataMonitor_1 = "";
parentForm.dataMonitor_2 = "";
parentForm.dataMonitor_3 = "";
}
/// <summary>
/// recupero dati globali (e comuni)
/// </summary>
public virtual void getGlobalData()
{
// svuoto...
parentForm.dataMonitor_1 = "";
parentForm.dataMonitor_2 = "";
parentForm.dataMonitor_3 = "";
// accodo dati path in DataMonitor......
StringBuilder sb1 = new StringBuilder();
StringBuilder sb2 = new StringBuilder();
+1 -1
View File
@@ -912,7 +912,7 @@ namespace MTC_Adapter
parentForm.commPlcActive = true;
inizio = DateTime.Now;
OSAI_ref.getPathGCodeMod(1, ref vettGCodes_01);
OSAI_ref.getPathGCodeMod(2, ref vettGCodes_01);
OSAI_ref.getPathGCodeMod(2, ref vettGCodes_02);
if (utils.CRB("recTime")) TimingData.addResult("R-GCodModal", DateTime.Now.Subtract(inizio).Ticks);
parentForm.commPlcActive = false;
}
+1 -1
View File
@@ -17,7 +17,7 @@
<add key="waitEndCycle" value="0"/><!--ms attesa dopo ogni ciclo lettura...-->
<!--30 sec-->
<add key="contChkGCod" value="5"/>
<add key="contChkGCod" value="2"/>
<!--parametri gestione watchdog-->
<add key="maxAdapterLockSec" value="5"/>