From fb64019bf2312d79b0164a2585e0ea0ffff9b312 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 24 Apr 2017 10:46:55 +0200 Subject: [PATCH] aggiunte azioni target x gestione statusList differenziata tra OSAI/SIEMENS/FANUC --- MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListFANUC.map | 7 +++++++ MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListOSAI.map | 7 +++++++ .../MTC_Adapter/Resources/CMS/StatusListSIEMENS.map | 7 +++++++ MTC_Adapter/MTC_Adapter/setupTgt.bat | 4 ++++ 4 files changed, 25 insertions(+) create mode 100644 MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListFANUC.map create mode 100644 MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListOSAI.map create mode 100644 MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListSIEMENS.map diff --git a/MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListFANUC.map b/MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListFANUC.map new file mode 100644 index 0000000..223c046 --- /dev/null +++ b/MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListFANUC.map @@ -0,0 +1,7 @@ +# Commenti con cancelletto, struttura un variabile per riga, tipo chiave|valore (occhio che il separatore è configurato da .cofig come "testCharSep"); spazi e tabulazioni dovrei trimmarli in acquisizione (qui inseriti per comodità di lettura) +001|PROTECTION_STATUS |BIT +002|VacPump_01_Status |BIT +003|VacPump_02_Status |BIT +004|Cooler_01_Status |BIT +005|Cooler_02_Status |BIT +006|UnOp_01_Status |BIT \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListOSAI.map b/MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListOSAI.map new file mode 100644 index 0000000..223c046 --- /dev/null +++ b/MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListOSAI.map @@ -0,0 +1,7 @@ +# Commenti con cancelletto, struttura un variabile per riga, tipo chiave|valore (occhio che il separatore è configurato da .cofig come "testCharSep"); spazi e tabulazioni dovrei trimmarli in acquisizione (qui inseriti per comodità di lettura) +001|PROTECTION_STATUS |BIT +002|VacPump_01_Status |BIT +003|VacPump_02_Status |BIT +004|Cooler_01_Status |BIT +005|Cooler_02_Status |BIT +006|UnOp_01_Status |BIT \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListSIEMENS.map b/MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListSIEMENS.map new file mode 100644 index 0000000..223c046 --- /dev/null +++ b/MTC_Adapter/MTC_Adapter/Resources/CMS/StatusListSIEMENS.map @@ -0,0 +1,7 @@ +# Commenti con cancelletto, struttura un variabile per riga, tipo chiave|valore (occhio che il separatore è configurato da .cofig come "testCharSep"); spazi e tabulazioni dovrei trimmarli in acquisizione (qui inseriti per comodità di lettura) +001|PROTECTION_STATUS |BIT +002|VacPump_01_Status |BIT +003|VacPump_02_Status |BIT +004|Cooler_01_Status |BIT +005|Cooler_02_Status |BIT +006|UnOp_01_Status |BIT \ No newline at end of file diff --git a/MTC_Adapter/MTC_Adapter/setupTgt.bat b/MTC_Adapter/MTC_Adapter/setupTgt.bat index 660fe05..12351bf 100644 --- a/MTC_Adapter/MTC_Adapter/setupTgt.bat +++ b/MTC_Adapter/MTC_Adapter/setupTgt.bat @@ -31,6 +31,7 @@ del %2"DATA\CONF\Adapter_ItemList.xml" del %2"DATA\CONF\AlarmList.map" del %2"DATA\CONF\AlarmListCNC.map" del %2"DATA\CONF\CounterList.map" +del %2"DATA\CONF\StatusList.map" REM del /F /Q %2"DATA\CONF\*.*" copy %2"Resources\CMS\CMS.ico" %2"Resources\MTCA.ico" copy %2"Resources\CMS\AlarmListEmpty.map" %2"DATA\CONF\AlarmListCNC.map" @@ -65,18 +66,21 @@ goto END copy %2"Resources\CMS\FANUC.xml" %2"DATA\CONF\Adapter_ItemList.xml" copy %2"Resources\CMS\AlarmListFANUC.map" %2"DATA\CONF\AlarmList.map" copy %2"Resources\CMS\CounterListFANUC.map" %2"DATA\CONF\CounterList.map" +copy %2"Resources\CMS\StatusListFANUC.map" %2"DATA\CONF\StatusList.map" goto END :SIEMENS copy %2"Resources\CMS\SIEMENS.xml" %2"DATA\CONF\Adapter_ItemList.xml" copy %2"Resources\CMS\AlarmListSIEMENS.map" %2"DATA\CONF\AlarmList.map" copy %2"Resources\CMS\CounterListSIEMENS.map" %2"DATA\CONF\CounterList.map" +copy %2"Resources\CMS\StatusListSIEMENS.map" %2"DATA\CONF\StatusList.map" goto END :OSAI copy %2"Resources\CMS\OSAI.xml" %2"DATA\CONF\Adapter_ItemList.xml" copy %2"Resources\CMS\AlarmListOSAI.map" %2"DATA\CONF\AlarmList.map" copy %2"Resources\CMS\CounterListOSAI.map" %2"DATA\CONF\CounterList.map" +copy %2"Resources\CMS\StatusListOSAI.map" %2"DATA\CONF\StatusList.map" goto END :END