Modificato metodo serializzazione iniziale file conf x avere valori default a zero...

This commit is contained in:
Samuele E. Locatelli
2016-06-13 10:33:47 +02:00
parent a4a9d9ab12
commit ce4c82aeb2
2 changed files with 177 additions and 177 deletions
+129 -129
View File
@@ -11,7 +11,7 @@
<dataRefList>
<dataRef>
<Key>VacPump_01_Status</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -22,7 +22,7 @@
<dataRefList>
<dataRef>
<Key>VacPump_02_Status</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -35,7 +35,7 @@
<dataRefList>
<dataRef>
<Key>VacAct_01_Count</Key>
<Value>0#15</Value>
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -46,7 +46,7 @@
<dataRefList>
<dataRef>
<Key>VacAct_02_Count</Key>
<Value>0#15</Value>
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -59,7 +59,7 @@
<dataRefList>
<dataRef>
<Key>Lubro_01_Num</Key>
<Value>0#15</Value>
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -70,7 +70,7 @@
<dataRefList>
<dataRef>
<Key>Lubro_02_Num</Key>
<Value>0#15</Value>
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -83,7 +83,7 @@
<dataRefList>
<dataRef>
<Key>Cooler_01_Status</Key>
<Value>0#3</Value>
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -94,7 +94,7 @@
<dataRefList>
<dataRef>
<Key>Cooler_02_Status</Key>
<Value>0#3</Value>
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -107,7 +107,7 @@
<dataRefList>
<dataRef>
<Key>Press_01_Value</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -118,7 +118,7 @@
<dataRefList>
<dataRef>
<Key>Press_02_Value</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -131,7 +131,7 @@
<dataRefList>
<dataRef>
<Key>Temp_01_Value</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -142,7 +142,7 @@
<dataRefList>
<dataRef>
<Key>Temp_02_Value</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -155,63 +155,63 @@
<dataRefList>
<dataRef>
<Key>Path_01_FeedRate</Key>
<Value>INT#D8888.0</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_FeedOverr</Key>
<Value>INT#D8888.0</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_RapidOverr</Key>
<Value>INT#D8888.0</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_PosActX</Key>
<Value>FLOAT#D7777.0</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_PosActY</Key>
<Value>FLOAT#D7777.1</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_PosActZ</Key>
<Value>FLOAT#D7777.2</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_PosActI</Key>
<Value>FLOAT#D7777.3</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_PosActJ</Key>
<Value>FLOAT#D7777.4</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_PosActK</Key>
<Value>FLOAT#D7777.5</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_Type</Key>
<Value>FLAG#R10528.12</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_PartId</Key>
<Value>INT#D9999</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_PZ_TOT</Key>
<Value>INT#D9999</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_Cod_M</Key>
<Value>STROBE#R10520.0</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_Cod_S</Key>
<Value>STROBE#R10520.1</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_Cod_T</Key>
<Value>STROBE#R10520.2</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_RUN_MODE</Key>
@@ -223,23 +223,23 @@
</dataRef>
<dataRef>
<Key>Path_01_CurrProg</Key>
<Value>STRING#D0000</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_CurrProg_RowNum</Key>
<Value>INT#D0001.0</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_ActiveAxes</Key>
<Value>CLASS</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_CodG_Act</Key>
<Value>CLASS</Value>
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Path_01_SubMode</Key>
<Value>FLAG#R10528.0:R10531.7</Value>
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -252,31 +252,31 @@
<dataRefList>
<dataRef>
<Key>UnOp_01_ToolId</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>UnOp_01_NumCU</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>UnOp_01_Status</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>UnOp_01_VitaRes</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>UnOp_01_Speed</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>UnOp_01_Load</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>UnOp_01_AccTime</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -289,63 +289,63 @@
<dataRefList>
<dataRef>
<Key>Axis_01_MainProc</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_IsMast</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_MastId</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_Type</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_Dir</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_Load</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_PosAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_PosTgt</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_FeedAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_FeedOver</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_AccelAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_AccTime</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_Battery</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_DistDone</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_01_InvDDone</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -356,63 +356,63 @@
<dataRefList>
<dataRef>
<Key>Axis_02_MainProc</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_IsMast</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_MastId</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_Type</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_Dir</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_Load</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_PosAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_PosTgt</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_FeedAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_FeedOver</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_AccelAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_AccTime</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_Battery</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_DistDone</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_02_InvDDone</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -423,63 +423,63 @@
<dataRefList>
<dataRef>
<Key>Axis_03_MainProc</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_IsMast</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_MastId</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_Type</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_Dir</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_Load</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_PosAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_PosTgt</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_FeedAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_FeedOver</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_AccelAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_AccTime</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_Battery</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_DistDone</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_03_InvDDone</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -490,63 +490,63 @@
<dataRefList>
<dataRef>
<Key>Axis_04_MainProc</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_IsMast</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_MastId</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_Type</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_Dir</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_Load</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_PosAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_PosTgt</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_FeedAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_FeedOver</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_AccelAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_AccTime</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_Battery</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_DistDone</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_04_InvDDone</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -557,63 +557,63 @@
<dataRefList>
<dataRef>
<Key>Axis_05_MainProc</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_IsMast</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_MastId</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_Type</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_Dir</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_Load</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_PosAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_PosTgt</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_FeedAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_FeedOver</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_AccelAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_AccTime</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_Battery</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_DistDone</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_05_InvDDone</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
@@ -624,63 +624,63 @@
<dataRefList>
<dataRef>
<Key>Axis_06_MainProc</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_IsMast</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_MastId</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_Type</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_Dir</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_Load</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_PosAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_PosTgt</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_FeedAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_FeedOver</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_AccelAct</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_AccTime</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_Battery</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_DistDone</Key>
<Value />
<Value>0</Value>
</dataRef>
<dataRef>
<Key>Axis_06_InvDDone</Key>
<Value />
<Value>0</Value>
</dataRef>
</dataRefList>
</element>
+48 -48
View File
@@ -234,7 +234,7 @@ namespace MTC_Adapter
{
// inizializzo list x parametri
listaDR = new List<DataRefItem<string, string>>();
listaDR.Add(new DataRefItem<string, string>(string.Format("VacPump_{0:00}_Status", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(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<DataRefItem<string, string>>();
listaDR.Add(new DataRefItem<string, string>(string.Format("VacAct_{0:00}_Count", i + 1), "0#15"));
listaDR.Add(new DataRefItem<string, string>(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<DataRefItem<string, string>>();
listaDR.Add(new DataRefItem<string, string>(string.Format("Lubro_{0:00}_Num", i + 1), "0#15"));
listaDR.Add(new DataRefItem<string, string>(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<DataRefItem<string, string>>();
listaDR.Add(new DataRefItem<string, string>(string.Format("Cooler_{0:00}_Status", i + 1), "0#3"));
listaDR.Add(new DataRefItem<string, string>(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<DataRefItem<string, string>>();
listaDR.Add(new DataRefItem<string, string>(string.Format("Press_{0:00}_Value", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(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<DataRefItem<string, string>>();
listaDR.Add(new DataRefItem<string, string>(string.Format("Temp_{0:00}_Value", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(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<DataRefItem<string, string>>();
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_FeedRate", i + 1), "INT#D8888.0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_FeedOverr", i + 1), "INT#D8888.0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_RapidOverr", i + 1), "INT#D8888.0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActX", i + 1), "FLOAT#D7777.0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActY", i + 1), "FLOAT#D7777.1"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActZ", i + 1), "FLOAT#D7777.2"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActI", i + 1), "FLOAT#D7777.3"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActJ", i + 1), "FLOAT#D7777.4"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActK", i + 1), "FLOAT#D7777.5"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_Type", i + 1), "FLAG#R10528.12"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_FeedRate", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_FeedOverr", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_RapidOverr", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActX", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActY", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActZ", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActI", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActJ", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PosActK", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_Type", i + 1), "0"));
// aggiunta x revisione 2016.05.05
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PartId", i + 1), "INT#D9999"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PZ_TOT", i + 1), "INT#D9999"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_Cod_M", i + 1), "STROBE#R10520.0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_Cod_S", i + 1), "STROBE#R10520.1"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_Cod_T", i + 1), "STROBE#R10520.2"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PartId", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_PZ_TOT", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_Cod_M", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_Cod_S", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_Cod_T", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_RUN_MODE", i + 1), "FLAG#R10528.1:R10528.7"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_EXE_MODE", i + 1), "FLAG#R10528.8:R10528.11"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_CurrProg", i + 1), "STRING#D0000"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_CurrProg_RowNum", i + 1), "INT#D0001.0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_ActiveAxes", i + 1), "CLASS"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_CurrProg", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_CurrProg_RowNum", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_ActiveAxes", i + 1), "0"));
// aggiunto 2016.05.10
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_CodG_Act", i + 1), "CLASS"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_SubMode", i + 1), "FLAG#R10528.0:R10531.7"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Path_{0:00}_CodG_Act", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(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<DataRefItem<string, string>>();
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_ToolId", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_NumCU", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_Status", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_VitaRes", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_Speed", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_Load", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_AccTime", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_ToolId", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_NumCU", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_Status", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_VitaRes", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_Speed", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("UnOp_{0:00}_Load", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(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<DataRefItem<string, string>>();
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_MainProc", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_IsMast", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_MastId", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_Type", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_Dir", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_Load", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_PosAct", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_PosTgt", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_FeedAct", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_FeedOver", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_AccelAct", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_AccTime", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_Battery", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_DistDone", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_InvDDone", i + 1), ""));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_MainProc", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_IsMast", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_MastId", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_Type", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_Dir", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_Load", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_PosAct", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_PosTgt", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_FeedAct", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_FeedOver", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_AccelAct", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_AccTime", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_Battery", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(string.Format("Axis_{0:00}_DistDone", i + 1), "0"));
listaDR.Add(new DataRefItem<string, string>(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