diff --git a/MTC_Sim/MTC_Sim/AdapterConf/SCM_ESA.xml b/MTC_Sim/MTC_Sim/AdapterConf/SCM_ESA.xml index 6b9b5cd..88b4878 100644 --- a/MTC_Sim/MTC_Sim/AdapterConf/SCM_ESA.xml +++ b/MTC_Sim/MTC_Sim/AdapterConf/SCM_ESA.xml @@ -11,7 +11,7 @@ VacPump_01_Status - + 0 @@ -22,7 +22,7 @@ VacPump_02_Status - + 0 @@ -35,7 +35,7 @@ VacAct_01_Count - 0#15 + 0 @@ -46,7 +46,7 @@ VacAct_02_Count - 0#15 + 0 @@ -59,7 +59,7 @@ Lubro_01_Num - 0#15 + 0 @@ -70,7 +70,7 @@ Lubro_02_Num - 0#15 + 0 @@ -83,7 +83,7 @@ Cooler_01_Status - 0#3 + 0 @@ -94,7 +94,7 @@ Cooler_02_Status - 0#3 + 0 @@ -107,7 +107,7 @@ Press_01_Value - + 0 @@ -118,7 +118,7 @@ Press_02_Value - + 0 @@ -131,7 +131,7 @@ Temp_01_Value - + 0 @@ -142,7 +142,7 @@ Temp_02_Value - + 0 @@ -155,63 +155,63 @@ Path_01_FeedRate - INT#D8888.0 + 0 Path_01_FeedOverr - INT#D8888.0 + 0 Path_01_RapidOverr - INT#D8888.0 + 0 Path_01_PosActX - FLOAT#D7777.0 + 0 Path_01_PosActY - FLOAT#D7777.1 + 0 Path_01_PosActZ - FLOAT#D7777.2 + 0 Path_01_PosActI - FLOAT#D7777.3 + 0 Path_01_PosActJ - FLOAT#D7777.4 + 0 Path_01_PosActK - FLOAT#D7777.5 + 0 Path_01_Type - FLAG#R10528.12 + 0 Path_01_PartId - INT#D9999 + 0 Path_01_PZ_TOT - INT#D9999 + 0 Path_01_Cod_M - STROBE#R10520.0 + 0 Path_01_Cod_S - STROBE#R10520.1 + 0 Path_01_Cod_T - STROBE#R10520.2 + 0 Path_01_RUN_MODE @@ -223,23 +223,23 @@ Path_01_CurrProg - STRING#D0000 + 0 Path_01_CurrProg_RowNum - INT#D0001.0 + 0 Path_01_ActiveAxes - CLASS + 0 Path_01_CodG_Act - CLASS + 0 Path_01_SubMode - FLAG#R10528.0:R10531.7 + 0 @@ -252,31 +252,31 @@ UnOp_01_ToolId - + 0 UnOp_01_NumCU - + 0 UnOp_01_Status - + 0 UnOp_01_VitaRes - + 0 UnOp_01_Speed - + 0 UnOp_01_Load - + 0 UnOp_01_AccTime - + 0 @@ -289,63 +289,63 @@ Axis_01_MainProc - + 0 Axis_01_IsMast - + 0 Axis_01_MastId - + 0 Axis_01_Type - + 0 Axis_01_Dir - + 0 Axis_01_Load - + 0 Axis_01_PosAct - + 0 Axis_01_PosTgt - + 0 Axis_01_FeedAct - + 0 Axis_01_FeedOver - + 0 Axis_01_AccelAct - + 0 Axis_01_AccTime - + 0 Axis_01_Battery - + 0 Axis_01_DistDone - + 0 Axis_01_InvDDone - + 0 @@ -356,63 +356,63 @@ Axis_02_MainProc - + 0 Axis_02_IsMast - + 0 Axis_02_MastId - + 0 Axis_02_Type - + 0 Axis_02_Dir - + 0 Axis_02_Load - + 0 Axis_02_PosAct - + 0 Axis_02_PosTgt - + 0 Axis_02_FeedAct - + 0 Axis_02_FeedOver - + 0 Axis_02_AccelAct - + 0 Axis_02_AccTime - + 0 Axis_02_Battery - + 0 Axis_02_DistDone - + 0 Axis_02_InvDDone - + 0 @@ -423,63 +423,63 @@ Axis_03_MainProc - + 0 Axis_03_IsMast - + 0 Axis_03_MastId - + 0 Axis_03_Type - + 0 Axis_03_Dir - + 0 Axis_03_Load - + 0 Axis_03_PosAct - + 0 Axis_03_PosTgt - + 0 Axis_03_FeedAct - + 0 Axis_03_FeedOver - + 0 Axis_03_AccelAct - + 0 Axis_03_AccTime - + 0 Axis_03_Battery - + 0 Axis_03_DistDone - + 0 Axis_03_InvDDone - + 0 @@ -490,63 +490,63 @@ Axis_04_MainProc - + 0 Axis_04_IsMast - + 0 Axis_04_MastId - + 0 Axis_04_Type - + 0 Axis_04_Dir - + 0 Axis_04_Load - + 0 Axis_04_PosAct - + 0 Axis_04_PosTgt - + 0 Axis_04_FeedAct - + 0 Axis_04_FeedOver - + 0 Axis_04_AccelAct - + 0 Axis_04_AccTime - + 0 Axis_04_Battery - + 0 Axis_04_DistDone - + 0 Axis_04_InvDDone - + 0 @@ -557,63 +557,63 @@ Axis_05_MainProc - + 0 Axis_05_IsMast - + 0 Axis_05_MastId - + 0 Axis_05_Type - + 0 Axis_05_Dir - + 0 Axis_05_Load - + 0 Axis_05_PosAct - + 0 Axis_05_PosTgt - + 0 Axis_05_FeedAct - + 0 Axis_05_FeedOver - + 0 Axis_05_AccelAct - + 0 Axis_05_AccTime - + 0 Axis_05_Battery - + 0 Axis_05_DistDone - + 0 Axis_05_InvDDone - + 0 @@ -624,63 +624,63 @@ Axis_06_MainProc - + 0 Axis_06_IsMast - + 0 Axis_06_MastId - + 0 Axis_06_Type - + 0 Axis_06_Dir - + 0 Axis_06_Load - + 0 Axis_06_PosAct - + 0 Axis_06_PosTgt - + 0 Axis_06_FeedAct - + 0 Axis_06_FeedOver - + 0 Axis_06_AccelAct - + 0 Axis_06_AccTime - + 0 Axis_06_Battery - + 0 Axis_06_DistDone - + 0 Axis_06_InvDDone - + 0 diff --git a/MTC_Sim/MTC_Sim/SetupAdapter.cs b/MTC_Sim/MTC_Sim/SetupAdapter.cs index 90971a4..fc12f29 100644 --- a/MTC_Sim/MTC_Sim/SetupAdapter.cs +++ b/MTC_Sim/MTC_Sim/SetupAdapter.cs @@ -234,7 +234,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("VacPump_{0:00}_Status", i + 1), "")); + listaDR.Add(new DataRefItem(string.Format("VacPump_{0:00}_Status", i + 1), "0")); VacuumPump[i] = new element(string.Format("VacPump_{0:00}", i + 1), string.Format("Pompa {0}", i + 1), fonteDati.Random, listaDR); } // salvo oggetto @@ -251,7 +251,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("VacAct_{0:00}_Count", i + 1), "0#15")); + listaDR.Add(new DataRefItem(string.Format("VacAct_{0:00}_Count", i + 1), "0")); VacuumAct[i] = new element(string.Format("VacAct_{0:00}", i + 1), string.Format("Attuatore vuoto {0}", i + 1), fonteDati.Random, listaDR); } // salvo oggetto @@ -268,7 +268,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Lubro_{0:00}_Num", i + 1), "0#15")); + listaDR.Add(new DataRefItem(string.Format("Lubro_{0:00}_Num", i + 1), "0")); Lubro[i] = new element(string.Format("Lubro_{0:00}", i + 1), string.Format("Lubrorefrigerante {0}", i + 1), fonteDati.Random, listaDR); } // salvo oggetto @@ -285,7 +285,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Cooler_{0:00}_Status", i + 1), "0#3")); + listaDR.Add(new DataRefItem(string.Format("Cooler_{0:00}_Status", i + 1), "0")); Cooler[i] = new element(string.Format("Cooler_{0:00}", i + 1), string.Format("Cooler {0}", i + 1), fonteDati.Random, listaDR); } // salvo oggetto @@ -302,7 +302,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Press_{0:00}_Value", i + 1), "")); + listaDR.Add(new DataRefItem(string.Format("Press_{0:00}_Value", i + 1), "0")); Press[i] = new element(string.Format("Press_{0:00}", i + 1), string.Format("Pressostato {0}", i + 1), fonteDati.Random, listaDR); } // salvo oggetto @@ -319,7 +319,7 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Temp_{0:00}_Value", i + 1), "")); + listaDR.Add(new DataRefItem(string.Format("Temp_{0:00}_Value", i + 1), "0")); Temp[i] = new element(string.Format("Temp_{0:00}", i + 1), string.Format("Sonda Temperatura {0}", i + 1), fonteDati.Random, listaDR); } // salvo oggetto @@ -336,30 +336,30 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_FeedRate", i + 1), "INT#D8888.0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_FeedOverr", i + 1), "INT#D8888.0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_RapidOverr", i + 1), "INT#D8888.0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActX", i + 1), "FLOAT#D7777.0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActY", i + 1), "FLOAT#D7777.1")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActZ", i + 1), "FLOAT#D7777.2")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActI", i + 1), "FLOAT#D7777.3")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActJ", i + 1), "FLOAT#D7777.4")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActK", i + 1), "FLOAT#D7777.5")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Type", i + 1), "FLAG#R10528.12")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_FeedRate", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_FeedOverr", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_RapidOverr", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActX", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActY", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActZ", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActI", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActJ", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PosActK", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Type", i + 1), "0")); // aggiunta x revisione 2016.05.05 - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PartId", i + 1), "INT#D9999")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PZ_TOT", i + 1), "INT#D9999")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Cod_M", i + 1), "STROBE#R10520.0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Cod_S", i + 1), "STROBE#R10520.1")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Cod_T", i + 1), "STROBE#R10520.2")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PartId", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_PZ_TOT", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Cod_M", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Cod_S", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_Cod_T", i + 1), "0")); listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_RUN_MODE", i + 1), "FLAG#R10528.1:R10528.7")); listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_EXE_MODE", i + 1), "FLAG#R10528.8:R10528.11")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_CurrProg", i + 1), "STRING#D0000")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_CurrProg_RowNum", i + 1), "INT#D0001.0")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_ActiveAxes", i + 1), "CLASS")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_CurrProg", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_CurrProg_RowNum", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_ActiveAxes", i + 1), "0")); // aggiunto 2016.05.10 - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_CodG_Act", i + 1), "CLASS")); - listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_SubMode", i + 1), "FLAG#R10528.0:R10531.7")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_CodG_Act", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Path_{0:00}_SubMode", i + 1), "0")); Path[i] = new element(string.Format("Path_{0:00}", i + 1), string.Format("Path num {0}", i + 1), fonteDati.Random, listaDR); } @@ -377,13 +377,13 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_ToolId", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_NumCU", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_Status", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_VitaRes", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_Speed", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_Load", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_AccTime", i + 1), "")); + listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_ToolId", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_NumCU", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_Status", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_VitaRes", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_Speed", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_Load", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("UnOp_{0:00}_AccTime", i + 1), "0")); UnOp[i] = new element(string.Format("UnOp_{0:00}", i + 1), string.Format("Unita Op num {0}", i + 1), fonteDati.Random, listaDR); } // salvo oggetto @@ -400,21 +400,21 @@ namespace MTC_Adapter { // inizializzo list x parametri listaDR = new List>(); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_MainProc", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_IsMast", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_MastId", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Type", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Dir", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Load", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_PosAct", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_PosTgt", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_FeedAct", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_FeedOver", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_AccelAct", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_AccTime", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Battery", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_DistDone", i + 1), "")); - listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_InvDDone", i + 1), "")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_MainProc", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_IsMast", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_MastId", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Type", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Dir", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Load", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_PosAct", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_PosTgt", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_FeedAct", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_FeedOver", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_AccelAct", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_AccTime", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_Battery", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_DistDone", i + 1), "0")); + listaDR.Add(new DataRefItem(string.Format("Axis_{0:00}_InvDDone", i + 1), "0")); Axis[i] = new element(string.Format("Axis_{0:00}", i + 1), string.Format("Asse num {0}", i + 1), fonteDati.Random, listaDR); } // salvo oggetto