Merge branch 'develop' into IOB-NET
This commit is contained in:
+7
-16
@@ -760,27 +760,13 @@ namespace IOB_WIN
|
||||
// invia a MES il parametro selezionato (es ART / ODL / PRG NAME, come task2exe..)
|
||||
Dictionary<string, string> forcedTask = new Dictionary<string, string>();
|
||||
// guardo i parametri...
|
||||
if (txtValue.Text != "")
|
||||
if (!string.IsNullOrEmpty(txtValue.Text))
|
||||
{
|
||||
forcedTask.Add(cmbParamValues.SelectedValue.ToString(), txtValue.Text);
|
||||
}
|
||||
#if false
|
||||
// accodo SE !=""
|
||||
if (currItemCode != "")
|
||||
{
|
||||
forcedTask.Add("setArt", currItemCode);
|
||||
}
|
||||
if (currOrdCode != "")
|
||||
{
|
||||
forcedTask.Add("setComm", currOrdCode);
|
||||
}
|
||||
if (currPrgName != "")
|
||||
{
|
||||
forcedTask.Add("setProg", currPrgName);
|
||||
}
|
||||
#endif
|
||||
// chiedo esecuzione task!
|
||||
iobObj.processTask(forcedTask);
|
||||
chkEdit.Checked = false;
|
||||
toggleEditMes2Plc();
|
||||
}
|
||||
|
||||
@@ -924,12 +910,17 @@ namespace IOB_WIN
|
||||
{
|
||||
if (iobObj.memMap.mMapWrite.Count > 0)
|
||||
{
|
||||
var oldParams = cmbParamValues.DataSource;
|
||||
List<string> parametri = new List<string>();
|
||||
foreach (var item in iobObj.memMap.mMapWrite)
|
||||
{
|
||||
parametri.Add(item.Key);
|
||||
}
|
||||
// salvo selezione
|
||||
int oldIdx = cmbParamValues.SelectedIndex;
|
||||
// riassegno e ri-seleziono
|
||||
cmbParamValues.DataSource = parametri;
|
||||
cmbParamValues.SelectedIndex = oldIdx >= 0 ? oldIdx : 0; ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,79 +1,87 @@
|
||||
{
|
||||
"mMapWrite": {
|
||||
"setArt": {
|
||||
"name": "setArt",
|
||||
"description": "Articolo",
|
||||
"memAddr": "DB150.DBB12",
|
||||
"tipoMem": "String",
|
||||
"index": 12,
|
||||
"size": 20
|
||||
"mMapWrite": {
|
||||
"setArt": {
|
||||
"name": "setArt",
|
||||
"description": "Articolo",
|
||||
"memAddr": "DB150.DBB12",
|
||||
"tipoMem": "String",
|
||||
"index": 12,
|
||||
"size": 20
|
||||
},
|
||||
"setComm": {
|
||||
"name": "setComm",
|
||||
"description": "Commessa",
|
||||
"memAddr": "DB150.DBB32",
|
||||
"tipoMem": "String",
|
||||
"index": 32,
|
||||
"size": 20
|
||||
},
|
||||
"setPzComm": {
|
||||
"name": "setPzComm",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
},
|
||||
"forceSetPzCount": {
|
||||
"name": "forceSetPzCount",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
}
|
||||
},
|
||||
"setComm": {
|
||||
"name": "setComm",
|
||||
"description": "Commessa",
|
||||
"memAddr": "DB150.DBB32",
|
||||
"tipoMem": "String",
|
||||
"index": 32,
|
||||
"size": 20
|
||||
},
|
||||
"setPzComm": {
|
||||
"name": "setPzComm",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
"mMapRead": {
|
||||
"TEMP_01": {
|
||||
"name": "TEMP_01",
|
||||
"description": "Temperatura 01",
|
||||
"tipoMem": "Real",
|
||||
"minVal": 18,
|
||||
"maxVal": 24
|
||||
},
|
||||
"POWER_01": {
|
||||
"name": "POWER_01",
|
||||
"description": "Potenza impianto",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 40,
|
||||
"maxVal": 80
|
||||
},
|
||||
"FEED_OVER": {
|
||||
"name": "FEED_OVER",
|
||||
"description": "FEED override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 100
|
||||
},
|
||||
"RAPID_OVER": {
|
||||
"name": "RAPID_OVER",
|
||||
"description": "RAPID override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 50,
|
||||
"maxVal": 120
|
||||
},
|
||||
"POS_X": {
|
||||
"name": "POS_X",
|
||||
"description": "Asse X",
|
||||
"tipoMem": "Int",
|
||||
"minVal": -2000,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Y": {
|
||||
"name": "POS_Y",
|
||||
"description": "Asse Y",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Z": {
|
||||
"name": "POS_Z",
|
||||
"description": "Asse Z",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 1500
|
||||
}
|
||||
}
|
||||
},
|
||||
"mMapRead": {
|
||||
"TEMP_01": {
|
||||
"name": "TEMP_01",
|
||||
"description": "Temperatura 01",
|
||||
"tipoMem": "Real",
|
||||
"minVal": 18,
|
||||
"maxVal": 24
|
||||
},
|
||||
"POWER_01": {
|
||||
"name": "POWER_01",
|
||||
"description": "Potenza impianto",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 40,
|
||||
"maxVal": 80
|
||||
},
|
||||
"FEED_OVER": {
|
||||
"name": "FEED_OVER",
|
||||
"description": "FEED override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 100
|
||||
},
|
||||
"RAPID_OVER": {
|
||||
"name": "RAPID_OVER",
|
||||
"description": "RAPID override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 50,
|
||||
"maxVal": 120
|
||||
},
|
||||
"POS_X": {
|
||||
"name": "POS_X",
|
||||
"description": "Asse X",
|
||||
"tipoMem": "Int",
|
||||
"minVal": -2000,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Y": {
|
||||
"name": "POS_Y",
|
||||
"description": "Asse Y",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Z": {
|
||||
"name": "POS_Z",
|
||||
"description": "Asse Z",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 1500
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,79 +1,87 @@
|
||||
{
|
||||
"mMapWrite": {
|
||||
"setArt": {
|
||||
"name": "setArt",
|
||||
"description": "Articolo",
|
||||
"memAddr": "DB150.DBB12",
|
||||
"tipoMem": "String",
|
||||
"index": 12,
|
||||
"size": 20
|
||||
"mMapWrite": {
|
||||
"setArt": {
|
||||
"name": "setArt",
|
||||
"description": "Articolo",
|
||||
"memAddr": "DB150.DBB12",
|
||||
"tipoMem": "String",
|
||||
"index": 12,
|
||||
"size": 20
|
||||
},
|
||||
"setComm": {
|
||||
"name": "setComm",
|
||||
"description": "Commessa",
|
||||
"memAddr": "DB150.DBB32",
|
||||
"tipoMem": "String",
|
||||
"index": 32,
|
||||
"size": 20
|
||||
},
|
||||
"setPzComm": {
|
||||
"name": "setPzComm",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
},
|
||||
"forceSetPzCount": {
|
||||
"name": "forceSetPzCount",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
}
|
||||
},
|
||||
"setComm": {
|
||||
"name": "setComm",
|
||||
"description": "Commessa",
|
||||
"memAddr": "DB150.DBB32",
|
||||
"tipoMem": "String",
|
||||
"index": 32,
|
||||
"size": 20
|
||||
},
|
||||
"setPzComm": {
|
||||
"name": "setPzComm",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
"mMapRead": {
|
||||
"TEMP_01": {
|
||||
"name": "TEMP_01",
|
||||
"description": "Temperatura 01",
|
||||
"tipoMem": "Real",
|
||||
"minVal": 18,
|
||||
"maxVal": 24
|
||||
},
|
||||
"POWER_01": {
|
||||
"name": "POWER_01",
|
||||
"description": "Potenza impianto",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 40,
|
||||
"maxVal": 80
|
||||
},
|
||||
"FEED_OVER": {
|
||||
"name": "FEED_OVER",
|
||||
"description": "FEED override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 100
|
||||
},
|
||||
"RAPID_OVER": {
|
||||
"name": "RAPID_OVER",
|
||||
"description": "RAPID override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 50,
|
||||
"maxVal": 120
|
||||
},
|
||||
"POS_X": {
|
||||
"name": "POS_X",
|
||||
"description": "Asse X",
|
||||
"tipoMem": "Int",
|
||||
"minVal": -2000,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Y": {
|
||||
"name": "POS_Y",
|
||||
"description": "Asse Y",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Z": {
|
||||
"name": "POS_Z",
|
||||
"description": "Asse Z",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 1500
|
||||
}
|
||||
}
|
||||
},
|
||||
"mMapRead": {
|
||||
"TEMP_01": {
|
||||
"name": "TEMP_01",
|
||||
"description": "Temperatura 01",
|
||||
"tipoMem": "Real",
|
||||
"minVal": 18,
|
||||
"maxVal": 24
|
||||
},
|
||||
"POWER_01": {
|
||||
"name": "POWER_01",
|
||||
"description": "Potenza impianto",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 40,
|
||||
"maxVal": 80
|
||||
},
|
||||
"FEED_OVER": {
|
||||
"name": "FEED_OVER",
|
||||
"description": "FEED override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 100
|
||||
},
|
||||
"RAPID_OVER": {
|
||||
"name": "RAPID_OVER",
|
||||
"description": "RAPID override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 50,
|
||||
"maxVal": 120
|
||||
},
|
||||
"POS_X": {
|
||||
"name": "POS_X",
|
||||
"description": "Asse X",
|
||||
"tipoMem": "Int",
|
||||
"minVal": -2000,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Y": {
|
||||
"name": "POS_Y",
|
||||
"description": "Asse Y",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Z": {
|
||||
"name": "POS_Z",
|
||||
"description": "Asse Z",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 1500
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,79 +1,87 @@
|
||||
{
|
||||
"mMapWrite": {
|
||||
"setArt": {
|
||||
"name": "setArt",
|
||||
"description": "Articolo",
|
||||
"memAddr": "DB150.DBB12",
|
||||
"tipoMem": "String",
|
||||
"index": 12,
|
||||
"size": 20
|
||||
"mMapWrite": {
|
||||
"setArt": {
|
||||
"name": "setArt",
|
||||
"description": "Articolo",
|
||||
"memAddr": "DB150.DBB12",
|
||||
"tipoMem": "String",
|
||||
"index": 12,
|
||||
"size": 20
|
||||
},
|
||||
"setComm": {
|
||||
"name": "setComm",
|
||||
"description": "Commessa",
|
||||
"memAddr": "DB150.DBB32",
|
||||
"tipoMem": "String",
|
||||
"index": 32,
|
||||
"size": 20
|
||||
},
|
||||
"setPzComm": {
|
||||
"name": "setPzComm",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
},
|
||||
"forceSetPzCount": {
|
||||
"name": "forceSetPzCount",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
}
|
||||
},
|
||||
"setComm": {
|
||||
"name": "setComm",
|
||||
"description": "Commessa",
|
||||
"memAddr": "DB150.DBB32",
|
||||
"tipoMem": "String",
|
||||
"index": 32,
|
||||
"size": 20
|
||||
},
|
||||
"setPzComm": {
|
||||
"name": "setPzComm",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
"mMapRead": {
|
||||
"TEMP_01": {
|
||||
"name": "TEMP_01",
|
||||
"description": "Temperatura 01",
|
||||
"tipoMem": "Real",
|
||||
"minVal": 18,
|
||||
"maxVal": 24
|
||||
},
|
||||
"POWER_01": {
|
||||
"name": "POWER_01",
|
||||
"description": "Potenza impianto",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 40,
|
||||
"maxVal": 80
|
||||
},
|
||||
"FEED_OVER": {
|
||||
"name": "FEED_OVER",
|
||||
"description": "FEED override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 100
|
||||
},
|
||||
"RAPID_OVER": {
|
||||
"name": "RAPID_OVER",
|
||||
"description": "RAPID override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 50,
|
||||
"maxVal": 120
|
||||
},
|
||||
"POS_X": {
|
||||
"name": "POS_X",
|
||||
"description": "Asse X",
|
||||
"tipoMem": "Int",
|
||||
"minVal": -2000,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Y": {
|
||||
"name": "POS_Y",
|
||||
"description": "Asse Y",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Z": {
|
||||
"name": "POS_Z",
|
||||
"description": "Asse Z",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 1500
|
||||
}
|
||||
}
|
||||
},
|
||||
"mMapRead": {
|
||||
"TEMP_01": {
|
||||
"name": "TEMP_01",
|
||||
"description": "Temperatura 01",
|
||||
"tipoMem": "Real",
|
||||
"minVal": 18,
|
||||
"maxVal": 24
|
||||
},
|
||||
"POWER_01": {
|
||||
"name": "POWER_01",
|
||||
"description": "Potenza impianto",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 40,
|
||||
"maxVal": 80
|
||||
},
|
||||
"FEED_OVER": {
|
||||
"name": "FEED_OVER",
|
||||
"description": "FEED override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 100
|
||||
},
|
||||
"RAPID_OVER": {
|
||||
"name": "RAPID_OVER",
|
||||
"description": "RAPID override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 50,
|
||||
"maxVal": 120
|
||||
},
|
||||
"POS_X": {
|
||||
"name": "POS_X",
|
||||
"description": "Asse X",
|
||||
"tipoMem": "Int",
|
||||
"minVal": -2000,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Y": {
|
||||
"name": "POS_Y",
|
||||
"description": "Asse Y",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Z": {
|
||||
"name": "POS_Z",
|
||||
"description": "Asse Z",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 1500
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,14 @@
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
},
|
||||
"forceSetPzCount": {
|
||||
"name": "forceSetPzCount",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
}
|
||||
},
|
||||
"mMapRead": {
|
||||
|
||||
@@ -1,79 +1,87 @@
|
||||
{
|
||||
"mMapWrite": {
|
||||
"setArt": {
|
||||
"name": "setArt",
|
||||
"description": "Articolo",
|
||||
"memAddr": "DB150.DBB12",
|
||||
"tipoMem": "String",
|
||||
"index": 12,
|
||||
"size": 20
|
||||
"mMapWrite": {
|
||||
"setArt": {
|
||||
"name": "setArt",
|
||||
"description": "Articolo",
|
||||
"memAddr": "DB150.DBB12",
|
||||
"tipoMem": "String",
|
||||
"index": 12,
|
||||
"size": 20
|
||||
},
|
||||
"setComm": {
|
||||
"name": "setComm",
|
||||
"description": "Commessa",
|
||||
"memAddr": "DB150.DBB32",
|
||||
"tipoMem": "String",
|
||||
"index": 32,
|
||||
"size": 20
|
||||
},
|
||||
"setPzComm": {
|
||||
"name": "setPzComm",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
},
|
||||
"forceSetPzCount": {
|
||||
"name": "forceSetPzCount",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
}
|
||||
},
|
||||
"setComm": {
|
||||
"name": "setComm",
|
||||
"description": "Commessa",
|
||||
"memAddr": "DB150.DBB32",
|
||||
"tipoMem": "String",
|
||||
"index": 32,
|
||||
"size": 20
|
||||
},
|
||||
"setPzComm": {
|
||||
"name": "setPzComm",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
"mMapRead": {
|
||||
"TEMP_01": {
|
||||
"name": "TEMP_01",
|
||||
"description": "Temperatura 01",
|
||||
"tipoMem": "Real",
|
||||
"minVal": 18,
|
||||
"maxVal": 24
|
||||
},
|
||||
"POWER_01": {
|
||||
"name": "POWER_01",
|
||||
"description": "Potenza impianto",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 40,
|
||||
"maxVal": 80
|
||||
},
|
||||
"FEED_OVER": {
|
||||
"name": "FEED_OVER",
|
||||
"description": "FEED override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 100
|
||||
},
|
||||
"RAPID_OVER": {
|
||||
"name": "RAPID_OVER",
|
||||
"description": "RAPID override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 50,
|
||||
"maxVal": 120
|
||||
},
|
||||
"POS_X": {
|
||||
"name": "POS_X",
|
||||
"description": "Asse X",
|
||||
"tipoMem": "Int",
|
||||
"minVal": -2000,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Y": {
|
||||
"name": "POS_Y",
|
||||
"description": "Asse Y",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Z": {
|
||||
"name": "POS_Z",
|
||||
"description": "Asse Z",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 1500
|
||||
}
|
||||
}
|
||||
},
|
||||
"mMapRead": {
|
||||
"TEMP_01": {
|
||||
"name": "TEMP_01",
|
||||
"description": "Temperatura 01",
|
||||
"tipoMem": "Real",
|
||||
"minVal": 18,
|
||||
"maxVal": 24
|
||||
},
|
||||
"POWER_01": {
|
||||
"name": "POWER_01",
|
||||
"description": "Potenza impianto",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 40,
|
||||
"maxVal": 80
|
||||
},
|
||||
"FEED_OVER": {
|
||||
"name": "FEED_OVER",
|
||||
"description": "FEED override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 100
|
||||
},
|
||||
"RAPID_OVER": {
|
||||
"name": "RAPID_OVER",
|
||||
"description": "RAPID override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 50,
|
||||
"maxVal": 120
|
||||
},
|
||||
"POS_X": {
|
||||
"name": "POS_X",
|
||||
"description": "Asse X",
|
||||
"tipoMem": "Int",
|
||||
"minVal": -2000,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Y": {
|
||||
"name": "POS_Y",
|
||||
"description": "Asse Y",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Z": {
|
||||
"name": "POS_Z",
|
||||
"description": "Asse Z",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 1500
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,79 +1,87 @@
|
||||
{
|
||||
"mMapWrite": {
|
||||
"setArt": {
|
||||
"name": "setArt",
|
||||
"description": "Articolo",
|
||||
"memAddr": "DB150.DBB12",
|
||||
"tipoMem": "String",
|
||||
"index": 12,
|
||||
"size": 20
|
||||
"mMapWrite": {
|
||||
"setArt": {
|
||||
"name": "setArt",
|
||||
"description": "Articolo",
|
||||
"memAddr": "DB150.DBB12",
|
||||
"tipoMem": "String",
|
||||
"index": 12,
|
||||
"size": 20
|
||||
},
|
||||
"setComm": {
|
||||
"name": "setComm",
|
||||
"description": "Commessa",
|
||||
"memAddr": "DB150.DBB32",
|
||||
"tipoMem": "String",
|
||||
"index": 32,
|
||||
"size": 20
|
||||
},
|
||||
"setPzComm": {
|
||||
"name": "setPzComm",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
},
|
||||
"forceSetPzCount": {
|
||||
"name": "forceSetPzCount",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
}
|
||||
},
|
||||
"setComm": {
|
||||
"name": "setComm",
|
||||
"description": "Commessa",
|
||||
"memAddr": "DB150.DBB32",
|
||||
"tipoMem": "String",
|
||||
"index": 32,
|
||||
"size": 20
|
||||
},
|
||||
"setPzComm": {
|
||||
"name": "setPzComm",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
"mMapRead": {
|
||||
"TEMP_01": {
|
||||
"name": "TEMP_01",
|
||||
"description": "Temperatura 01",
|
||||
"tipoMem": "Real",
|
||||
"minVal": 18,
|
||||
"maxVal": 24
|
||||
},
|
||||
"POWER_01": {
|
||||
"name": "POWER_01",
|
||||
"description": "Potenza impianto",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 40,
|
||||
"maxVal": 80
|
||||
},
|
||||
"FEED_OVER": {
|
||||
"name": "FEED_OVER",
|
||||
"description": "FEED override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 100
|
||||
},
|
||||
"RAPID_OVER": {
|
||||
"name": "RAPID_OVER",
|
||||
"description": "RAPID override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 50,
|
||||
"maxVal": 120
|
||||
},
|
||||
"POS_X": {
|
||||
"name": "POS_X",
|
||||
"description": "Asse X",
|
||||
"tipoMem": "Int",
|
||||
"minVal": -2000,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Y": {
|
||||
"name": "POS_Y",
|
||||
"description": "Asse Y",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Z": {
|
||||
"name": "POS_Z",
|
||||
"description": "Asse Z",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 1500
|
||||
}
|
||||
}
|
||||
},
|
||||
"mMapRead": {
|
||||
"TEMP_01": {
|
||||
"name": "TEMP_01",
|
||||
"description": "Temperatura 01",
|
||||
"tipoMem": "Real",
|
||||
"minVal": 18,
|
||||
"maxVal": 24
|
||||
},
|
||||
"POWER_01": {
|
||||
"name": "POWER_01",
|
||||
"description": "Potenza impianto",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 40,
|
||||
"maxVal": 80
|
||||
},
|
||||
"FEED_OVER": {
|
||||
"name": "FEED_OVER",
|
||||
"description": "FEED override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 100
|
||||
},
|
||||
"RAPID_OVER": {
|
||||
"name": "RAPID_OVER",
|
||||
"description": "RAPID override",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 50,
|
||||
"maxVal": 120
|
||||
},
|
||||
"POS_X": {
|
||||
"name": "POS_X",
|
||||
"description": "Asse X",
|
||||
"tipoMem": "Int",
|
||||
"minVal": -2000,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Y": {
|
||||
"name": "POS_Y",
|
||||
"description": "Asse Y",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 2000
|
||||
},
|
||||
"POS_Z": {
|
||||
"name": "POS_Z",
|
||||
"description": "Asse Z",
|
||||
"tipoMem": "Int",
|
||||
"minVal": 0,
|
||||
"maxVal": 1500
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,14 @@
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
},
|
||||
"forceSetPzCount": {
|
||||
"name": "forceSetPzCount",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
}
|
||||
},
|
||||
"mMapRead": {
|
||||
|
||||
@@ -23,6 +23,14 @@
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
},
|
||||
"forceSetPzCount": {
|
||||
"name": "forceSetPzCount",
|
||||
"description": "Qty",
|
||||
"memAddr": "DB150.DBB8",
|
||||
"tipoMem": "Int",
|
||||
"index": 8,
|
||||
"size": 4
|
||||
}
|
||||
},
|
||||
"mMapRead": {
|
||||
|
||||
@@ -520,6 +520,65 @@ namespace IOB_WIN
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Processo i task richiesti e li elimino dalla coda 1:1 (in realtà SOLO forceSetPzCount x ora)
|
||||
/// </summary>
|
||||
/// <param name="task2exe"></param>
|
||||
public override Dictionary<string, string> executeTasks(Dictionary<string, string> task2exe)
|
||||
{
|
||||
// Verificare il protocollo: dovrebeb togliere SOLO i task eseguiti...
|
||||
Dictionary<string, string> taskDone = new Dictionary<string, string>();
|
||||
string taskVal = "";
|
||||
// verifico non sia null
|
||||
if (task2exe != null)
|
||||
{
|
||||
// cerco task specifici
|
||||
foreach (var item in task2exe)
|
||||
{
|
||||
taskVal = "";
|
||||
// converto richiesta in enum...
|
||||
taskType tName = taskType.nihil;
|
||||
Enum.TryParse(item.Key, out tName);
|
||||
// controllo sulla KEY
|
||||
switch (tName)
|
||||
{
|
||||
case taskType.setArt:
|
||||
case taskType.nihil:
|
||||
case taskType.fixStopSetup:
|
||||
case taskType.forceResetPzCount:
|
||||
case taskType.sendWatchDogMes2Plc:
|
||||
case taskType.setComm:
|
||||
case taskType.setParameter:
|
||||
case taskType.setProg:
|
||||
case taskType.setPzComm:
|
||||
case taskType.startSetup:
|
||||
case taskType.stopSetup:
|
||||
taskVal = $"taskReq: {tName} | key: {item.Key} | val: {item.Value} | SKIPPED | NO EXEC";
|
||||
break;
|
||||
|
||||
case taskType.forceSetPzCount:
|
||||
// forzo sul SIM il valore pzCOunt dell'IOB...
|
||||
int newPzCount = contapezziPLC;
|
||||
bool fatto = int.TryParse(item.Value, out newPzCount);
|
||||
if (fatto)
|
||||
{
|
||||
contapezziPLC = newPzCount;
|
||||
taskVal = $"Set new contapezziPLC: {contapezziPLC}";
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
taskVal = "SKIPPED | NO EXEC";
|
||||
break;
|
||||
}
|
||||
// aggiungo task!
|
||||
taskDone.Add(item.Key, taskVal);
|
||||
}
|
||||
}
|
||||
|
||||
return taskDone;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera e processa allarmi CNC...
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user