update x test lettura + dati...

This commit is contained in:
Samuele E. Locatelli
2018-04-06 17:36:35 +02:00
parent f91f864156
commit 7244701fe4
+8 -1
View File
@@ -21,7 +21,7 @@ namespace IOB_WIN
/// </summary>
protected Int32 lastCount;
protected byte[] MemBlockF = new byte[2];
protected byte[] MemBlockG = new byte[44];
protected byte[] MemBlockG = new byte[64]; // provo ad allungare vediamo che recupera...
protected byte[] MemBlockF_pre = new byte[2];
/// <summary>
/// wrapper chiamata lettura/scrittura SINGOLO BYTE...
@@ -245,6 +245,7 @@ namespace IOB_WIN
}
else if (currIobConf.vendor == "CMZ" && currIobConf.model == "TA20")// caso CMZ
{
MemBlock = new byte[16];
// Red: Y3.7 | Yellow: Y3.6 | Green Y3.5 | All DoorsClosed: Y4.0 (X5.1) | ..........WrkZone Y8.7
int memIndex = 3;
inizio = DateTime.Now;
@@ -429,19 +430,25 @@ namespace IOB_WIN
// deve usare F_RW_Param_Integer
// processo parametro contapezzi (lavorati) !!!FARE!!! sposatre su ciclo + HF
inizio = DateTime.Now;
FANUC_ref.F_RW_Param_Integer(false, 6711, 3, ref output);
if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-PAR", 2), DateTime.Now.Subtract(inizio).Ticks);
lg.Info(string.Format("Contapezzi Lavorati 6711: {0}", output));
outVal.Add("6711_PzLavorati", output.ToString());
// salvo ultimo conteggio rilevato
Int32.TryParse(output.ToString(), out lastCount);
// processo pz lavorati totali
inizio = DateTime.Now;
FANUC_ref.F_RW_Param_Integer(false, 6712, 3, ref output);
if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-PAR", 2), DateTime.Now.Subtract(inizio).Ticks);
lg.Info(string.Format("Contapezzi Lav Tot 6712: {0}", output));
outVal.Add("6712_PzLavTotali", output.ToString());
// processo pz richiesti
inizio = DateTime.Now;
FANUC_ref.F_RW_Param_Integer(false, 6713, 3, ref output);
if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-PAR", 2), DateTime.Now.Subtract(inizio).Ticks);
lg.Info(string.Format("Pz Richiesti 6713: {0}", output));
outVal.Add("6713_PzRichiesti", output.ToString());