Fix log in uscita controllo ODL
This commit is contained in:
+14
-3
@@ -481,9 +481,20 @@ namespace IOB_WIN
|
||||
try
|
||||
{
|
||||
currODL = utils.callUrl(urlGetCurrODL);
|
||||
lgInfo(string.Format("Lettura ODL, {0} --> {1}", currIdxODL, currODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
// solo SE HO un ODL...
|
||||
if (currODL == "" || currODL == "0")
|
||||
{
|
||||
if (periodicLog)
|
||||
{
|
||||
lgInfo(string.Format("Fanuc | Lettura ODL andata a vuoto: currODL: {0}", currODL));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lgInfo(string.Format("Fanuc | Lettura ODL, currODL{0} --> currIdxODL prec: {1}", currODL, currIdxODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
+14
-3
@@ -736,9 +736,20 @@ namespace IOB_WIN
|
||||
try
|
||||
{
|
||||
currODL = utils.callUrl(urlGetCurrODL);
|
||||
lgInfo(string.Format("Lettura ODL, {0} --> {1}", currIdxODL, currODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
// solo SE HO un ODL...
|
||||
if (currODL == "" || currODL == "0")
|
||||
{
|
||||
if (periodicLog)
|
||||
{
|
||||
lgInfo(string.Format("Kawasaki | Lettura ODL andata a vuoto: currODL: {0}", currODL));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lgInfo(string.Format("Kawasaki | Lettura ODL, currODL{0} --> currIdxODL prec: {1}", currODL, currIdxODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
+12
-4
@@ -341,12 +341,20 @@ namespace IOB_WIN
|
||||
try
|
||||
{
|
||||
currODL = utils.callUrl(urlGetCurrODL);
|
||||
if (utils.CRB("verbose"))
|
||||
// solo SE HO un ODL...
|
||||
if (currODL == "" || currODL == "0")
|
||||
{
|
||||
lgInfo(string.Format("Lettura ODL, {0} --> {1}", currIdxODL, currODL));
|
||||
if (periodicLog)
|
||||
{
|
||||
lgInfo(string.Format("Osai | Lettura ODL andata a vuoto: currODL: {0}", currODL));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lgInfo(string.Format("Osai | Lettura ODL, currODL{0} --> currIdxODL prec: {1}", currODL, currIdxODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
}
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
+14
-3
@@ -645,9 +645,20 @@ namespace IOB_WIN
|
||||
try
|
||||
{
|
||||
currODL = utils.callUrl(urlGetCurrODL);
|
||||
lgInfo(string.Format("Lettura ODL, {0} --> {1}", currIdxODL, currODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
// solo SE HO un ODL...
|
||||
if (currODL == "" || currODL == "0")
|
||||
{
|
||||
if (periodicLog)
|
||||
{
|
||||
lgInfo(string.Format("Siemens | Lettura ODL andata a vuoto: currODL: {0}", currODL));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lgInfo(string.Format("Siemens | Lettura ODL, currODL{0} --> currIdxODL prec: {1}", currODL, currIdxODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
+25
-14
@@ -53,7 +53,7 @@ namespace IOB_WIN
|
||||
/// Posizione sequenza ciclo standard punzonatrice
|
||||
/// </summary>
|
||||
public enum posizioneSequenza
|
||||
{
|
||||
{
|
||||
CICLO_AUTOMATICO_FERMO = 0,
|
||||
CONTROLLO_MODO_OPERATIVO = 5,
|
||||
MODO_ATTIVO_CON_ROBOT = 8,
|
||||
@@ -87,7 +87,7 @@ namespace IOB_WIN
|
||||
public IobSiemensFape(AdapterForm caller, IobConfiguration IOBConf) : base(caller, IOBConf)
|
||||
{
|
||||
// dovebbe fare init della classe base, VERIFICARE...
|
||||
lgInfo("NEW IOB SIEMENS versione FAPE");
|
||||
lgInfo("NEW IOB SIEMENS versione FAPE");
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -142,28 +142,28 @@ namespace IOB_WIN
|
||||
B_input = currPLC.IsConnected ? 1 : 0;
|
||||
// controllo stato macchina x impostare altri bit...
|
||||
switch (_stMacch)
|
||||
{
|
||||
{
|
||||
case statoMacchina.EMERGENZA_INSERITA:
|
||||
B_input += (1 << 5);
|
||||
break;
|
||||
case statoMacchina.AVARIA_ARIA:
|
||||
case statoMacchina.AVARIA_ARIA:
|
||||
case statoMacchina.AVARIA_PRESSIONE_OLIO:
|
||||
case statoMacchina.AVARIA_LIVELLO_OLIO:
|
||||
case statoMacchina.AVARIA_TEMPERATURA_OLIO:
|
||||
B_input += (1 << 3);
|
||||
B_input += (1 << 6);
|
||||
break;
|
||||
case statoMacchina.AVARIA_MOTORE_POMPA_IDRAULICA:
|
||||
case statoMacchina.AVARIA_MOTORE_RAFFREDDO_IDRAULICA:
|
||||
case statoMacchina.AVARIA_MOTORE_POMPA_IDRAULICA:
|
||||
case statoMacchina.AVARIA_MOTORE_RAFFREDDO_IDRAULICA:
|
||||
case statoMacchina.COMUNICAZIONE_ASSENTE:
|
||||
case statoMacchina.AVARIA_SINCRONISMO_PORTE:
|
||||
case statoMacchina.AVARIA_SINCRONISMO_PORTE:
|
||||
case statoMacchina.AVARIA_LIBERA:
|
||||
case statoMacchina.ATTIVAZIONE_IN_CORSO:
|
||||
B_input += (1 << 3);
|
||||
break;
|
||||
case statoMacchina.MODO_MANUALE_ATTREZZAGGIO:
|
||||
B_input += (1 << 4);
|
||||
break;
|
||||
break;
|
||||
case statoMacchina.CICLO_IN_CORSO:
|
||||
B_input += (1 << 1);
|
||||
break;
|
||||
@@ -171,18 +171,29 @@ namespace IOB_WIN
|
||||
case statoMacchina.MODO_AUTOMATICO_ROBOT:
|
||||
B_input += (1 << 7);
|
||||
break;
|
||||
case statoMacchina.LIBERO:
|
||||
case statoMacchina.LIBERO:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
string currODL = "";
|
||||
try
|
||||
{
|
||||
currODL = utils.callUrl(urlGetCurrODL);
|
||||
lgInfo(string.Format("Lettura ODL, {0} --> {1}", currIdxODL, currODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
// solo SE HO un ODL...
|
||||
if (currODL == "" || currODL == "0")
|
||||
{
|
||||
if (periodicLog)
|
||||
{
|
||||
lgInfo(string.Format("SiemensFape | Lettura ODL andata a vuoto: currODL: {0}", currODL));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lgInfo(string.Format("SiemensFape | Lettura ODL, currODL{0} --> currIdxODL prec: {1}", currODL, currIdxODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
@@ -208,7 +219,7 @@ namespace IOB_WIN
|
||||
}
|
||||
// registro contapezzi
|
||||
lgInfo(string.Format("Contapezzi SIEMENS: {0} | Contapezzi interno {1}", lastCountCNC, contapezzi));
|
||||
|
||||
|
||||
// invio a server contapezzi (aggiornato)
|
||||
string retVal = utils.callUrl(urlSetPzCount + contapezzi.ToString());
|
||||
// verifica se tutto OK
|
||||
|
||||
@@ -686,9 +686,20 @@ namespace IOB_WIN
|
||||
try
|
||||
{
|
||||
currODL = utils.callUrl(urlGetCurrODL);
|
||||
lgInfo(string.Format("Lettura ODL, {0} --> {1}", currIdxODL, currODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
// solo SE HO un ODL...
|
||||
if (currODL == "" || currODL == "0")
|
||||
{
|
||||
if (periodicLog)
|
||||
{
|
||||
lgInfo(string.Format("SiemensTorri | Lettura ODL andata a vuoto: currODL: {0}", currODL));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lgInfo(string.Format("SiemensTorri | Lettura ODL, currODL{0} --> currIdxODL prec: {1}", currODL, currIdxODL));
|
||||
// provo a salvare nuovo ODL
|
||||
int.TryParse(currODL, out currIdxODL);
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user