From 232e5d40db803762d9ad942735f8f8a11e0d339d Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 2 Nov 2017 18:33:55 +0100 Subject: [PATCH] =?UTF-8?q?tolto=20lettura=20blocco=20F0..F1=20(e=20G=20gi?= =?UTF-8?q?=C3=A0=20commentato,=20non=20serve...)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IOB-WIN/App.config | 1 - IOB-WIN/IobFanuc.cs | 35 ----------------------------------- IOB-WIN/Readme/ToDo.txt | 5 ++++- 3 files changed, 4 insertions(+), 37 deletions(-) diff --git a/IOB-WIN/App.config b/IOB-WIN/App.config index 8014746b..818ab683 100644 --- a/IOB-WIN/App.config +++ b/IOB-WIN/App.config @@ -11,7 +11,6 @@ - diff --git a/IOB-WIN/IobFanuc.cs b/IOB-WIN/IobFanuc.cs index dc9afc5f..21aa1339 100644 --- a/IOB-WIN/IobFanuc.cs +++ b/IOB-WIN/IobFanuc.cs @@ -192,41 +192,6 @@ namespace IOB_WIN if (verboseLog) lg.Info(string.Format("RawInput: {0}", utils.binaryForm((int)RawInput[0]))); // salvo il solo BYTE dell'input decifrando il semaforo... decodeToBitmap(); - - if (utils.CRB("enableTest")) - { - if (verboseLog) lg.Info("START FanucMemRW-FG"); - // !!!FARE!!! ora leggo CABLATO i byte F e G... - //byte[] MemBlockG = new byte[2]; - inizio = DateTime.Now; - FanucMemRW(R, FANUC.MemType.F, 0, ref MemBlockF); - if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-F", MemBlockF.Length), DateTime.Now.Subtract(inizio).Ticks); - //inizio = DateTime.Now; - //FanucMemRW(R, FANUC.MemType.G, 7, ref MemBlockG); - //if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-G", MemBlockG.Length), DateTime.Now.Subtract(inizio).Ticks); - if (verboseLog) lg.Info("END FanucMemRW-FG"); - // se cambiato loggo! - if (MemBlockF != MemBlockF_pre) - { - lg.Info(string.Format("Dati F: {0:X} | {1:X}", MemBlockF[0], MemBlockF[1])); - } - if (nReadIN % 50 == 0) lg.Info(string.Format("Dati F: {0:X} | {1:X}", MemBlockF[0], MemBlockF[1])); - MemBlockF_pre = MemBlockF; - //if (nReadIN % 50 == 0) lg.Info(string.Format("Dati G: {0:X}", MemBlockG)); - - // commento lettura X... -#if false - byte[] MemBlockX = new byte[2]; - inizio = DateTime.Now; - FanucMemRW(R, FANUC.MemType.X, 6, ref MemBlockX); - if (utils.CRB("recTime")) TimingData.addResult(string.Format("R{0}-X", MemBlockF.Length), DateTime.Now.Subtract(inizio).Ticks); - // output! - for (int i = 0; i < MemBlockX.Length; i++) - { - lg.Info(string.Format("MemBlockX[{0}]: {0} | {1}", i, utils.binaryForm((int)MemBlockX[i]))); - } -#endif - } } /// /// Effettua decodifica aree memoria alla bitmap usata x MAPO diff --git a/IOB-WIN/Readme/ToDo.txt b/IOB-WIN/Readme/ToDo.txt index dff28f37..bf0544dd 100644 --- a/IOB-WIN/Readme/ToDo.txt +++ b/IOB-WIN/Readme/ToDo.txt @@ -10,11 +10,14 @@ OK - fare gestione come rPI-IOB, ovvero OK - gestione QUEUE eventi OK - salvataggio su file dello storico eventi rilevati OK - gestione dei segnali ballerini (BITMASK!) +OK - gestione contapezzi CUSTOM - fare gestione configurabile lettura FANUC + - togliere dati G43 + - togliere dati F (E0 | 90) - fare integrazione ALTRI varori FANUC, tra cui - allarmi - load/speed - - nuovo metodo chaimata x MP/IO (che dovrà avere nuovo comando x accettare queste chiamate e salvare su tabella SENZA processing, come eventi o come extra... evento NOTA?) + - nuovo metodo chiamata x MP/IO (che dovrà avere nuovo comando x accettare queste chiamate e salvare su tabella SENZA processing, come eventi o come extra... evento NOTA?) - verificare segnali: (vedi doc gsheet) - F001.0: ALARM_PRESENT - F001.7: CN_READY / POWER_ON