pulizia codice...
This commit is contained in:
@@ -2016,7 +2016,7 @@ namespace SCMA
|
||||
// resetto running flag...
|
||||
adpCommAct = false;
|
||||
|
||||
// avvio i MTConnect.Sample vectors...
|
||||
// avvio i Sample vectors...
|
||||
istOreMaccOn = new sampleVect();
|
||||
istOreMaccLav = new sampleVect();
|
||||
istSlittaTast = new sampleVect();
|
||||
@@ -2256,7 +2256,7 @@ namespace SCMA
|
||||
// ciclo lento x log...
|
||||
if (ciclo == gatherCycle.LF)
|
||||
{
|
||||
// MTConnect.Eventuale log!
|
||||
// Eventuale log!
|
||||
if (utils.CRB("recTime"))
|
||||
{
|
||||
logTimeResults();
|
||||
@@ -2269,7 +2269,7 @@ namespace SCMA
|
||||
// ciclo VHF x invii...
|
||||
if (ciclo == gatherCycle.VHF)
|
||||
{
|
||||
// processo e svuoto MTConnect.Eventuali code di invio per Codici M/S/T
|
||||
// processo e svuoto Eventuali code di invio per Codici M/S/T
|
||||
trySendCodMST();
|
||||
}
|
||||
// POI CONTROLLO cicli + lenti di lettura...
|
||||
@@ -2307,12 +2307,12 @@ namespace SCMA
|
||||
// ciclo lento
|
||||
else if (ciclo == gatherCycle.LF)
|
||||
{
|
||||
// leggo MTConnect.EventUALI parametri da config file
|
||||
// leggo EVENTUALI parametri da config file
|
||||
getConfigParam();
|
||||
///acquisisco dati su programma in esecuzione e dati generali (stato, orologio, power...)
|
||||
getSlowChangingData();
|
||||
|
||||
// MTConnect.Eventuale log!
|
||||
// Eventuale log!
|
||||
if (utils.CRB("recTime"))
|
||||
{
|
||||
logTimeResults();
|
||||
@@ -3122,7 +3122,7 @@ namespace SCMA
|
||||
// leggo 41° byte = indice 40 + 2*i x le var del carico UnOp
|
||||
UnOpLoad = unOpSpeedMem[40 + i];
|
||||
|
||||
// MTConnect.Eventuale fix bigEndian...
|
||||
// Eventuale fix bigEndian...
|
||||
if (hasBigEndian)
|
||||
{
|
||||
locSpeedRate = Endian.SwapUInt16((ushort)locSpeedRate);
|
||||
@@ -3180,7 +3180,7 @@ namespace SCMA
|
||||
{
|
||||
codEv = Endian.SwapUInt16(codEv);
|
||||
}
|
||||
// accodo MTConnect.Evento Codice
|
||||
// accodo Evento Codice
|
||||
appendCodeMST(Coda, codEv.ToString(), idxPath);
|
||||
}
|
||||
}
|
||||
@@ -3201,7 +3201,7 @@ namespace SCMA
|
||||
{
|
||||
if (STRB_DW1.HasFlag((StFlag32)Math.Pow(2, bitNum + 16 * idxPath)))
|
||||
{
|
||||
// salvo MTConnect.Evento UserAction in variabile...
|
||||
// salvo Evento UserAction in variabile...
|
||||
UserAction += azione;
|
||||
// memorizzo allarme nel vettore ack....
|
||||
retACK_DW1 = utils.setBitOnStFlag(retACK_DW1, true, bitNum);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CMSCncLib.CNC;
|
||||
using CMSCncLib.CNC;
|
||||
using MTC;
|
||||
using SCMA.AdapterCom;
|
||||
using Siemens.Sinumerik.Operate.Services;
|
||||
@@ -830,18 +830,6 @@ namespace SCMA
|
||||
// predispongo allarme
|
||||
allarme currAllarm = new allarme(codAllarme, "CNC", "FAULT", allarmeSiemens.Message);
|
||||
currGateway.addAlarm(currAllarm);
|
||||
// !!!FARE!!! 2018.08.24 VERIFICARE se sia possibile riprtare su singolo asse...
|
||||
#if false
|
||||
// se ho asse accodo ad asse altrimenti no...
|
||||
if (allarme.axis == 0)
|
||||
{
|
||||
mAlarmCNC.Add(MTConnect.Condition.Level.FAULT, allarme.alm_msg, codAllarme, "", "");
|
||||
}
|
||||
else
|
||||
{
|
||||
vettAxis[allarme.axis - 1].mAxAlarmCNC.Add(MTConnect.Condition.Level.FAULT, allarme.alm_msg, codAllarme, "", "");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user